|
PICurv 0.1.0
A Parallel Particle-In-Cell Solver for Curvilinear LES
|
Go to the source code of this file.
Functions | |
| static PetscErrorCode | WriteVTKAppendedBlock (FILE *fp, const void *data, PetscInt num_elements, size_t element_size) |
| Write one binary data block in VTK appended-data format. | |
| static PetscErrorCode | WriteVTSXMLHeader (FILE *fp, const VTKMetaData *meta, PetscInt *boffset) |
Write the XML header for a VTK structured-grid (.vts) file. | |
| static PetscErrorCode | WriteVTPXMLHeader (FILE *fp, const VTKMetaData *meta, PetscInt *boffset) |
Write the XML header for a VTK polydata (.vtp) file. | |
| static PetscErrorCode | WriteVTKFileHeader (FILE *fp, const VTKMetaData *meta, PetscInt *boffset) |
| Open a VTK XML document and write its file-level header. | |
| static PetscErrorCode | WriteVTKFileFooter (FILE *fp, const VTKMetaData *meta) |
| Close a VTK XML document after all appended data have been written. | |
| PetscErrorCode | CreateVTKFileFromMetadata (const char *filename, const VTKMetaData *meta, MPI_Comm comm) |
| Implementation of CreateVTKFileFromMetadata(). | |
| PetscErrorCode | PrepareOutputCoordinates (UserCtx *user, PetscScalar **out_coords, PetscInt *out_nx, PetscInt *out_ny, PetscInt *out_nz, PetscInt *out_npoints) |
Internal helper implementation: PrepareOutputCoordinates(). | |
| PetscErrorCode | BeginStructuredVTKOutput (UserCtx *user, VTKMetaData *meta) |
| Implementation of BeginStructuredVTKOutput(). | |
| PetscErrorCode | AppendStructuredVTKField (UserCtx *user, VTKMetaData *meta, const char *name, Vec field_vec, PetscInt components) |
| Implementation of AppendStructuredVTKField(). | |
| PetscErrorCode | FinishStructuredVTKOutput (VTKMetaData *meta, const char *filename) |
| Implementation of FinishStructuredVTKOutput(). | |
| PetscErrorCode | PrepareOutputEulerianFieldData (UserCtx *user, Vec field_vec, PetscInt num_components, PetscScalar **out_data) |
| Implementation of PrepareOutputEulerianFieldData(). | |
| PetscErrorCode | PrepareOutputParticleData (UserCtx *user, PostProcessParams *pps, VTKMetaData *meta, PetscInt *p_n_total) |
Internal helper implementation: PrepareOutputParticleData(). | |
|
static |
Write one binary data block in VTK appended-data format.
Definition at line 21 of file vtk_io.c.
|
static |
Write the XML header for a VTK structured-grid (.vts) file.
Definition at line 31 of file vtk_io.c.
|
static |
Write the XML header for a VTK polydata (.vtp) file.
Definition at line 70 of file vtk_io.c.
|
static |
Open a VTK XML document and write its file-level header.
Definition at line 119 of file vtk_io.c.
|
static |
| PetscErrorCode CreateVTKFileFromMetadata | ( | const char * | filename, |
| const VTKMetaData * | meta, | ||
| MPI_Comm | comm | ||
| ) |
Implementation of CreateVTKFileFromMetadata().
Creates and writes a VTK file (either .vts or .vtp) from a populated metadata struct.
Creates a VTK file from prepared metadata and field payloads.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/vtk_io.h.
Definition at line 149 of file vtk_io.c.
| PetscErrorCode PrepareOutputCoordinates | ( | UserCtx * | user, |
| PetscScalar ** | out_coords, | ||
| PetscInt * | out_nx, | ||
| PetscInt * | out_ny, | ||
| PetscInt * | out_nz, | ||
| PetscInt * | out_npoints | ||
| ) |
Internal helper implementation: PrepareOutputCoordinates().
Creates a C array of coordinates corresponding to a subsampled (legacy-style) grid.
Local to this translation unit.
Definition at line 241 of file vtk_io.c.
| PetscErrorCode BeginStructuredVTKOutput | ( | UserCtx * | user, |
| VTKMetaData * | meta | ||
| ) |
Implementation of BeginStructuredVTKOutput().
Begins one structured VTK file: clears the metadata and builds its coordinates.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/vtk_io.h.
Definition at line 308 of file vtk_io.c.
| PetscErrorCode AppendStructuredVTKField | ( | UserCtx * | user, |
| VTKMetaData * | meta, | ||
| const char * | name, | ||
| Vec | field_vec, | ||
| PetscInt | components | ||
| ) |
Implementation of AppendStructuredVTKField().
Adds one point-data field to a structured VTK file being assembled.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/vtk_io.h.
Definition at line 326 of file vtk_io.c.
| PetscErrorCode FinishStructuredVTKOutput | ( | VTKMetaData * | meta, |
| const char * | filename | ||
| ) |
Implementation of FinishStructuredVTKOutput().
Writes an assembled structured VTK file and releases its buffers.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/vtk_io.h.
Definition at line 354 of file vtk_io.c.
| PetscErrorCode PrepareOutputEulerianFieldData | ( | UserCtx * | user, |
| Vec | field_vec, | ||
| PetscInt | num_components, | ||
| PetscScalar ** | out_data | ||
| ) |
Implementation of PrepareOutputEulerianFieldData().
Creates a C array of field data corresponding to a subsampled (legacy-style) grid.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/vtk_io.h.
Definition at line 377 of file vtk_io.c.
| PetscErrorCode PrepareOutputParticleData | ( | UserCtx * | user, |
| PostProcessParams * | pps, | ||
| VTKMetaData * | meta, | ||
| PetscInt * | p_n_total | ||
| ) |
Internal helper implementation: PrepareOutputParticleData().
Gathers, subsamples, and prepares all particle data for VTK output.
Local to this translation unit.
Definition at line 486 of file vtk_io.c.