LifeV
|
ExporterData - Holds the data structure of the array to import/export. More...
#include <Exporter.hpp>
Public Types | |
enum | FieldTypeEnum { ScalarField, VectorField } |
FieldTypeEnum of data stored. More... | |
enum | WhereEnum { Node, Cell } |
Where is data centered? /. More... | |
enum | FieldRegimeEnum { UnsteadyRegime, SteadyRegime, NullRegime } |
Time regime of the field /. More... | |
typedef MeshType | mesh_Type |
typedef VectorEpetra | vector_Type |
typedef std::shared_ptr< vector_Type > | vectorPtr_Type |
typedef FESpace< mesh_Type, MapEpetra > | feSpace_Type |
typedef std::shared_ptr< feSpace_Type > | feSpacePtr_Type |
Constructor & Destructor | |
ExporterData (const FieldTypeEnum &fieldType, const std::string &variableName, const feSpacePtr_Type &feSpacePtr, const vectorPtr_Type &vectorPtr, const UInt &start, const FieldRegimeEnum ®ime, const WhereEnum &where=Node) | |
Constructor with all the data to be stored. More... | |
Operators | |
Real | operator() (const UInt i) const |
Accessor to component (const) More... | |
Real & | operator() (const UInt i) |
Accessor to component (reference) More... | |
Set Methods | |
void | setRegime (FieldRegimeEnum regime) |
set the time regime of the field More... | |
void | setWhere (WhereEnum where) |
set where is the variable located (Node or Cell) More... | |
Get Methods | |
const std::string & | variableName () const |
name assigned to this variable in output file More... | |
const UInt & | numDOF () const |
number of (scalar) DOFs of the variable More... | |
const UInt & | start () const |
address of first datum in the array More... | |
const FieldTypeEnum & | fieldType () const |
scalar or vector field More... | |
const vectorPtr_Type | storedArrayPtr () const |
shared pointer to array More... | |
FieldRegimeEnum | regime () const |
returns UnsteadyRegime (=0) if file name for postprocessing has to include time dependency More... | |
std::string | typeName () const |
returns Scalar or Vector strings More... | |
UInt | fieldDim () const |
returns 1 (if Scalar) or 3 (if Vector) More... | |
const WhereEnum & | where () const |
Node or Cell centered ? More... | |
std::string | whereName () const |
returns Node or Cell centered string More... | |
const feSpacePtr_Type & | feSpacePtr () const |
Private data members | |
std::string | M_variableName |
name assigned to this variable in output file More... | |
feSpacePtr_Type | M_feSpacePtr |
pointer to the FESpace of the variable More... | |
vectorPtr_Type | M_storedArrayPtr |
pointer to storedArray More... | |
UInt | M_numDOF |
number of (scalar) DOFs of the variable More... | |
UInt | M_start |
address of first datum in the array More... | |
FieldTypeEnum | M_fieldType |
scalar or vector field More... | |
FieldRegimeEnum | M_regime |
equal to UnsteadyRegime if file name for postprocessing has to include time dependency More... | |
WhereEnum | M_where |
Node or Cell centered. More... | |
ExporterData - Holds the data structure of the array to import/export.
This class holds the data structure of one datum to help the importer/exporter e.g. variable name, shared pointer to data, size, and few others.
Definition at line 70 of file Exporter.hpp.
Definition at line 77 of file Exporter.hpp.
typedef VectorEpetra vector_Type |
Definition at line 78 of file Exporter.hpp.
typedef std::shared_ptr<vector_Type> vectorPtr_Type |
Definition at line 79 of file Exporter.hpp.
typedef FESpace< mesh_Type, MapEpetra > feSpace_Type |
Definition at line 80 of file Exporter.hpp.
typedef std::shared_ptr<feSpace_Type> feSpacePtr_Type |
Definition at line 81 of file Exporter.hpp.
enum FieldTypeEnum |
FieldTypeEnum of data stored.
Enumerator | |
---|---|
ScalarField | ScalarField stands for scalar field |
VectorField | VectorField stands for vector field |
Definition at line 84 of file Exporter.hpp.
enum WhereEnum |
Where is data centered? /.
Enumerator | |
---|---|
Node | Node centered |
Cell | Cell centered |
Definition at line 91 of file Exporter.hpp.
enum FieldRegimeEnum |
Time regime of the field /.
Enumerator | |
---|---|
UnsteadyRegime | The field is in unsteady regime |
SteadyRegime | The field is in steady regime |
NullRegime | DEPRECATED |
Definition at line 98 of file Exporter.hpp.
ExporterData | ( | const FieldTypeEnum & | fieldType, |
const std::string & | variableName, | ||
const feSpacePtr_Type & | feSpacePtr, | ||
const vectorPtr_Type & | vectorPtr, | ||
const UInt & | start, | ||
const FieldRegimeEnum & | regime, | ||
const WhereEnum & | where = Node |
||
) |
Constructor with all the data to be stored.
Constructor with all the data to be stored
fieldType | - scalar or vector field |
variableName | - name assigned to this variable in output file |
feSpacePtr | - shared pointer to variable FESpace |
vectorPtr | - shared pointer to variable array |
start | - address of first datum in the array to be stored. Useful in case you want to define a subrange of the vector *vec |
regime | - if UnsteadyRegime, then the file name for postprocessing has to include time dependency |
where | - where is variable located (Node or Cell) |
Definition at line 529 of file Exporter.hpp.
Accessor to component (const)
i | which component to access |
Definition at line 551 of file Exporter.hpp.
Accessor to component (reference)
i | which component to access |
Definition at line 557 of file Exporter.hpp.
|
inline |
set the time regime of the field
Definition at line 153 of file Exporter.hpp.
|
inline |
set where is the variable located (Node or Cell)
Definition at line 159 of file Exporter.hpp.
|
inline |
name assigned to this variable in output file
Definition at line 170 of file Exporter.hpp.
|
inline |
number of (scalar) DOFs of the variable
Definition at line 177 of file Exporter.hpp.
|
inline |
address of first datum in the array
Definition at line 183 of file Exporter.hpp.
|
inline |
scalar or vector field
Definition at line 189 of file Exporter.hpp.
|
inline |
shared pointer to array
Definition at line 195 of file Exporter.hpp.
|
inline |
returns UnsteadyRegime (=0) if file name for postprocessing has to include time dependency
Definition at line 201 of file Exporter.hpp.
std::string typeName | ( | ) | const |
returns Scalar or Vector strings
Definition at line 563 of file Exporter.hpp.
UInt fieldDim | ( | ) | const |
returns 1 (if Scalar) or 3 (if Vector)
Definition at line 578 of file Exporter.hpp.
|
inline |
Node or Cell centered ?
Definition at line 213 of file Exporter.hpp.
std::string whereName | ( | ) | const |
returns Node or Cell centered string
Definition at line 584 of file Exporter.hpp.
|
inline |
Definition at line 221 of file Exporter.hpp.
|
private |
name assigned to this variable in output file
Definition at line 231 of file Exporter.hpp.
|
private |
pointer to the FESpace of the variable
Definition at line 234 of file Exporter.hpp.
|
private |
pointer to storedArray
Definition at line 237 of file Exporter.hpp.
|
private |
number of (scalar) DOFs of the variable
Definition at line 240 of file Exporter.hpp.
|
private |
address of first datum in the array
Definition at line 243 of file Exporter.hpp.
|
private |
scalar or vector field
Definition at line 246 of file Exporter.hpp.
|
private |
equal to UnsteadyRegime if file name for postprocessing has to include time dependency
Definition at line 249 of file Exporter.hpp.
|
private |
Node or Cell centered.
Definition at line 252 of file Exporter.hpp.