Karamelo  714599e9
Parallel Material Point Method Simulator
Update Class Reference

Detailed Description

Stores everything related to time steps as well as the Scheme and Method classes.

+ Inheritance diagram for Update:

Public Member Functions

void create_method (vector< string >)
 Creates a method: tlmpm, ulmpm, tlcpdi, ... More...
 
void create_scheme (vector< string >)
 Creates a scheme: USL, or MUSL. More...
 
void set_dt (vector< string >)
 Sets the timestep.
 
void set_dt_factor (vector< string >)
 Sets the factor to be applied to the CFL timestep.
 
void update_time ()
 Update elapsed time. More...
 
int update_timestep ()
 Update timestep. More...
 

Public Attributes

double atime
 Simulation time at atime_step.
 
bigint atimestep
 Last timestep atime was updated.
 
double dt
 Timestep.
 
bool dt_constant
 is dt constant?
 
double dt_factor
 Timestep factor.
 
double elapsed_time_in_run
 Elapsed simulation time for a single run;.
 
bigint endstep
 1st and last step of multiple runs
 
int first_update
 0 before initial update, 1 after
 
bigint laststep
 1st & last step of this run
 
double maxtime
 Maximum simulation time (infinite if -1)
 
class Methodmethod
 Pointer to the type of Method used.
 
string method_shape_function
 Type of shape function used.
 
string method_type
 Name of the method type.
 
int nsteps
 Number of steps to run.
 
bigint ntimestep
 current step
 
double run_duration
 Stop simulation if elapsed simulation time exceeds this.
 
class Scheme * scheme
 Pointer to the type of Scheme used.
 
string scheme_style
 Name of the scheme style.
 

Member Function Documentation

◆ create_method()

void Update::create_method ( vector< string >  args)

Creates a method: tlmpm, ulmpm, tlcpdi, ...

This function is the C++ equivalent to the method() user function.
Syntax: method(type, type specific arguments)
It points the pointer Update::method to the desired Method type selected from style_method.h

◆ create_scheme()

void Update::create_scheme ( vector< string >  args)

Creates a scheme: USL, or MUSL.

This function is the C++ equivalent to the scheme() user function.
Syntax: scheme(type)
It points the pointer Update::scheme to the desired Scheme type selected from style_scheme.h

◆ update_time()

void Update::update_time ( )

Update elapsed time.

Update elapsed simulation time. Called at end of runs or when timestep size changes.

◆ update_timestep()

int Update::update_timestep ( )

Update timestep.

Update simulation timestep.


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