MPM-Geomechanics
Material Point Method for simulating geo-materials under large deformation conditions
|
Functions | |
void | setSeismicData () |
Loads seismic data from the file specified in the model configuration. | |
SeismicData & | getSeismicData () |
Provides access to the loaded seismic data. | |
SeismicAnalysis & | getSeismicAnalysis () |
Provides access to the current seismic analysis parameters. | |
void | setSeismicAnalysis (const SeismicAnalysis &info) |
Sets the seismic analysis configuration. | |
void | applySeismicVelocityMarkedSTLNodes (Mesh *mesh) |
Applies seismic velocity to the marked seismic nodes using STL mesh. | |
void | updateSeismicVectors (const double currentTime, const double dt) |
Updates the accumulated seismic velocity and acceleration based on the current time and time step. | |
void | markSeismicNodes (double epsilon, Mesh *mesh) |
Marks the nodes that will receive seismic loading. | |
const std::vector< int > & | getSeismicNodeIndices () |
Returns the list of seismic node indices. | |
bool | isSeismicNode (int nodeId) |
Checks if a node is marked as seismic. | |
const Eigen::Vector3d & | getAccumulatedVelocity () |
Returns the accumulated seismic velocity. | |
const Eigen::Vector3d & | getAcceleration () |
Returns the seismic acceleration. | |
void | disableSeismicAnalysis () |
Disables seismic analysis. | |
void Seismic::applySeismicVelocityMarkedSTLNodes | ( | Mesh * | mesh | ) |
Applies seismic velocity to the marked seismic nodes using STL mesh.
mesh | Pointer to the Eulerian background mesh. |
void Seismic::disableSeismicAnalysis | ( | ) |
Disables seismic analysis.
This function sets the seismic analysis to inactive and clears the seismic data.
const Eigen::Vector3d & Seismic::getAcceleration | ( | ) |
Returns the seismic acceleration.
const Eigen::Vector3d & Seismic::getAccumulatedVelocity | ( | ) |
Returns the accumulated seismic velocity.
SeismicAnalysis & Seismic::getSeismicAnalysis | ( | ) |
Provides access to the current seismic analysis parameters.
SeismicData & Seismic::getSeismicData | ( | ) |
Provides access to the loaded seismic data.
const std::vector< int > & Seismic::getSeismicNodeIndices | ( | ) |
Returns the list of seismic node indices.
bool Seismic::isSeismicNode | ( | int | nodeId | ) |
Checks if a node is marked as seismic.
nodeId | Node index to check. |
void Seismic::markSeismicNodes | ( | double | epsilon, |
Mesh * | mesh ) |
Marks the nodes that will receive seismic loading.
epsilon | Grid dimension factor threshold to mark nodes as seismic nodes. |
mesh | Pointer to the mesh where nodes are defined. |
void Seismic::setSeismicAnalysis | ( | const SeismicAnalysis & | info | ) |
Sets the seismic analysis configuration.
info | Seismic analysis information to set. |
void Seismic::setSeismicData | ( | ) |
Loads seismic data from the file specified in the model configuration.
This function reads the seismic input file defined in the JSON configuration and stores the time and acceleration data into the global SeismicData
structure.
void Seismic::updateSeismicVectors | ( | const double | currentTime, |
const double | dt ) |
Updates the accumulated seismic velocity and acceleration based on the current time and time step.
currentTime | Current simulation time (s). |
dt | Simulation time step (s). |
accumulatedVelocity
variable with the seismic velocity