p4est 2.8.6
p4est is a software library for parallel adaptive mesh refinement.
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.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 double scale);
109
121 cont, int continuous);
131
165
187 sc_array_t * positions,
188 int Nnodes1D);
189
222 int write_tree,
223 int write_level,
224 int write_rank,
225 int wrap_rank,
226 int num_cell_scalars,
227 int num_cell_vectors,
228 const char *fieldnames[],
229 sc_array_t * values[]);
230
265 int write_tree,
266 int write_level,
267 int write_rank,
268 int wrap_rank,
269 int num_cell_scalars,
270 int num_cell_vectors, ...);
271
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 /* !P8EST_VTK_H */
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