30 #ifndef __ExporterEnsight_H
31 #define __ExporterEnsight_H 1
37 #include <boost/lambda/lambda.hpp>
38 #include <boost/filesystem/path.hpp>
39 #include <boost/filesystem/operations.hpp>
41 #include <feel/feelfilters/exporter.hpp>
46 namespace fs = boost::filesystem;
55 template<
typename MeshType,
int N>
68 typedef MeshType mesh_type;
71 typedef typename super::timeset_ptrtype timeset_ptrtype;
72 typedef typename super::timeset_iterator timeset_iterator;
73 typedef typename super::timeset_const_iterator timeset_const_iterator;
123 ExporterEnsight( WorldComm
const& worldComm = Environment::worldComm() );
124 ExporterEnsight( std::string
const& __p =
"default",
int freq = 1, WorldComm
const& worldComm = Environment::worldComm() );
125 ExporterEnsight( po::variables_map
const& vm=Environment::vm(), std::string
const& exp_prefix =
"", WorldComm
const& worldComm = Environment::worldComm() );
150 return M_element_type;
186 void visit( mesh_type* mesh );
204 void _F_writeSoSFile()
const;
209 void _F_writeCaseFile()
const;
214 void _F_writeGeoFiles()
const;
219 void _F_writeVariableFiles()
const;
221 template<
typename Iterator>
222 void saveNodal(
typename timeset_type::step_ptrtype __step, Iterator __var, Iterator en )
const;
224 template<
typename Iterator>
225 void saveElement(
typename timeset_type::step_ptrtype __step, Iterator __evar, Iterator __evaren )
const;
229 mutable std::string M_filename;
230 std::string M_element_type;
virtual Exporter< MeshType, N > * setOptions(std::string const &exp_prefix="")
Definition: exporterimpl.hpp:175
Exporter< MeshType, N > * setOptions(po::variables_map const &vm, std::string const &exp_prefix="") FEELPP_DEPRECATED
Definition: exporterensight.hpp:160
exporter to Ensight format
Definition: exporterensight.hpp:56
export Feel generated data to some file formatsUse the visitor and factory pattern.
Definition: exporter.hpp:82
ExporterEnsight(WorldComm const &worldComm=Environment::worldComm())
Definition: exporterensight.cpp:43
data TimeSet
Definition: timeset.hpp:90
#define FEELPP_DEPRECATED
Definition: feelmacros.hpp:352
void save() const
Definition: exporterensight.cpp:107
std::string const & elementType() const
Definition: exporterensight.hpp:148
Exporter< MeshType, N > * setOptions(std::string const &exp_prefix="")
Definition: exporterensight.hpp:167
int freq() const
Definition: exporter.hpp:209
void visit(mesh_type *mesh)
visit a data structure
Definition: exporterensight.cpp:650