LifeV
|
class ETFESpace A light, templated version of the FESpace More...
#include <ETFESpace.hpp>
Private Attributes | |
meshPtr_Type | M_mesh |
const ReferenceFE * | M_referenceFE |
const GeometricMap * | M_geometricMap |
DOF * | M_dof |
MapType * | M_map |
Public Types | |
typedef MeshType | mesh_Type |
Typedef for the mesh. More... | |
typedef MapType | map_Type |
Typedef for the map (algebraic) More... | |
typedef std::shared_ptr< mesh_Type > | meshPtr_Type |
Typedef for a pointer on the mesh. More... | |
typedef map_Type::commPtr_Type | commPtr_Type |
Typedef for a pointer on the communicator. More... | |
Static constants | |
enum | { space_dim = SpaceDim } |
Dimension of the space. More... | |
enum | { field_dim = FieldDim } |
Dimension of the field of the FE space. More... | |
Constructors, destructor | |
ETFESpace (const meshPtr_Type &mesh, const ReferenceFE *refFE, const GeometricMap *geoMap, commPtr_Type &commptr) | |
Full constructor using the mesh, the referenceFE, the mapping and the communicator. More... | |
ETFESpace (const meshPtr_Type &mesh, const ReferenceFE *refFE, commPtr_Type &commptr) | |
Constructor where the geometric mapping is guessed. More... | |
ETFESpace (const MeshPartitioner< MeshType > &meshPartitioner, const ReferenceFE *refFE, const GeometricMap *geoMap, commPtr_Type &commptr) | |
Full constructor using the partitioner of the mesh. More... | |
ETFESpace (const MeshPartitioner< MeshType > &meshPartitioner, const ReferenceFE *refFE, commPtr_Type &commptr) | |
Full constructor using the partitioner of the mesh and a guessed geometric map. More... | |
ETFESpace (const ETFESpace< MeshType, MapType, SpaceDim, FieldDim > &otherSpace) | |
Copy constructor. More... | |
virtual | ~ETFESpace () |
Destructor. More... | |
Get Methods | |
meshPtr_Type | mesh () const |
Getter for the mesh pointer. More... | |
const ReferenceFE & | refFE () const |
Getter for the reference FE. More... | |
const GeometricMap & | geoMap () const |
Getter for the geometric mapping. More... | |
const DOF & | dof () const |
Getter for the dof manager. More... | |
const MapType & | map () const |
Getter for the algebraic map. More... | |
MapType & | map () |
Getter for the algebraic map. More... | |
const UInt | spaceDim () const |
Getter for the dimension of the space (geometric, ambiant space) More... | |
const UInt | fieldDim () const |
Getter for the dimension of the field (scalar vs vectorial FE) More... | |
Private Methods | |
ETFESpace () | |
No empty constructor. More... | |
void | createMap (const commPtr_Type &commptr) |
Creates the map from the input. More... | |
class ETFESpace A light, templated version of the FESpace
This class represents a data structure for everything a finite element space requires to be defined:
It does not contain any information about the quadrature (unlike LifeV::FESpace), as this is not strictly needed for the definition of the space.
This class is supposed to be constant during a simulation, so that it can be shared across the different structures using it.
Template parameters
MeshType The type of the mesh used. MapType The type of the algebraic map (for distributed computations, e.g. MapEpetra). SpaceDim The space of the domain definition FieldDim The dimension of the field (1 for a scalar FE, more for a vectorial one)
Template requirements
MeshType Same as for std::shared_ptr MapType empty constructor; copy constructor; constructor using the reference FE, the mesh and a communicator; concatenation operator +=
Definition at line 93 of file ETFESpace.hpp.
Typedef for the mesh.
Definition at line 101 of file ETFESpace.hpp.
typedef MapType map_Type |
Typedef for the map (algebraic)
Definition at line 104 of file ETFESpace.hpp.
typedef std::shared_ptr<mesh_Type> meshPtr_Type |
Typedef for a pointer on the mesh.
Definition at line 107 of file ETFESpace.hpp.
typedef map_Type::commPtr_Type commPtr_Type |
Typedef for a pointer on the communicator.
Definition at line 110 of file ETFESpace.hpp.
anonymous enum |
anonymous enum |
Dimension of the field of the FE space.
Enumerator | |
---|---|
field_dim |
Definition at line 122 of file ETFESpace.hpp.
ETFESpace | ( | const meshPtr_Type & | mesh, |
const ReferenceFE * | refFE, | ||
const GeometricMap * | geoMap, | ||
commPtr_Type & | commptr | ||
) |
Full constructor using the mesh, the referenceFE, the mapping and the communicator.
mesh | Pointer on the mesh |
refFE | The reference element for the finite element |
geoMap | The geometric mapping |
commptr | Pointer on the communicator to be used |
Definition at line 311 of file ETFESpace.hpp.
ETFESpace | ( | const meshPtr_Type & | mesh, |
const ReferenceFE * | refFE, | ||
commPtr_Type & | commptr | ||
) |
Constructor where the geometric mapping is guessed.
In this constructor, the geometric map is guessed using the shape of the elements of the mesh.
mesh | Pointer on the mesh |
refFE | The reference element for the finite element |
commptr | Pointer on the communicator to be used |
Definition at line 324 of file ETFESpace.hpp.
ETFESpace | ( | const MeshPartitioner< MeshType > & | meshPartitioner, |
const ReferenceFE * | refFE, | ||
const GeometricMap * | geoMap, | ||
commPtr_Type & | commptr | ||
) |
Full constructor using the partitioner of the mesh.
meshPartitioner | The partition of the mesh |
refFE | The reference element for the finite element |
geoMap | The geometric mapping |
commptr | Pointer on the communicator to be used |
Definition at line 338 of file ETFESpace.hpp.
ETFESpace | ( | const MeshPartitioner< MeshType > & | meshPartitioner, |
const ReferenceFE * | refFE, | ||
commPtr_Type & | commptr | ||
) |
Full constructor using the partitioner of the mesh and a guessed geometric map.
In this constructor, the geometric map is guessed using the shape of the elements of the mesh.
meshPartitioner | The partition of the mesh |
refFE | The reference element for the finite element |
commptr | Pointer on the communicator to be used |
Definition at line 353 of file ETFESpace.hpp.
Copy constructor.
otherSpace | The finite element space to be copied |
Definition at line 367 of file ETFESpace.hpp.
|
inlinevirtual |
Destructor.
Definition at line 188 of file ETFESpace.hpp.
|
private |
No empty constructor.
|
inline |
Getter for the mesh pointer.
Definition at line 201 of file ETFESpace.hpp.
|
inline |
Getter for the reference FE.
Definition at line 210 of file ETFESpace.hpp.
|
inline |
Getter for the geometric mapping.
Definition at line 219 of file ETFESpace.hpp.
|
inline |
Getter for the dof manager.
Definition at line 228 of file ETFESpace.hpp.
|
inline |
Getter for the algebraic map.
Definition at line 237 of file ETFESpace.hpp.
|
inline |
Getter for the algebraic map.
Definition at line 246 of file ETFESpace.hpp.
|
inline |
Getter for the dimension of the space (geometric, ambiant space)
Definition at line 255 of file ETFESpace.hpp.
|
inline |
Getter for the dimension of the field (scalar vs vectorial FE)
Definition at line 264 of file ETFESpace.hpp.
|
private |
Creates the map from the input.
Definition at line 379 of file ETFESpace.hpp.
|
private |
Definition at line 285 of file ETFESpace.hpp.
|
private |
Definition at line 288 of file ETFESpace.hpp.
|
private |
Definition at line 291 of file ETFESpace.hpp.
|
private |
Definition at line 294 of file ETFESpace.hpp.
|
private |
Definition at line 297 of file ETFESpace.hpp.