Logo  0.95.0-final
Finite Element Embedded Library and Language in C++
Feel++ Feel++ on Github Feel++ community
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Feel::ExporterEnsight< MeshType, N > Class Template Reference

#include <exporterensight.hpp>

Detailed Description

template<typename MeshType, int N>
class Feel::ExporterEnsight< MeshType, N >

exporter to Ensight format

Author
Christophe Prud'homme
+ Inheritance diagram for Feel::ExporterEnsight< MeshType, N >:

Public Types

Typedefs
typedef MeshType mesh_type
 
typedef super::timeset_type timeset_type
 
typedef super::timeset_ptrtype timeset_ptrtype
 
typedef super::timeset_iterator timeset_iterator
 
typedef
super::timeset_const_iterator 
timeset_const_iterator
 
- Public Types inherited from Feel::Exporter< MeshType, N >
typedef VisitorBase super1
 
typedef Visitor< MeshType > super2
 
typedef TimeSet< MeshType, N > timeset_type
 
typedef timeset_type::mesh_type mesh_type
 
typedef timeset_type::mesh_ptrtype mesh_ptrtype
 
typedef boost::shared_ptr
< timeset_type
timeset_ptrtype
 
typedef std::vector
< timeset_ptrtype > 
timeset_set_type
 
typedef timeset_set_type::iterator timeset_iterator
 
typedef
timeset_set_type::const_iterator 
timeset_const_iterator
 
typedef timeset_type::step_type step_type
 
typedef timeset_type::step_ptrtype step_ptrtype
 
- Public Types inherited from Feel::Visitor< MeshType >
typedef void return_type
 

Public Member Functions

Constructors, destructor
 ExporterEnsight (WorldComm const &worldComm=Environment::worldComm())
 
 ExporterEnsight (std::string const &__p="default", int freq=1, WorldComm const &worldComm=Environment::worldComm())
 
 ExporterEnsight (po::variables_map const &vm=Environment::vm(), std::string const &exp_prefix="", WorldComm const &worldComm=Environment::worldComm())
 
 ExporterEnsight (ExporterEnsight const &__ex)
 
 ~ExporterEnsight ()
 
Accessors
std::string const & elementType () const
 
Mutators
Exporter< MeshType, N > * setOptions (po::variables_map const &vm, std::string const &exp_prefix="") FEELPP_DEPRECATED
 
Exporter< MeshType, N > * setOptions (std::string const &exp_prefix="")
 
Methods
void save () const
 
void visit (mesh_type *mesh)
 visit a data structure
 
- Public Member Functions inherited from Feel::Exporter< MeshType, N >
bool doExport () const
 
std::string const & type () const
 
std::string const & prefix () const
 
int freq () const
 
int cptOfSave () const
 
file_type fileType () const
 
std::string path () const
 
void setDoExport (bool do_export)
 
Exporter< MeshType, N > * setType (std::string const &__type)
 
Exporter< MeshType, N > * addPath (boost::format fmt)
 
Exporter< MeshType, N > * setPrefix (std::string const &__prefix)
 
Exporter< MeshType, N > * setFreq (int __freq)
 
Exporter< MeshType, N > * setFileType (file_type __ft)
 
timeset_iterator beginTimeSet ()
 
timeset_iterator endTimeSet ()
 
timeset_const_iterator beginTimeSet () const
 
timeset_const_iterator endTimeSet () const
 
timeset_ptrtype defaultTimeSet ()
 
timeset_ptrtype timeSet (int ts)
 
bool useSingleTransientFile () const
 
void setUseSingleTransientFile (bool s)
 
void setMesh (mesh_ptrtype mesh, ExporterGeometry exgeo=EXPORTER_GEOMETRY_CHANGE_COORDS_ONLY)
 
template<typename F >
void add (std::string const &name, F const &u)
 
void addRegions ()
 
step_ptrtype step (double time)
 
step_ptrtype step (double time, int s)
 
void addTimeSet (timeset_ptrtype const &__ts)
 
void saveTimeSet () const
 
void restart (double __time)
 
void setWorldComm (WorldComm const &wc)
 
WorldComm const & worldComm () const
 
ExporterGeometry exporterGeometry () const
 
 Exporter (WorldComm const &worldComm=Environment::worldComm())
 
 Exporter (std::string const &type, std::string const &prefix="", int freq=1, WorldComm const &worldComm=Environment::worldComm())
 
 Exporter (po::variables_map const &vm, std::string const &exporter_prefix="", WorldComm const &worldComm=Environment::worldComm())
 
 Exporter (Exporter const &exporter)
 
virtual ~Exporter ()
 
- Public Member Functions inherited from Feel::Visitor< MeshType >
virtual ~Visitor ()
 virtual base destructor
 
return_type visit (MeshType &__t)
 visit a data structure
 

Additional Inherited Members

- Static Public Member Functions inherited from Feel::Exporter< MeshType, N >
static boost::shared_ptr
< Exporter< MeshType, N > > 
New (std::string const &exportername, std::string prefix=Environment::about().appName(), WorldComm const &worldComm=Environment::worldComm())
 
static boost::shared_ptr
< Exporter< MeshType, N > > 
New (po::variables_map const &vm=Environment::vm(), std::string prefix=Environment::about().appName(), WorldComm const &worldComm=Environment::worldComm())
 
- Protected Attributes inherited from Feel::Exporter< MeshType, N >
int M_cptOfSave
 
bool M_do_export
 
ExporterGeometry M_ex_geometry
 
int M_freq
 
file_type M_ft
 
std::string M_path
 
std::string M_prefix
 
timeset_set_type M_ts_set
 
std::string M_type
 
bool M_use_single_transient_file
 
WorldComm M_worldComm
 

Constructor & Destructor Documentation

template<typename MeshType , int N>
Feel::ExporterEnsight< MeshType, N >::ExporterEnsight ( WorldComm const &  worldComm = Environment::worldComm())

The elements that are supported by the EnSight6 format are:

1                 1------------------2        1----------2--------3
point                   two node bar                three node bar


7
4-------------3          4-------------3
3                 |             |          |             |
3                        /\                |             |          |             |
/\                      /  \               |             |        8 |             | 6
/  \               6    /    \  5           |             |          |             |
/    \                  /      \             |             |          |             |
/      \                /        \            |             |          |             |
/        \              /          \           |             |          |      5      |
/          \            /    4       \          1-------------2          1-------------2
1------------2           1------------2
three node triangle       six node triangle       four node quadrangle     eight node quadrangle


/\
/ |\
/  |4\
/   |  \
/    |   \
/     |    \
1------|-----\
\     |    3/
\    |    /
\  2|   /
\  |  /
\ | /
\\2/

four node tetrahedron

Member Function Documentation

template<typename MeshType , int N>
std::string const& Feel::ExporterEnsight< MeshType, N >::elementType ( ) const
inline
Returns
the ensight element type
template<typename MeshType , int N>
void Feel::ExporterEnsight< MeshType, N >::save ( ) const
virtual

save the timeset

Implements Feel::Exporter< MeshType, N >.

template<typename MeshType , int N>
Exporter<MeshType,N>* Feel::ExporterEnsight< MeshType, N >::setOptions ( po::variables_map const &  vm,
std::string const &  exp_prefix = "" 
)
inlinevirtual

set the options from the variables_map vm as well as the prefix exp_prefix

Reimplemented from Feel::Exporter< MeshType, N >.

References Feel::Exporter< MeshType, N >::setOptions().

template<typename MeshType , int N>
Exporter<MeshType,N>* Feel::ExporterEnsight< MeshType, N >::setOptions ( std::string const &  exp_prefix = "")
inlinevirtual

set the options from the variables_map vm as well as the prefix exp_prefix

Reimplemented from Feel::Exporter< MeshType, N >.

References Feel::Exporter< MeshType, N >::setOptions().


The documentation for this class was generated from the following files:

Generated on Sun Oct 20 2013 08:25:07 for Feel++ by doxygen 1.8.4