NetDEM v1.0
|
A class representing a simulator for peridynamic simulations. More...
#include <peridigm_simulator.hpp>
Public Member Functions | |
PeriDigmSimulator () | |
Constructs a new PeriDigmSimulator object. | |
PeriDigmMaterial * | InsertMaterial () |
Inserts a new material into the simulation. | |
PeriDigmDamageModel * | InsertDamageModel () |
Inserts a new damage model into the simulation. | |
PeriDigmBlock * | InsertBlock () |
Inserts a new block into the simulation. | |
PeriDigmBoundaryCondition * | InsertBoundaryCondition () |
Inserts a new boundary condition into the simulation. | |
void | Clear () |
Clears all of the materials, damage models, blocks, and boundary conditions from the simulation. | |
void | InitDefaultSetup () |
Initializes the default setup based on the discretization and using default material and damage model. | |
void | InitAutoTimestep () |
Initializes an automatically computed timestep for the simulation. | |
void | WriteNodeFile () |
Writes the node file for the simulation. | |
void | WriteNodeSetFile () |
Writes the node set file for the simulation. | |
void | WriteInputFile () |
Writes the input file for the simulation in a format compatible with the Peridigm code. | |
void | Solve (double mech_time) |
Solves the simulation up to the specified mechanical time. | |
void | SetUpResultDirectory () |
Sets up the result directory for writing output files. | |
void | CleanUpResultDirectory () |
Cleans up the result directory after the simulation has completed. | |
Public Attributes | |
PeriDigmDiscretization | discretization |
The discretization used in the simulation. | |
VecXT< PeriDigmMaterial > | materials |
The materials used in the simulation. | |
VecXT< PeriDigmDamageModel > | damage_models |
The damage models used in the simulation. | |
VecXT< PeriDigmBlock > | blocks |
The blocks used in the simulation. | |
VecXT< PeriDigmBoundaryCondition > | boundary_conditions |
The boundary conditions used in the simulation. | |
PeriDigmSettings | settings |
The settings used in the simulation. | |
A class representing a simulator for peridynamic simulations.
The PeriDigmSimulator class represents a simulator for peridynamic simulations. It includes methods for setting up and running the simulation, as well as writing input and output files in a format compatible with the Peridigm code.
netdem::PeriDigmSimulator::PeriDigmSimulator | ( | ) |
Constructs a new PeriDigmSimulator object.
void netdem::PeriDigmSimulator::CleanUpResultDirectory | ( | ) |
Cleans up the result directory after the simulation has completed.
void netdem::PeriDigmSimulator::Clear | ( | ) |
Clears all of the materials, damage models, blocks, and boundary conditions from the simulation.
void netdem::PeriDigmSimulator::InitAutoTimestep | ( | ) |
Initializes an automatically computed timestep for the simulation.
void netdem::PeriDigmSimulator::InitDefaultSetup | ( | ) |
Initializes the default setup based on the discretization and using default material and damage model.
PeriDigmBlock * netdem::PeriDigmSimulator::InsertBlock | ( | ) |
Inserts a new block into the simulation.
This method creates and inserts a new block into the simulation, returning a pointer to the new block.
PeriDigmBoundaryCondition * netdem::PeriDigmSimulator::InsertBoundaryCondition | ( | ) |
Inserts a new boundary condition into the simulation.
This method creates and inserts a new boundary condition into the simulation, returning a pointer to the new boundary condition.
PeriDigmDamageModel * netdem::PeriDigmSimulator::InsertDamageModel | ( | ) |
Inserts a new damage model into the simulation.
This method creates and inserts a new damage model into the simulation, returning a pointer to the new damage model.
PeriDigmMaterial * netdem::PeriDigmSimulator::InsertMaterial | ( | ) |
Inserts a new material into the simulation.
This method creates and inserts a new material into the simulation, returning a pointer to the new material.
void netdem::PeriDigmSimulator::SetUpResultDirectory | ( | ) |
Sets up the result directory for writing output files.
void netdem::PeriDigmSimulator::Solve | ( | double | mech_time | ) |
Solves the simulation up to the specified mechanical time.
This method solves the simulation up to the specified mechanical time and writes the output to file.
mech_time | The mechanical time to solve the simulation up to. |
void netdem::PeriDigmSimulator::WriteInputFile | ( | ) |
Writes the input file for the simulation in a format compatible with the Peridigm code.
void netdem::PeriDigmSimulator::WriteNodeFile | ( | ) |
Writes the node file for the simulation.
void netdem::PeriDigmSimulator::WriteNodeSetFile | ( | ) |
Writes the node set file for the simulation.
VecXT<PeriDigmBlock> netdem::PeriDigmSimulator::blocks |
The blocks used in the simulation.
This vector holds pointers to all of the blocks used in the simulation.
VecXT<PeriDigmBoundaryCondition> netdem::PeriDigmSimulator::boundary_conditions |
The boundary conditions used in the simulation.
This vector holds pointers to all of the boundary conditions used in the simulation.
VecXT<PeriDigmDamageModel> netdem::PeriDigmSimulator::damage_models |
The damage models used in the simulation.
This vector holds pointers to all of the damage models used in the simulation.
PeriDigmDiscretization netdem::PeriDigmSimulator::discretization |
The discretization used in the simulation.
VecXT<PeriDigmMaterial> netdem::PeriDigmSimulator::materials |
The materials used in the simulation.
This vector holds pointers to all of the materials used in the simulation.
PeriDigmSettings netdem::PeriDigmSimulator::settings |
The settings used in the simulation.