MPM-Geomechanics
Material Point Method for simulating geo-materials under large deformation conditions
Loading...
Searching...
No Matches
States.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright (c) 2021-2025 MPM-Geomechanics Development Team
3
4#include <string>
5#include "Particle/Particle.h"
6
7#ifndef STATES_H_
8#define STATES_H_
9
12namespace States {
13
17 void saveParticleStress(const std::string& filename, const std::vector<Particle*>& particles);
18
22 void loadParticleStress(const std::string& filename, std::vector<Particle*>& particles);
23}
24
25#endif /* STATES_H_ */
Functions to save and load states of the simulation.
void loadParticleStress(const std::string &filename, std::vector< Particle * > &particles)
Load the particles stress from a json file.
void saveParticleStress(const std::string &filename, const std::vector< Particle * > &particles)
Save the particles stress into a json file.