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

Public Member Functions

double getScale (const double time)
 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
 

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 241 of file plastic.cpp.

Member Function Documentation

◆ getScale()

double Example::ScaledTimeScale::getScale ( const double time)
inlinevirtual

Get scaling at given time.

Parameters
time
Returns
double

Reimplemented from MoFEM::ScalingMethod.

Examples
plastic.cpp.

Definition at line 243 of file plastic.cpp.

243 {
244 return scale * MoFEM::TimeScale::getScale(time);
245 };
double scale
Definition plastic.cpp:123
double getScale(const double time)
Get scaling at a given time.

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