![]() |
Karamelo
714599e9
Parallel Material Point Method Simulator
|
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 Method * | method |
| 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. | |
| 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
| 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
| void Update::update_time | ( | ) |