v0.15.0
Loading...
Searching...
No Matches
ArcTimeScale Struct Reference
Inheritance diagram for ArcTimeScale:
[legend]
Collaboration diagram for ArcTimeScale:
[legend]

Public Member Functions

double getScale (const double time) override
 Get scaling at given time.
 
- Public Member Functions inherited from MoFEM::TimeScale
 TimeScale (std::string file_name="", bool error_if_file_not_given=false, ScalingFun def_scaling_fun=[](double time) { return time;})
 TimeScale constructor.
 
 TimeScale (std::string file_name, std::string delimiter, bool error_if_file_not_given=false, ScalingFun def_scaling_fun=[](double time) { return time;})
 TimeScale constructor.
 
double getScale (const double time)
 Get scaling at a given time.
 
- Public Member Functions inherited from MoFEM::ScalingMethod
 ScalingMethod ()=default
 
virtual ~ScalingMethod ()=default
 

Static Public Attributes

static SmartPetscObj< SNES > snesPtr = nullptr
 

Additional Inherited Members

- Public Types inherited from MoFEM::TimeScale
using ScalingFun = std::function<double(double)>
 
- Public Attributes inherited from MoFEM::TimeScale
std::string fileName = ""
 
PetscBool argFileScale = PETSC_FALSE
 

Detailed Description

Definition at line 58 of file arc_length.cpp.

Member Function Documentation

◆ getScale()

double ArcTimeScale::getScale ( const double time)
inlineoverridevirtual

Get scaling at given time.

Parameters
time
Returns
double

Reimplemented from MoFEM::ScalingMethod.

Definition at line 59 of file arc_length.cpp.

59 {
60 if (snesPtr) {
61 double lambda;
62 CHK_THROW_MESSAGE(SNESNewtonALGetLoadParameter(snesPtr, &lambda),
63 "Cannot get load parameter from SNES");
64 return lambda;
65 } else {
66 return time;
67 }
68 }
#define CHK_THROW_MESSAGE(err, msg)
Check and throw MoFEM exception.
static double lambda
static SmartPetscObj< SNES > snesPtr

Member Data Documentation

◆ snesPtr

SmartPetscObj<SNES> ArcTimeScale::snesPtr = nullptr
inlinestatic

Definition at line 69 of file arc_length.cpp.


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