MPM-Geomechanics
Material Point Method for simulating geo-materials under large deformation conditions
Loading...
Searching...
No Matches
Seismic Namespace Reference

Functions

void setSeismicData ()
 Loads seismic data from the file specified in the model configuration.
 
SeismicDatagetSeismicData ()
 Provides access to the loaded seismic data.
 
SeismicAnalysisgetSeismicAnalysis ()
 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.
 

Function Documentation

◆ applySeismicVelocityMarkedSTLNodes()

void Seismic::applySeismicVelocityMarkedSTLNodes ( Mesh * mesh)

Applies seismic velocity to the marked seismic nodes using STL mesh.

Parameters
meshPointer to the Eulerian background mesh.

◆ disableSeismicAnalysis()

void Seismic::disableSeismicAnalysis ( )

Disables seismic analysis.

This function sets the seismic analysis to inactive and clears the seismic data.

◆ getAcceleration()

const Eigen::Vector3d & Seismic::getAcceleration ( )

Returns the seismic acceleration.

Returns
Eigen::Vector3d& Reference to the seismic acceleration vector.

◆ getAccumulatedVelocity()

const Eigen::Vector3d & Seismic::getAccumulatedVelocity ( )

Returns the accumulated seismic velocity.

Returns
Eigen::Vector3d& Reference to the accumulated velocity vector.

◆ getSeismicAnalysis()

SeismicAnalysis & Seismic::getSeismicAnalysis ( )

Provides access to the current seismic analysis parameters.

Returns
SeismicAnalysis& Reference to seismic analysis information.

◆ getSeismicData()

SeismicData & Seismic::getSeismicData ( )

Provides access to the loaded seismic data.

Returns
SeismicData& Reference to the seismic data structure.

◆ getSeismicNodeIndices()

const std::vector< int > & Seismic::getSeismicNodeIndices ( )

Returns the list of seismic node indices.

Returns
const std::vector<int>& Reference to the indices of seismic nodes.

◆ isSeismicNode()

bool Seismic::isSeismicNode ( int nodeId)

Checks if a node is marked as seismic.

Parameters
nodeIdNode index to check.
Returns
true if the node is a seismic node, false otherwise.

◆ markSeismicNodes()

void Seismic::markSeismicNodes ( double epsilon,
Mesh * mesh )

Marks the nodes that will receive seismic loading.

Parameters
epsilonGrid dimension factor threshold to mark nodes as seismic nodes.
meshPointer to the mesh where nodes are defined.

◆ setSeismicAnalysis()

void Seismic::setSeismicAnalysis ( const SeismicAnalysis & info)

Sets the seismic analysis configuration.

Parameters
infoSeismic analysis information to set.

◆ setSeismicData()

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.

◆ updateSeismicVectors()

void Seismic::updateSeismicVectors ( const double currentTime,
const double dt )

Updates the accumulated seismic velocity and acceleration based on the current time and time step.

Parameters
currentTimeCurrent simulation time (s).
dtSimulation time step (s).
Note
This function updates the global accumulatedVelocity variable with the seismic velocity