-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/fabricix/MPM-Geomechanics
- Loading branch information
Showing
16 changed files
with
321 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,21 @@ | ||
/* | ||
* States.h | ||
* | ||
* Created on: 13 de abr de 2021 | ||
* Author: Fabricio Fernandez <[email protected]> | ||
*/ | ||
|
||
#include <string> | ||
#include "Particle/Particle.h" | ||
|
||
#ifndef STATES_H_ | ||
#define STATES_H_ | ||
|
||
/// \class States | ||
/// \brief Represents model states that | ||
/// can be loaded before a simulation. | ||
class States { | ||
namespace States { | ||
|
||
public: | ||
|
||
/// \brief Default constructor | ||
/// | ||
States(); | ||
/// \brief Save the particles stress into a json file | ||
/// \param[in] filename File name | ||
/// \param[in] particles List containing pointers to particles | ||
void saveParticleStress(const std::string& filename, const std::vector<Particle*>& particles); | ||
|
||
/// \brief Default destructor | ||
/// | ||
virtual ~States(); | ||
}; | ||
/// \brief Load the particles stress from a json file | ||
/// \param[in] filename File name | ||
/// \param[in] particles List containing pointers to particles | ||
void loadParticleStress(const std::string& filename, std::vector<Particle*>& particles); | ||
} | ||
|
||
#endif /* STATES_H_ */ | ||
#endif /* STATES_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.