v0.13.1
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
MethodForForceScaling Struct Referenceabstract

Class used to scale loads, f.e. in arc-length control. More...

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

Inheritance diagram for MethodForForceScaling:
[legend]

Public Member Functions

virtual MoFEMErrorCode scaleNf (const FEMethod *fe, VectorDouble &Nf)=0
 
virtual MoFEMErrorCode getForceScale (const double ts_t, double &scale)
 
virtual ~MethodForForceScaling ()
 

Static Public Member Functions

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

Class used to scale loads, f.e. in arc-length control.

Examples
NavierStokesElement.hpp.

Definition at line 11 of file MethodForForceScaling.hpp.

Constructor & Destructor Documentation

◆ ~MethodForForceScaling()

virtual MethodForForceScaling::~MethodForForceScaling ( )
inlinevirtual

Definition at line 39 of file MethodForForceScaling.hpp.

39{}

Member Function Documentation

◆ applyScale() [1/2]

static MoFEMErrorCode MethodForForceScaling::applyScale ( const FEMethod fe,
boost::ptr_vector< MethodForForceScaling > &  methods_op,
VectorDouble &  nf 
)
inlinestatic

Definition at line 21 of file MethodForForceScaling.hpp.

23 {
25 for (auto vit = methods_op.begin(); vit != methods_op.end(); vit++)
26 CHKERR vit->scaleNf(fe, nf);
28 }
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:346
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:416
#define CHKERR
Inline error check.
Definition: definitions.h:535

◆ applyScale() [2/2]

static MoFEMErrorCode MethodForForceScaling::applyScale ( const FEMethod fe,
boost::shared_ptr< MethodForForceScaling method_op,
VectorDouble &  nf 
)
inlinestatic

Definition at line 31 of file MethodForForceScaling.hpp.

33 {
35 CHKERR method_op->scaleNf(fe, nf);
37 }

◆ getForceScale()

virtual MoFEMErrorCode MethodForForceScaling::getForceScale ( const double  ts_t,
double scale 
)
inlinevirtual

Reimplemented in TimeForceScale.

Definition at line 14 of file MethodForForceScaling.hpp.

14 {
16 SETERRQ(PETSC_COMM_SELF, MOFEM_NOT_IMPLEMENTED, "not implemented");
18 }
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:447
@ MOFEM_NOT_IMPLEMENTED
Definition: definitions.h:32
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:440

◆ scaleNf()

virtual MoFEMErrorCode MethodForForceScaling::scaleNf ( const FEMethod fe,
VectorDouble &  Nf 
)
pure virtual

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