OpenLB 1.7
Loading...
Searching...
No Matches
vtiWriter.h
Go to the documentation of this file.
1/* This file is part of the OpenLB library
2 *
3 * Copyright (C) 2006, 2007, 2009, 2012, 2015 Mathias J. Krause, Benjamin Förster, Jonas Latt, Tim Dornieden
4 * E-mail contact: info@openlb.net
5 * The most recent release of OpenLB can be downloaded at
6 * <http://www.openlb.net/>
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public
19 * License along with this program; if not, write to the Free
20 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
22*/
23
29#ifndef VTI_WRITER_H
30#define VTI_WRITER_H
31
32
33#include "io/ostreamManager.h"
34#include "core/blockData.h"
35#include "core/superData.h"
36
37
38namespace olb {
39
40template< typename T, typename BaseType> class BlockData3D;
41template< typename T, typename BaseType> class SuperData3D;
42template< typename T> class LoadBalancer;
43template< typename T> class Cuboid3D;
44template< typename T> class CuboidGeometry3D;
45
46template<typename T, typename BaseType>
48public:
51 static void writeData( std::string const& fName, std::string const& fieldName,
52 BlockData<3,T,BaseType> const& blockData, Cuboid3D<T> const& cuboid);
54 static void writeData( std::string const& fName, std::string const& fieldName,
55 SuperData<3,T,BaseType> const& superData, CuboidGeometry3D<T> const& cGeometry,
56 LoadBalancer<T> const& loadBalancer);
58 static void writeData( std::string const& fName, std::string const& fieldName,
59 SuperData<3,T,BaseType> const& superData);
60private:
61 static OstreamManager clout;
63 static void writePreamble(std::string& fullName, Cuboid3D<T> const& cuboid);
64 static void writePreamble(std::string& fullName, int nx, int ny, int nz,
65 T delta, T originX, T originY, T originZ);
66 static void writePostScript(std::string& fullName);
68 static void writeBlockData(std::string& fullName, std::string const& fieldName, BlockData<3,T,BaseType> const& blockData,
69 Cuboid3D<T> const& cuboid);
71 static std::string getFullName(std::string const& fName);
72};
73
74} // namespace olb
75
76
77#endif
A regular single 3D cuboid is the basic component of a 3D cuboid structure which defines the grid.
Definition cuboid3D.h:58
A cuboid geometry represents a voxel mesh.
Base class for all LoadBalancer.
class for marking output with some text
static void writeData(std::string const &fName, std::string const &fieldName, BlockData< 3, T, BaseType > const &blockData, Cuboid3D< T > const &cuboid)
Write Single Block Data.
Definition vtiWriter.hh:57
Top level namespace for all of OpenLB.
Dynamics for a generic 2D super data – header file.