p4est 2.8.8
p4est is a software library for parallel adaptive mesh refinement.
Loading...
Searching...
No Matches
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_tnodes.h>
37
38SC_EXTERN_C_BEGIN;
39
42typedef struct p4est_vtk_context p4est_vtk_context_t;
43
59void p4est_vtk_write_file (p4est_t * p4est,
60 p4est_geometry_t * geom,
61 const char *filename);
62
84p4est_vtk_context_t *p4est_vtk_context_new (p4est_t * p4est,
85 const char *filename);
86
96void p4est_vtk_context_set_geom (p4est_vtk_context_t * cont,
97 p4est_geometry_t * geom);
98
107void p4est_vtk_context_set_lnodes (p4est_vtk_context_t * cont,
108 p4est_lnodes_t * lnodes);
109
124void p4est_vtk_context_set_scale (p4est_vtk_context_t * cont,
125 double scale);
126
137void p4est_vtk_context_set_continuous (p4est_vtk_context_t *
138 cont, int continuous);
139
148void p4est_vtk_context_destroy (p4est_vtk_context_t * context);
149
182p4est_vtk_context_t *p4est_vtk_write_header (p4est_vtk_context_t * cont);
183
196p4est_vtk_write_header_tnodes (p4est_vtk_context_t *cont,
197 p4est_tnodes_t *tnodes);
198
219p4est_vtk_context_t *p4est_vtk_write_header_ho (p4est_vtk_context_t * cont,
220 sc_array_t * positions,
221 int Nnodes1D);
222
257p4est_vtk_context_t *p4est_vtk_write_cell_data (p4est_vtk_context_t * cont,
258 int write_tree,
259 int write_level,
260 int write_rank,
261 int wrap_rank,
262 int num_cell_scalars,
263 int num_cell_vectors,
264 const char *fieldnames[],
265 sc_array_t * values[]);
266
303p4est_vtk_context_t *p4est_vtk_write_cell_dataf (p4est_vtk_context_t * cont,
304 int write_tree,
305 int write_level,
306 int write_rank,
307 int wrap_rank,
308 int num_cell_scalars,
309 int num_cell_vectors, ...);
310
347p4est_vtk_context_t *p4est_vtk_write_cell_datav (p4est_vtk_context_t * cont,
348 int write_tree,
349 int write_level,
350 int write_rank,
351 int wrap_rank,
352 int num_cell_scalars,
353 int num_cell_vectors,
354 va_list ap);
355
388p4est_vtk_context_t *p4est_vtk_write_point_dataf (p4est_vtk_context_t * cont,
389 int num_point_scalars,
390 int num_point_vectors, ...);
391
402int p4est_vtk_write_footer (p4est_vtk_context_t * cont);
403
404SC_EXTERN_C_END;
405
406#endif /* !P4EST_VTK_H */
Transform from tree-local "reference" coordinate system to global "physical space" coordinates.
Generate a conforming triangle mesh from a 2:1 balanced p4est.
struct p4est_vtk_context p4est_vtk_context_t
Opaque context type for writing VTK output with multiple function calls.
Definition p4est_vtk.h:42
Encapsulates a custom transformation from tree-local coordinates to user defined physical space.
Definition p4est_geometry.h:99
Store a parallel numbering of Lobatto points of a given degree > 0.
Definition p4est_lnodes.h:145
Lookup table structure defining a conforming triangle mesh.
Definition p4est_tnodes.h:68
The p4est forest datatype.
Definition p4est.h:150