COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Writer.hpp
Go to the documentation of this file.
1 // Copyright (C) 2010-2013 von Karman Institute for Fluid Dynamics, Belgium
2 //
3 // This software is distributed under the terms of the
4 // GNU Lesser General Public License version 3 (LGPLv3).
5 // See doc/lgpl.txt and doc/gpl.txt for the license text.
6 
7 #ifndef cf3_mesh_smurf_Writer_hpp
8 #define cf3_mesh_smurf_Writer_hpp
9 
11 
12 #include "mesh/MeshWriter.hpp"
13 #include "mesh/GeoShape.hpp"
14 
15 #include "smurf/smurf.h"
16 
17 #include "mesh/smurf/LibSmurf.hpp"
18 
20 
21 namespace cf3 {
22 namespace mesh {
23  class ElementType;
24 namespace smurf {
25 
27 
30 class smurf_API Writer : public MeshWriter
31 {
32 public: // typedefs
33 
34 
35 
36 
37 public: // functions
38 
40  Writer( const std::string& name );
41 
43  static std::string type_name() { return "Writer"; }
44 
45  virtual void write();
46 
47  virtual std::string get_format() { return "smurf"; }
48 
49  virtual std::vector<std::string> get_extensions();
50 
51 private: // functions
52 
53  SmURF::ZoneType zone_type(const ElementType& etype) const;
54 
55 private: // data
56 
57 
58 }; // end Writer
59 
60 
62 
63 } // smurf
64 } // mesh
65 } // cf3
66 
68 
69 #endif // cf3_mesh_smurf_Writer_hpp
std::string name(ComponentWrapper &self)
#define smurf_API
Definition: LibSmurf.hpp:22
ZoneType
Definition: smurf.h:15
static std::string type_name()
Gets the Class name.
Definition: Writer.hpp:43
virtual std::string get_format()
Definition: Writer.hpp:47
Top-level namespace for coolfluid.
Definition: Action.cpp:18
Send comments to:
COOLFluiD Web Admin