|
PICurv 0.1.0
A Parallel Particle-In-Cell Solver for Curvilinear LES
|
#include "vtk_io.h"Go to the source code of this file.
Functions | |
| static PetscErrorCode | WriteVTKAppendedBlock (FILE *fp, const void *data, PetscInt num_elements, size_t element_size) |
Internal helper implementation: WriteVTKAppendedBlock(). | |
| static PetscErrorCode | WriteVTSXMLHeader (FILE *fp, const VTKMetaData *meta, PetscInt *boffset) |
Internal helper implementation: WriteVTSXMLHeader(). | |
| static PetscErrorCode | WriteVTPXMLHeader (FILE *fp, const VTKMetaData *meta, PetscInt *boffset) |
Internal helper implementation: WriteVTPXMLHeader(). | |
| static PetscErrorCode | WriteVTKFileHeader (FILE *fp, const VTKMetaData *meta, PetscInt *boffset) |
Internal helper implementation: WriteVTKFileHeader(). | |
| static PetscErrorCode | WriteVTKFileFooter (FILE *fp, const VTKMetaData *meta) |
Internal helper implementation: WriteVTKFileFooter(). | |
| 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 | 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 |
Internal helper implementation: WriteVTKAppendedBlock().
Local to this translation unit.
Definition at line 21 of file vtk_io.c.
|
static |
Internal helper implementation: WriteVTSXMLHeader().
Local to this translation unit.
Definition at line 32 of file vtk_io.c.
|
static |
Internal helper implementation: WriteVTPXMLHeader().
Local to this translation unit.
Definition at line 72 of file vtk_io.c.
|
static |
Internal helper implementation: WriteVTKFileHeader().
Local to this translation unit.
Definition at line 122 of file vtk_io.c.
|
static |
Internal helper implementation: WriteVTKFileFooter().
Local to this translation unit.
Definition at line 136 of file vtk_io.c.
| 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 153 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 245 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 313 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 422 of file vtk_io.c.