p4est 2.8.6
p4est is a software library for parallel adaptive mesh refinement.
p4est_vtk.h
Go to the documentation of this file.
1/*
2 This file is part of p4est.
3 p4est is a C library to manage a collection (a forest) of multiple
4 connected adaptive quadtrees or octrees in parallel.
5
6 Copyright (C) 2010 The University of Texas System
7 Additional copyright (C) 2011 individual authors
8 Written by Carsten Burstedde, Lucas C. Wilcox, and Tobin Isaac
9
10 p4est is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
14
15 p4est is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with p4est; if not, write to the Free Software Foundation, Inc.,
22 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23*/
24
32#ifndef P4EST_VTK_H
33#define P4EST_VTK_H
34
35#include <p4est_geometry.h>
36#include <p4est.h>
37
38SC_EXTERN_C_BEGIN;
39
42typedef struct p4est_vtk_context p4est_vtk_context_t;
43
60 p4est_geometry_t * geom,
61 const char *filename);
62
85 const char *filename);
86
97 p4est_geometry_t * geom);
98
108 double scale);
109
121 cont, int continuous);
122
132
166
188 sc_array_t * positions,
189 int Nnodes1D);
190
223 int write_tree,
224 int write_level,
225 int write_rank,
226 int wrap_rank,
227 int num_cell_scalars,
228 int num_cell_vectors,
229 const char *fieldnames[],
230 sc_array_t * values[]);
231
266 int write_tree,
267 int write_level,
268 int write_rank,
269 int wrap_rank,
270 int num_cell_scalars,
271 int num_cell_vectors, ...);
272
307 int write_tree,
308 int write_level,
309 int write_rank,
310 int wrap_rank,
311 int num_cell_scalars,
312 int num_cell_vectors,
313 va_list ap);
314
348 int num_point_scalars,
349 int num_point_vectors, ...);
350
362
363SC_EXTERN_C_END;
364
365#endif /* !P4EST_VTK_H */
The top-level 2D p4est interface.
Transform from tree-local "reference" coordinate system to global "physical space" coordinates.
int p4est_vtk_write_footer(p4est_vtk_context_t *cont)
Write the VTU footer and clean up.
void p4est_vtk_context_destroy(p4est_vtk_context_t *context)
Cleanly destroy a p4est_vtk_context_t structure.
void p4est_vtk_context_set_continuous(p4est_vtk_context_t *cont, int continuous)
Modify the context parameter for expecting continuous point data.
p4est_vtk_context_t * p4est_vtk_write_cell_data(p4est_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 p4est_vtk_context_set_geom(p4est_vtk_context_t *cont, p4est_geometry_t *geom)
Modify the geometry transformation registered in the context.
p4est_vtk_context_t * p4est_vtk_write_cell_dataf(p4est_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.
p4est_vtk_context_t * p4est_vtk_write_header_ho(p4est_vtk_context_t *cont, sc_array_t *positions, int Nnodes1D)
Write the VTK header for higher order visualization.
void p4est_vtk_write_file(p4est_t *p4est, p4est_geometry_t *geom, const char *filename)
Write the p4est in VTK format.
p4est_vtk_context_t * p4est_vtk_write_header(p4est_vtk_context_t *cont)
Write the VTK header.
void p4est_vtk_context_set_scale(p4est_vtk_context_t *cont, double scale)
Modify the context parameter for scaling the quadrants.
p4est_vtk_context_t * p4est_vtk_write_cell_datav(p4est_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.
p4est_vtk_context_t * p4est_vtk_context_new(p4est_t *p4est, const char *filename)
The first call to write a VTK file using individual functions.
struct p4est_vtk_context p4est_vtk_context_t
Opaque context type for writing VTK output with multiple function calls.
Definition: p4est_vtk.h:42
p4est_vtk_context_t * p4est_vtk_write_point_dataf(p4est_vtk_context_t *cont, int num_point_scalars, int num_point_vectors,...)
Write VTK point data.
Encapsulates a custom transformation from tree-local coordinates to user defined physical space.
Definition: p4est_geometry.h:86
The p4est forest datatype.
Definition: p4est.h:136