NetDEM v1.0
|
A class representing the settings used in a peridynamic simulation. More...
#include <peridigm_settings.hpp>
Public Member Functions | |
void | WriteInputFile (std::ostream &os) |
Writes the simulation settings to a file stream in Peridigm-compatible format. | |
Public Attributes | |
std::string | result_dir {"tmp/out/peridigm/"} |
The directory where the simulation results should be written. | |
std::string | peridigm_exe {"Peridigm"} |
The name of the executable used for running the Peridigm code. | |
double | horizon_factor {3.01} |
The factor by which the horizon should be computed based on the node size. | |
bool | omit_bonds_between_blocks {false} |
Whether or not bonds between blocks should be omitted. | |
bool | use_auto_timestep {true} |
Whether or not to use an automatically computed timestep. | |
double | timestep {1.0e-6} |
The fixed timestep to use if use_auto_timestep is false. | |
double | timestep_factor {0.95} |
The safety factor used to compute the timestep if use_auto_timestep is true. | |
double | mech_time {0.0} |
The mechanical time of the simulation. | |
double | loading_radius_factor {1.5} |
The loading radius factor used for point contact. | |
double | constrain_radius_factor {1.5} |
The constrain radius factor used for point contact. | |
int | output_freqency {10} |
The frequency at which output should be written to file. | |
A class representing the settings used in a peridynamic simulation.
The PeriDigmSettings class represents the settings used in a peridynamic simulation. It includes methods for writing the settings to file in a format compatible with the Peridigm code.
|
inline |
Writes the simulation settings to a file stream in Peridigm-compatible format.
This method writes the simulation settings to a file stream in Peridigm-compatible format, including the solver settings, compute class parameters, and output settings.
os | The output stream to write to. |
double netdem::PeriDigmSettings::constrain_radius_factor {1.5} |
The constrain radius factor used for point contact.
The contact force is constrained onto the nodes around the contact point within a radius computed as the product of the node size and the constrain radius factor.
double netdem::PeriDigmSettings::horizon_factor {3.01} |
The factor by which the horizon should be computed based on the node size.
The horizon is computed as the product of the node size and the horizon factor.
double netdem::PeriDigmSettings::loading_radius_factor {1.5} |
The loading radius factor used for point contact.
The contact force is scattered onto the nodes around the contact point within a radius computed as the product of the node size and the loading radius factor.
double netdem::PeriDigmSettings::mech_time {0.0} |
The mechanical time of the simulation.
bool netdem::PeriDigmSettings::omit_bonds_between_blocks {false} |
Whether or not bonds between blocks should be omitted.
int netdem::PeriDigmSettings::output_freqency {10} |
The frequency at which output should be written to file.
std::string netdem::PeriDigmSettings::peridigm_exe {"Peridigm"} |
The name of the executable used for running the Peridigm code.
std::string netdem::PeriDigmSettings::result_dir {"tmp/out/peridigm/"} |
The directory where the simulation results should be written.
double netdem::PeriDigmSettings::timestep {1.0e-6} |
The fixed timestep to use if use_auto_timestep is false.
double netdem::PeriDigmSettings::timestep_factor {0.95} |
The safety factor used to compute the timestep if use_auto_timestep is true.
bool netdem::PeriDigmSettings::use_auto_timestep {true} |
Whether or not to use an automatically computed timestep.