p4est  1.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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  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 P4EST_VTK_H
32 #define P4EST_VTK_H
33 
34 #include <p4est_geometry.h>
35 #include <p4est.h>
36 
37 SC_EXTERN_C_BEGIN;
38 
52 void p4est_vtk_write_file (p4est_t * p4est,
53  p4est_geometry_t * geom,
54  const char *filename);
55 
74 void p4est_vtk_write_all (p4est_t * p4est,
75  p4est_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 p4est_vtk_write_header (p4est_t * p4est,
113  p4est_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  p4est_geometry_t * geom,
142  const char *filename,
143  const char *scalar_name,
144  const double *values);
145 
166  p4est_geometry_t * geom,
167  const char *filename,
168  const char *vector_name,
169  const double *values);
170 
190 int p4est_vtk_write_footer (p4est_t * p4est,
191  const char *filename);
192 
193 SC_EXTERN_C_END;
194 
195 #endif /* !P4EST_VTK_H */
int p4est_vtk_write_point_scalar(p4est_t *p4est, p4est_geometry_t *geom, const char *filename, const char *scalar_name, const double *values)
This will write a scalar field to the vtu file.
Definition: p4est_vtk.c:737
void p4est_vtk_write_all(p4est_t *p4est, p4est_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 p4est and any number of point fields in VTK format.
Definition: p4est_vtk.c:81
The p4est forest datatype.
Definition: p4est.h:129
The top-level 2D p4est interface.
transforms from vertex frame to physical space
int p4est_vtk_write_header(p4est_t *p4est, p4est_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.
Definition: p4est_vtk.c:157
int p4est_vtk_write_footer(p4est_t *p4est, const char *filename)
This will write the footer of the vtu file.
Definition: p4est_vtk.c:857
void p4est_vtk_write_file(p4est_t *p4est, p4est_geometry_t *geom, const char *filename)
This writes out the p4est in VTK format.
Definition: p4est_vtk.c:70
int p4est_vtk_write_point_vector(p4est_t *p4est, p4est_geometry_t *geom, const char *filename, const char *vector_name, const double *values)
This will write a 3-vector field to the vtu file.
Definition: p4est_vtk.c:849