p4est  1.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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  Written by Carsten Burstedde, Lucas C. Wilcox, and Tobin Isaac
8 
9  p4est is free software; you can redistribute it and/or modify
10  it under the terms of the GNU General Public License as published by
11  the Free Software Foundation; either version 2 of the License, or
12  (at your option) any later version.
13 
14  p4est is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with p4est; if not, write to the Free Software Foundation, Inc.,
21  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 */
23 
31 #ifndef P8EST_VTK_H
32 #define P8EST_VTK_H
33 
34 #include <p8est_geometry.h>
35 #include <p8est.h>
36 
37 SC_EXTERN_C_BEGIN;
38 
52 void p8est_vtk_write_file (p8est_t * p8est,
53  p8est_geometry_t * geom,
54  const char *filename);
55 
74 void p8est_vtk_write_all (p8est_t * p8est,
75  p8est_geometry_t * geom,
76  double scale,
77  int write_tree, int write_level,
78  int write_rank, int wrap_rank,
79  int num_scalars, int num_vectors,
80  const char *filename, ...);
81 
112 int p8est_vtk_write_header (p8est_t * p8est,
113  p8est_geometry_t * geom,
114  double scale,
115  int write_tree, int write_level,
116  int write_rank, int wrap_rank,
117  const char *point_scalars,
118  const char *point_vectors,
119  const char *filename);
120 
141  p8est_geometry_t * geom,
142  const char *filename,
143  const char *scalar_name,
144  const double *values);
145 
166  p8est_geometry_t * geom,
167  const char *filename,
168  const char *vector_name,
169  const double *values);
170 
190 int p8est_vtk_write_footer (p8est_t * p8est,
191  const char *filename);
192 
193 SC_EXTERN_C_END;
194 
195 #endif /* !P8EST_VTK_H */
transforms from vertex frame to physical space
int p8est_vtk_write_footer(p8est_t *p8est, const char *filename)
This will write the footer of the vtu file.
The top-level 3D p8est interface.
int p8est_vtk_write_point_scalar(p8est_t *p8est, p8est_geometry_t *geom, const char *filename, const char *scalar_name, const double *values)
This will write a scalar field to the vtu file.
The p8est forest datatype.
Definition: p8est.h:125
int p8est_vtk_write_point_vector(p8est_t *p8est, p8est_geometry_t *geom, const char *filename, const char *vector_name, const double *values)
This will write a 3-vector field to the vtu file.
void p8est_vtk_write_all(p8est_t *p8est, p8est_geometry_t *geom, double scale, int write_tree, int write_level, int write_rank, int wrap_rank, int num_scalars, int num_vectors, const char *filename,...)
This writes out the p8est and any number of point fields in VTK format.
int p8est_vtk_write_header(p8est_t *p8est, p8est_geometry_t *geom, double scale, int write_tree, int write_level, int write_rank, int wrap_rank, const char *point_scalars, const char *point_vectors, const char *filename)
This will write the header of the vtu file.
void p8est_vtk_write_file(p8est_t *p8est, p8est_geometry_t *geom, const char *filename)
This writes out the p8est in VTK format.