NetDEM v1.0
Loading...
Searching...
No Matches
netdem::PeriDigmSimulator Class Reference

A class representing a simulator for peridynamic simulations. More...

#include <peridigm_simulator.hpp>

Public Member Functions

 PeriDigmSimulator ()
 Constructs a new PeriDigmSimulator object.
 
PeriDigmMaterialInsertMaterial ()
 Inserts a new material into the simulation.
 
PeriDigmDamageModelInsertDamageModel ()
 Inserts a new damage model into the simulation.
 
PeriDigmBlockInsertBlock ()
 Inserts a new block into the simulation.
 
PeriDigmBoundaryConditionInsertBoundaryCondition ()
 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< PeriDigmMaterialmaterials
 The materials used in the simulation.
 
VecXT< PeriDigmDamageModeldamage_models
 The damage models used in the simulation.
 
VecXT< PeriDigmBlockblocks
 The blocks used in the simulation.
 
VecXT< PeriDigmBoundaryConditionboundary_conditions
 The boundary conditions used in the simulation.
 
PeriDigmSettings settings
 The settings used in the simulation.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PeriDigmSimulator()

netdem::PeriDigmSimulator::PeriDigmSimulator ( )

Constructs a new PeriDigmSimulator object.

Member Function Documentation

◆ CleanUpResultDirectory()

void netdem::PeriDigmSimulator::CleanUpResultDirectory ( )

Cleans up the result directory after the simulation has completed.

◆ Clear()

void netdem::PeriDigmSimulator::Clear ( )

Clears all of the materials, damage models, blocks, and boundary conditions from the simulation.

◆ InitAutoTimestep()

void netdem::PeriDigmSimulator::InitAutoTimestep ( )

Initializes an automatically computed timestep for the simulation.

◆ InitDefaultSetup()

void netdem::PeriDigmSimulator::InitDefaultSetup ( )

Initializes the default setup based on the discretization and using default material and damage model.

◆ InsertBlock()

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.

Returns
A pointer to the new block.

◆ InsertBoundaryCondition()

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.

Returns
A pointer to the new boundary condition.

◆ InsertDamageModel()

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.

Returns
A pointer to the new damage model.

◆ InsertMaterial()

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.

Returns
A pointer to the new material.

◆ SetUpResultDirectory()

void netdem::PeriDigmSimulator::SetUpResultDirectory ( )

Sets up the result directory for writing output files.

◆ Solve()

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.

Parameters
mech_timeThe mechanical time to solve the simulation up to.

◆ WriteInputFile()

void netdem::PeriDigmSimulator::WriteInputFile ( )

Writes the input file for the simulation in a format compatible with the Peridigm code.

◆ WriteNodeFile()

void netdem::PeriDigmSimulator::WriteNodeFile ( )

Writes the node file for the simulation.

◆ WriteNodeSetFile()

void netdem::PeriDigmSimulator::WriteNodeSetFile ( )

Writes the node set file for the simulation.

Member Data Documentation

◆ blocks

VecXT<PeriDigmBlock> netdem::PeriDigmSimulator::blocks

The blocks used in the simulation.

This vector holds pointers to all of the blocks used in the simulation.

◆ boundary_conditions

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.

◆ damage_models

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.

◆ discretization

PeriDigmDiscretization netdem::PeriDigmSimulator::discretization

The discretization used in the simulation.

◆ materials

VecXT<PeriDigmMaterial> netdem::PeriDigmSimulator::materials

The materials used in the simulation.

This vector holds pointers to all of the materials used in the simulation.

◆ settings

PeriDigmSettings netdem::PeriDigmSimulator::settings

The settings used in the simulation.


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