61 const char *filename);
85 const char *filename);
121 cont,
int continuous);
187 sc_array_t * positions,
226 int num_cell_scalars,
227 int num_cell_vectors,
228 const char *fieldnames[],
229 sc_array_t * values[]);
269 int num_cell_scalars,
270 int num_cell_vectors, ...);
311 int num_cell_scalars,
312 int num_cell_vectors,
348 int num_point_scalars,
349 int num_point_vectors, ...);
The top-level 3D p8est interface.
Transform from tree-local "reference" coordinate system to global "physical space" coordinates.
struct p8est_vtk_context p8est_vtk_context_t
Opaque context type for writing VTK output with multiple function calls.
Definition: p8est_vtk.h:42
p8est_vtk_context_t * p8est_vtk_context_new(p8est_t *p4est, const char *filename)
The first call to write a VTK file using individual functions.
p8est_vtk_context_t * p8est_vtk_write_header_ho(p8est_vtk_context_t *cont, sc_array_t *positions, int Nnodes1D)
Write the VTK header for higher order visualization.
void p8est_vtk_context_set_geom(p8est_vtk_context_t *cont, p8est_geometry_t *geom)
Modify the geometry transformation registered in the context.
p8est_vtk_context_t * p8est_vtk_write_point_dataf(p8est_vtk_context_t *cont, int num_point_scalars, int num_point_vectors,...)
Write VTK point data.
p8est_vtk_context_t * p8est_vtk_write_cell_dataf(p8est_vtk_context_t *cont, int write_tree, int write_level, int write_rank, int wrap_rank, int num_cell_scalars, int num_cell_vectors,...)
Write VTK cell data.
p8est_vtk_context_t * p8est_vtk_write_header(p8est_vtk_context_t *cont)
Write the VTK header.
void p8est_vtk_write_file(p8est_t *p8est, p8est_geometry_t *geom, const char *filename)
Write the p8est in VTK format.
p8est_vtk_context_t * p8est_vtk_write_cell_datav(p8est_vtk_context_t *cont, int write_tree, int write_level, int write_rank, int wrap_rank, int num_cell_scalars, int num_cell_vectors, va_list ap)
Write VTK cell data.
void p8est_vtk_context_set_continuous(p8est_vtk_context_t *cont, int continuous)
Modify the context parameter for expecting continuous point data.
p8est_vtk_context_t * p8est_vtk_write_cell_data(p8est_vtk_context_t *cont, int write_tree, int write_level, int write_rank, int wrap_rank, int num_cell_scalars, int num_cell_vectors, const char *fieldnames[], sc_array_t *values[])
Write VTK cell data.
void p8est_vtk_context_destroy(p8est_vtk_context_t *context)
Cleanly destroy a p8est_vtk_context_t structure.
void p8est_vtk_context_set_scale(p8est_vtk_context_t *cont, double scale)
Modify the context parameter for scaling the quadrants.
int p8est_vtk_write_footer(p8est_vtk_context_t *cont)
Write the VTU footer and clean up.
The p4est forest datatype.
Definition: p4est.h:136
This structure can be created by the user, p4est will never change its contents.
Definition: p8est_geometry.h:66
The p8est forest datatype.
Definition: p8est.h:132