LifeV
VenantKirchhoffElasticHandler< Mesh > Class Template Referenceabstract

#include <VenantKirchhoffElasticHandler.hpp>

+ Inheritance diagram for VenantKirchhoffElasticHandler< Mesh >:
+ Collaboration diagram for VenantKirchhoffElasticHandler< Mesh >:

Type definitions

typedef Real(* Function) (const Real &, const Real &, const Real &, const Real &, const ID &)
 
typedef std::function< Real(Real const &, Real const &, Real const &, Real const &, ID const &) > source_Type
 
typedef BCHandler bchandlerRaw_Type
 
typedef std::shared_ptr< bchandlerRaw_type > bchandler_Type
 

Constructors & Destructor

 VenantKirchhoffElasticHandler ()
 
 setUp (const VenantKirchhoffElasticData< Mesh > &data, const RefernceFE &refFE, const QuadratureRule &Qr, const QuadratureRule &bdQr, BCHandler &BCh)
 
 setUp (const VenantKirchhoffElasticData< Mesh > &data, const ReferenceFE &refFE, const QuadratureRule &Qr, const QuadratureRule &bdQr)
 
virtual ~VenantKirchhoffElasticHandler ()
 Destructor. More...
 

Methods

virtual void timeAdvance (source_Type const &, const Real &time)=0
 Update the right hand side for time advancing. More...
 
virtual void iterate ()=0
 Solve the non-linear problem. More...
 
void postProcess ()
 Postprocessing. More...
 
void initialize (const Function &d0, const Function &w0)
 Sets initial condition for the displacment en velocity. More...
 
void initialize (const std::string &depName, const std::string &velName, Real startT=0.)
 

Set methods

const bool setSolidBC () const
 checking if BC are set More...
 
void setSolidBC (BCHandler &BCh_solid)
 set the fluid BCs More...
 

Get methods

PhysVectUnknown< Vector > & getDisplacement ()
 Returns the displacement vector. More...
 
PhysVectUnknown< Vector > & getVelocity ()
 Returns the velocity vector. More...
 
const UInt getDimension () const
 Returns the number of unknowns. More...
 
const ReferenceFEgetRefFE () const
 Returns the reference FE object. More...
 
CurrentFEgetFe ()
 Returns the current FE object. More...
 
const CurrentFEgetFe () const
 Returns the current FE object. More...
 
CurrentFEManifoldgetFeBd ()
 Returns the current boundary FE object. More...
 
const DOFgetdDof () const
 Returns the DOF object. More...
 
BCHandlergetBCh_solid ()
 Returns the BCHandler object. More...
 

Provate Methods

const ReferenceFEM_refFE
 Reference FE. More...
 
DOF M_dof
 The DOF object. More...
 
UInt M_dim
 The number of total displacement dofs. More...
 
const QuadratureRuleM_Qr
 Quadrature rule for volumic elementary computations. More...
 
const QuadratureRuleM_bdQr
 Quadrature rule for elementary computations. More...
 
CurrentFE M_fe
 Current FE. More...
 
CurrentFEManifold M_feBd
 Current boundary FE. More...
 
PhysVectUnknown< VectorM_d
 The displacement. More...
 
PhysVectUnknown< VectorM_dRhs
 
PhysVectUnknown< VectorM_w
 The velocity. More...
 
Real M_time
 The current time. More...
 
UInt M_count
 Aux. var. for PostProc. More...
 
BCHandlerM_BCh_solid
 The BC handler. More...
 
bool M_setBC
 
 VenantKirchhoffElasticHandler (VenantKirchhoffElasticHandler &T)
 

Detailed Description

template<typename Mesh>
class LifeV::VenantKirchhoffElasticHandler< Mesh >

Definition at line 60 of file VenantKirchhoffElasticHandler.hpp.

Member Typedef Documentation

◆ Function

typedef Real( * Function) (const Real &, const Real &, const Real &, const Real &, const ID &)

Definition at line 68 of file VenantKirchhoffElasticHandler.hpp.

◆ source_Type

typedef std::function<Real ( Real const&, Real const&, Real const&, Real const&, ID const& ) > source_Type

Definition at line 69 of file VenantKirchhoffElasticHandler.hpp.

◆ bchandlerRaw_Type

Definition at line 70 of file VenantKirchhoffElasticHandler.hpp.

◆ bchandler_Type

typedef std::shared_ptr<bchandlerRaw_type> bchandler_Type

Definition at line 71 of file VenantKirchhoffElasticHandler.hpp.

Constructor & Destructor Documentation

◆ VenantKirchhoffElasticHandler() [1/2]

Definition at line 282 of file VenantKirchhoffElasticHandler.hpp.

+ Here is the caller graph for this function:

◆ ~VenantKirchhoffElasticHandler()

virtual ~VenantKirchhoffElasticHandler ( )
inlinevirtual

Destructor.

Definition at line 105 of file VenantKirchhoffElasticHandler.hpp.

◆ VenantKirchhoffElasticHandler() [2/2]

!private copy constructor:this class should not be copied /*! if you need a copy you should implement it, so that it copies the shared pointer one by one, without copying the content.

Member Function Documentation

◆ setUp() [1/2]

setUp ( const VenantKirchhoffElasticData< Mesh > &  data,
const RefernceFE &  refFE,
const QuadratureRule Qr,
const QuadratureRule bdQr,
BCHandler BCh 
)
Parameters
data_fileGetPot data file
refFEreference FE for the displacement
Qrvolumic quadrature rule
bdQrsurface quadrature
BChboundary conditions for the displacement

◆ setUp() [2/2]

setUp ( const VenantKirchhoffElasticData< Mesh > &  data,
const ReferenceFE refFE,
const QuadratureRule Qr,
const QuadratureRule bdQr 
)
Parameters
data_fileGetPot data file
refFEreference FE for the displacement
Qrvolumic quadrature rule
bdQrsurface quadrature

Definition at line 325 of file VenantKirchhoffElasticHandler.hpp.

◆ timeAdvance()

virtual void timeAdvance ( source_Type const &  ,
const Real time 
)
pure virtual

Update the right hand side for time advancing.

Parameters
sourcevolumic force
timepresent time

◆ iterate()

virtual void iterate ( )
pure virtual

Solve the non-linear problem.

◆ postProcess()

void postProcess ( )

Postprocessing.

Definition at line 367 of file VenantKirchhoffElasticHandler.hpp.

◆ initialize() [1/2]

void initialize ( const Function d0,
const Function w0 
)

Sets initial condition for the displacment en velocity.

Parameters
d0space function defining the initial displacement
w0space function defining the initial velocity

Definition at line 423 of file VenantKirchhoffElasticHandler.hpp.

◆ initialize() [2/2]

void initialize ( const std::string &  depName,
const std::string &  velName,
Real  startT = 0. 
)
Parameters
depNamefile containing the initial displacement vector
velNamefile containing the initial velocity vector
starTstarting time when the displacement and the velocity vectors are set

Definition at line 556 of file VenantKirchhoffElasticHandler.hpp.

◆ setSolidBC() [1/2]

const bool setSolidBC ( ) const
inline

checking if BC are set

Definition at line 149 of file VenantKirchhoffElasticHandler.hpp.

◆ setSolidBC() [2/2]

void setSolidBC ( BCHandler BCh_solid)
inline

set the fluid BCs

Parameters
BCh_solidBCHandler object containing the boundary conditions

Definition at line 158 of file VenantKirchhoffElasticHandler.hpp.

◆ getDisplacement()

PhysVectUnknown<Vector>& getDisplacement ( )

Returns the displacement vector.

◆ getVelocity()

PhysVectUnknown<Vector>& getVelocity ( )

Returns the velocity vector.

◆ getDimension()

const UInt getDimension ( ) const
inline

Returns the number of unknowns.

Definition at line 176 of file VenantKirchhoffElasticHandler.hpp.

◆ getRefFE()

const ReferenceFE& getRefFE ( ) const
inline

Returns the reference FE object.

Definition at line 182 of file VenantKirchhoffElasticHandler.hpp.

◆ getFe() [1/2]

CurrentFE& getFe ( )
inline

Returns the current FE object.

Definition at line 188 of file VenantKirchhoffElasticHandler.hpp.

◆ getFe() [2/2]

const CurrentFE& getFe ( ) const
inline

Returns the current FE object.

Definition at line 193 of file VenantKirchhoffElasticHandler.hpp.

◆ getFeBd()

CurrentFEManifold& getFeBd ( )
inline

Returns the current boundary FE object.

Definition at line 198 of file VenantKirchhoffElasticHandler.hpp.

◆ getdDof()

const DOF& getdDof ( ) const
inline

Returns the DOF object.

Definition at line 203 of file VenantKirchhoffElasticHandler.hpp.

◆ getBCh_solid()

BCHandler& getBCh_solid ( )
inline

Returns the BCHandler object.

Definition at line 209 of file VenantKirchhoffElasticHandler.hpp.

Field Documentation

◆ M_refFE

const ReferenceFE& M_refFE
private
Initial value:
{}
void readUnknown ( const std::string& name,
PhysVectUnknown<Vector>& unknown)

Reference FE.

Definition at line 225 of file VenantKirchhoffElasticHandler.hpp.

◆ M_dof

DOF M_dof
private

The DOF object.

Definition at line 238 of file VenantKirchhoffElasticHandler.hpp.

◆ M_dim

UInt M_dim
private

The number of total displacement dofs.

Definition at line 241 of file VenantKirchhoffElasticHandler.hpp.

◆ M_Qr

const QuadratureRule& M_Qr
private

Quadrature rule for volumic elementary computations.

Definition at line 244 of file VenantKirchhoffElasticHandler.hpp.

◆ M_bdQr

const QuadratureRule& M_bdQr
private

Quadrature rule for elementary computations.

Definition at line 247 of file VenantKirchhoffElasticHandler.hpp.

◆ M_fe

CurrentFE M_fe
private

Current FE.

Definition at line 250 of file VenantKirchhoffElasticHandler.hpp.

◆ M_feBd

CurrentFEManifold M_feBd
private

Current boundary FE.

Definition at line 253 of file VenantKirchhoffElasticHandler.hpp.

◆ M_d

PhysVectUnknown<Vector> M_d
private

The displacement.

Definition at line 256 of file VenantKirchhoffElasticHandler.hpp.

◆ M_dRhs

PhysVectUnknown<Vector> M_dRhs
private

Definition at line 257 of file VenantKirchhoffElasticHandler.hpp.

◆ M_w

PhysVectUnknown<Vector> M_w
private

The velocity.

Definition at line 260 of file VenantKirchhoffElasticHandler.hpp.

◆ M_time

Real M_time
private

The current time.

Definition at line 263 of file VenantKirchhoffElasticHandler.hpp.

◆ M_count

UInt M_count
private

Aux. var. for PostProc.

Definition at line 266 of file VenantKirchhoffElasticHandler.hpp.

◆ M_BCh_solid

BCHandler* M_BCh_solid
private

The BC handler.

Definition at line 269 of file VenantKirchhoffElasticHandler.hpp.

◆ M_setBC

bool M_setBC
private

Definition at line 271 of file VenantKirchhoffElasticHandler.hpp.


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