LifeV
FEVectorField< MeshType, MapType > Class Template Reference

FEVectorField - This class gives an abstract implementation of a finite element vector field. More...

#include <FEField.hpp>

+ Inheritance diagram for FEVectorField< MeshType, MapType >:
+ Collaboration diagram for FEVectorField< MeshType, MapType >:

Public Types

typedef MeshType mesh_Type
 
typedef MapType map_Type
 
typedef Vector return_Type
 
typedef FEField< mesh_Type, map_Type, return_TypeFEField_Type
 
typedef FEField_Type::FESpacePtr_Type FESpacePtr_Type
 
typedef FEField_Type::vectorPtr_Type vectorPtr_Type
 
typedef FEField_Type::point_Type point_Type
 

Constructors and destructor

 FEVectorField ()
 Empty constructor for the class. More...
 
 FEVectorField (const FESpacePtr_Type &fESpace, const vectorPtr_Type &vector)
 Full constructor for the class. More...
 
 FEVectorField (const FESpacePtr_Type &fESpace, const MapEpetraType &mapType=Repeated)
 Constructor for the class without the vector. More...
 
 FEVectorField (const FEVectorField &field)
 Copy constructor. More...
 
virtual ~FEVectorField ()
 Virtual destructor. More...
 

Opertors

virtual return_Type eval (const UInt &iElem, const point_Type &P, const Real &time=0.) const
 Eval function. More...
 

Additional Inherited Members

- Public Types inherited from FEField< MeshType, MapType, Vector >
typedef MeshType mesh_Type
 
typedef MapType map_Type
 
typedef Vector return_Type
 
typedef FESpace< mesh_Type, map_TypeFESpace_Type
 
typedef std::shared_ptr< FESpace_TypeFESpacePtr_Type
 
typedef VectorEpetra vector_Type
 
typedef std::shared_ptr< vector_TypevectorPtr_Type
 
typedef Vector3D point_Type
 
- Public Member Functions inherited from FEField< MeshType, MapType, Vector >
 FEField ()
 Empty constructor for the class. More...
 
 FEField (const FESpacePtr_Type &fESpace, const vectorPtr_Type &vector)
 Full constructor for the class. More...
 
 FEField (const FESpacePtr_Type &fESpace, const MapEpetraType &mapType=Repeated)
 Constructor for the class without the vector. More...
 
 FEField (const FEField &field)
 Copy constructor. More...
 
virtual ~FEField ()
 Virtual destructor. More...
 
FEFieldoperator= (const FEField &field)
 
void setFESpacePtr (const FESpacePtr_Type &fESpace, const bool createVector=false, const MapEpetraType &mapType=Repeated)
 Set the FESpace. More...
 
void setVectorPtr (const vectorPtr_Type &vector)
 Set the epetra vector. More...
 
void setVector (const vector_Type &vector)
 Set the epetra vector. More...
 
void setUp (const FESpacePtr_Type &fESpace, const vectorPtr_Type &vector)
 Set both FESpace and vector. More...
 
void cleanField ()
 Clean the field. More...
 
const FESpace_TypegetFESpace () const
 Return the finite element space. More...
 
FESpace_TypegetFESpace ()
 Return the finite element space. More...
 
const FESpacePtr_TypegetFESpacePtr () const
 Return the pointer to the finite element space. More...
 
const vectorPtr_TypegetVectorPtr () const
 Return the vector where the value are stored. More...
 
vector_TypegetVector ()
 Return the vector where the value are stored. More...
 
const vector_TypegetVector () const
 Return the vector where the value are stored. More...
 
- Protected Attributes inherited from FEField< MeshType, MapType, Vector >
FESpacePtr_Type M_FESpace
 Reference of the finite element space. More...
 
vectorPtr_Type M_vector
 Pointer of a vector where the value are stored. More...
 

Detailed Description

template<typename MeshType, typename MapType>
class LifeV::FEVectorField< MeshType, MapType >

FEVectorField - This class gives an abstract implementation of a finite element vector field.

Author
A. Fumagalli aless.nosp@m.io.f.nosp@m.umaga.nosp@m.lli@.nosp@m.mail..nosp@m.poli.nosp@m.mi.it
M. Kern miche.nosp@m.l.ke.nosp@m.rn@in.nosp@m.ria..nosp@m.fr

This class, derived from FEField, implements the concept of a vector field associated to a finite element space.

Definition at line 405 of file FEField.hpp.

Member Typedef Documentation

◆ mesh_Type

Definition at line 414 of file FEField.hpp.

◆ map_Type

typedef MapType map_Type

Definition at line 415 of file FEField.hpp.

◆ return_Type

Definition at line 416 of file FEField.hpp.

◆ FEField_Type

Definition at line 418 of file FEField.hpp.

◆ FESpacePtr_Type

Definition at line 420 of file FEField.hpp.

◆ vectorPtr_Type

Definition at line 421 of file FEField.hpp.

◆ point_Type

Definition at line 423 of file FEField.hpp.

Constructor & Destructor Documentation

◆ FEVectorField() [1/4]

FEVectorField ( )
inline

Empty constructor for the class.

Definition at line 431 of file FEField.hpp.

◆ FEVectorField() [2/4]

FEVectorField ( const FESpacePtr_Type fESpace,
const vectorPtr_Type vector 
)
inline

Full constructor for the class.

Parameters
fESpaceFinite element space where the field is defined.
vectorvector witch represent the solution.

Definition at line 439 of file FEField.hpp.

◆ FEVectorField() [3/4]

FEVectorField ( const FESpacePtr_Type fESpace,
const MapEpetraType mapType = Repeated 
)
inline

Constructor for the class without the vector.

Create the field with the input finite element space and a new vector. The type of the map of the vector is Repeated (default value) or Unique.

Parameters
fESpaceFinite element space where the field is defined.
mapTypeSpecify wether the map is Unique or Repeated. Default value: Repeated.

Definition at line 450 of file FEField.hpp.

◆ FEVectorField() [4/4]

FEVectorField ( const FEVectorField< MeshType, MapType > &  field)
inline

Copy constructor.

Parameters
fieldFinite element field to be copied.

Definition at line 458 of file FEField.hpp.

◆ ~FEVectorField()

virtual ~FEVectorField ( )
inlinevirtual

Virtual destructor.

Definition at line 463 of file FEField.hpp.

Member Function Documentation

◆ eval()

Vector eval ( const UInt iElem,
const point_Type P,
const Real time = 0. 
) const
inlinevirtual

Eval function.

Evaluate the field on a given point in a given element.

Parameters
iElemElement id in the mesh.
pointPoint where the field is evaluated, vector format.
Returns
The vector value of the field.

Implements FEField< MeshType, MapType, Vector >.

Definition at line 486 of file FEField.hpp.


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