Go to the source code of this file.
Functions | |
| 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 | CopyOwnedOutputBox (Vec vec, const PetscInt extent[3], PetscInt start_out[3], PetscInt size_out[3], PetscScalar **out) |
| Copy this rank's part of the output grid out of a DMDA global vector. | |
| 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, PetscInt local_start[3], PetscInt local_size[3]) |
| Implementation of 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) |
| Implementation of PrepareOutputParticleData(). | |
|
static |
Write the XML header for a VTK structured-grid (.vts) file.
Definition at line 21 of file vtk_io.c.
|
static |
Write the XML header for a VTK polydata (.vtp) file.
Definition at line 62 of file vtk_io.c.
|
static |
Open a VTK XML document and write its file-level header.
meta->fileType is VTK_STRUCTURED or VTK_POLYDATA; CreateVTKFileFromMetadata(), the only caller, rejects any other type before calling.
Definition at line 115 of file vtk_io.c.
|
static |
Copy this rank's part of the output grid out of a DMDA global vector.
The output grid is the first extent nodes on each axis (the last DA node is a dummy). This rank's part is its owned box clipped to that grid, copied point by point (i fastest) with the vector's components interleaved. start_out and size_out receive the box's first point and extent on each axis; either may be NULL.
Definition at line 131 of file vtk_io.c.
| PetscErrorCode CreateVTKFileFromMetadata | ( | const char * | filename, |
| const VTKMetaData * | meta, | ||
| MPI_Comm | comm | ||
| ) |
Implementation of CreateVTKFileFromMetadata().
Writes one VTK file (.vts or .vtp) collectively from every rank's part of it.
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 172 of file vtk_io.c.
| PetscErrorCode PrepareOutputCoordinates | ( | UserCtx * | user, |
| PetscScalar ** | out_coords, | ||
| PetscInt * | out_nx, | ||
| PetscInt * | out_ny, | ||
| PetscInt * | out_nz, | ||
| PetscInt * | out_npoints, | ||
| PetscInt | local_start[3], | ||
| PetscInt | local_size[3] | ||
| ) |
Implementation of PrepareOutputCoordinates().
Copies this rank's part of the output grid's coordinates.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/vtk_io.h.
Definition at line 260 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 285 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 305 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 336 of file vtk_io.c.
| PetscErrorCode PrepareOutputEulerianFieldData | ( | UserCtx * | user, |
| Vec | field_vec, | ||
| PetscInt | num_components, | ||
| PetscScalar ** | out_data | ||
| ) |
Implementation of PrepareOutputEulerianFieldData().
Copies this rank's part of a nodal field on the output grid.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/vtk_io.h.
Definition at line 361 of file vtk_io.c.
| PetscErrorCode PrepareOutputParticleData | ( | UserCtx * | user, |
| PostProcessParams * | pps, | ||
| VTKMetaData * | meta, | ||
| PetscInt * | p_n_total | ||
| ) |
Implementation of PrepareOutputParticleData().
Prepares this rank's part of the subsampled particle VTK output.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/vtk_io.h.
Definition at line 384 of file vtk_io.c.