p4est 2.8.8
p4est is a software library for parallel adaptive mesh refinement.
Loading...
Searching...
No Matches
p8est_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 P8EST_VTK_H
33#define P8EST_VTK_H
34
35#include <p8est_geometry.h>
36#include <p8est_tnodes.h>
37
38SC_EXTERN_C_BEGIN;
39
42typedef struct p8est_vtk_context p8est_vtk_context_t;
43
60 p8est_geometry_t * geom,
61 const char *filename);
62
85 const char *filename);
86
97 p8est_geometry_t * geom);
98
108 p8est_lnodes_t * lnodes);
109
125 double scale);
126
138 cont, int continuous);
148
182
196 p8est_tnodes_t *tnodes);
197
219 sc_array_t * positions,
220 int Nnodes1D);
221
257 int write_tree,
258 int write_level,
259 int write_rank,
260 int wrap_rank,
261 int num_cell_scalars,
262 int num_cell_vectors,
263 const char *fieldnames[],
264 sc_array_t * values[]);
265
303 int write_tree,
304 int write_level,
305 int write_rank,
306 int wrap_rank,
307 int num_cell_scalars,
308 int num_cell_vectors, ...);
309
347 int write_tree,
348 int write_level,
349 int write_rank,
350 int wrap_rank,
351 int num_cell_scalars,
352 int num_cell_vectors,
353 va_list ap);
354
388 int num_point_scalars,
389 int num_point_vectors, ...);
390
402
403SC_EXTERN_C_END;
404
405#endif /* !P8EST_VTK_H */
Transform from tree-local "reference" coordinate system to global "physical space" coordinates.
Generate a conforming tetrahedron mesh from a 2:1 balanced p8est.
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.
void p8est_vtk_context_set_lnodes(p8est_vtk_context_t *cont, p8est_lnodes_t *lnodes)
Add an lnodes structure to the context.
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 structure.
p8est_vtk_context_t * p8est_vtk_write_header_tnodes(p8est_vtk_context_t *cont, p8est_tnodes_t *tnodes)
Write the VTK header to visualize the simplex mesh in p8est_tnodes.
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:150
Encapsulates a custom transformation from tree-local coordinates to user defined physical space.
Definition p8est_geometry.h:95
Store a parallel numbering of Lobatto points of a given degree > 0.
Definition p8est_lnodes.h:127
Lookup table structure defining a conforming tetrahedral mesh.
Definition p8est_tnodes.h:51
The p8est forest datatype.
Definition p8est.h:146