v0.14.0
Public Member Functions | Public Attributes | List of all members
MetaNodalForces::DofForceScale Struct Reference

Scale force based on some DOF value. More...

#include <users_modules/basic_finite_elements/src/NodalForce.hpp>

Inheritance diagram for MetaNodalForces::DofForceScale:
[legend]
Collaboration diagram for MetaNodalForces::DofForceScale:
[legend]

Public Member Functions

 DofForceScale (boost::shared_ptr< DofEntity > dof)
 
MoFEMErrorCode scaleNf (const FEMethod *fe, VectorDouble &Nf)
 
- Public Member Functions inherited from MethodForForceScaling
virtual MoFEMErrorCode getForceScale (const double ts_t, double &scale)
 
virtual ~MethodForForceScaling ()
 
virtual MoFEMErrorCode getForceScale (const double ts_t, double &scale)
 
virtual ~MethodForForceScaling ()
 

Public Attributes

boost::shared_ptr< DofEntity > dOf
 

Additional Inherited Members

- Static Public Member Functions inherited from MethodForForceScaling
static MoFEMErrorCode applyScale (const FEMethod *fe, boost::ptr_vector< MethodForForceScaling > &methods_op, VectorDouble &nf)
 
static MoFEMErrorCode applyScale (const FEMethod *fe, boost::shared_ptr< MethodForForceScaling > method_op, VectorDouble &nf)
 
static MoFEMErrorCode applyScale (const FEMethod *fe, boost::ptr_vector< MethodForForceScaling > &methods_op, VectorDouble &nf)
 
static MoFEMErrorCode applyScale (const FEMethod *fe, boost::shared_ptr< MethodForForceScaling > method_op, VectorDouble &nf)
 

Detailed Description

Scale force based on some DOF value.

That dof usually will be associated with dof used for arc-length control

Definition at line 81 of file NodalForce.hpp.

Constructor & Destructor Documentation

◆ DofForceScale()

MetaNodalForces::DofForceScale::DofForceScale ( boost::shared_ptr< DofEntity >  dof)
inline

Definition at line 83 of file NodalForce.hpp.

83 : dOf(dof) {}

Member Function Documentation

◆ scaleNf()

MoFEMErrorCode MetaNodalForces::DofForceScale::scaleNf ( const FEMethod fe,
VectorDouble &  Nf 
)
inlinevirtual

Implements MethodForForceScaling.

Definition at line 84 of file NodalForce.hpp.

84  {
86  Nf *= dOf->getFieldData();
88  }

Member Data Documentation

◆ dOf

boost::shared_ptr<DofEntity> MetaNodalForces::DofForceScale::dOf

Definition at line 82 of file NodalForce.hpp.


The documentation for this struct was generated from the following file:
MoFEMFunctionReturnHot
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:460
MetaNodalForces::DofForceScale::dOf
boost::shared_ptr< DofEntity > dOf
Definition: NodalForce.hpp:82
MoFEMFunctionBeginHot
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:453