Seismo-VLAB  1.3
An Open-Source Finite Element Software for Meso-Scale Simulations
StaticAnalysis.hpp
Go to the documentation of this file.
1 //==============================================================================
2 //
3 // Seismo Virtual Laboratory
4 // Module for Serial and Parallel Analysis of seismic
5 // wave propagation and soil-structure interaction simulation
6 // Copyright (C) 2018-2021, The California Institute of Technology
7 // All Rights Reserved.
8 //
9 // Commercial use of this program without express permission of the California
10 // Institute of Technology, is strictly prohibited. See file "COPYRIGHT" in
11 // main directory for information on usage and redistribution, and for a
12 // DISCLAIMER OF ALL WARRANTIES.
13 //
14 //==============================================================================
15 //
16 // Written by:
17 // Danilo S. Kusanovic (dkusanov@caltech.edu)
18 // Elnaz E. Seylabi (elnaze@unr.edu)
19 //
20 // Supervised by:
21 // Domniki M. Asimaki (domniki@caltech.edu)
22 //
23 // References :
24 // [1]
25 //
26 // Description:
30 //------------------------------------------------------------------------------
31 
32 #ifndef _STATICANALYSIS_HPP_
33 #define _STATICANALYSIS_HPP_
34 
35 #include <memory>
36 #include <Eigen/Dense>
37 
38 #include "Mesh.hpp"
39 #include "Analysis.hpp"
40 #include "Algorithm.hpp"
41 #include "Integrator.hpp"
42 #include "LoadCombo.hpp"
43 
51 class StaticAnalysis : public Analysis {
52 
53  public:
62  StaticAnalysis(std::shared_ptr<Mesh> &mesh, std::shared_ptr<Algorithm> &algorithm, std::shared_ptr<Integrator> &integrator, std::shared_ptr<LoadCombo> &loadcombo, unsigned int nSteps=0);
63 
66 
70  bool Analyze();
71 
75  void UpdateDomain(unsigned int k);
76 
77  private:
79  unsigned int NumberOfSteps;
80 
82  std::shared_ptr<Mesh> theMesh;
83 
85  std::shared_ptr<Algorithm> theAlgorithm;
86 
88  std::shared_ptr<Integrator> theIntegrator;
89 };
90 
91 #endif
void UpdateDomain(unsigned int k)
Performs changes in mesh.
std::shared_ptr< Integrator > theIntegrator
The static integrator method.
Definition: StaticAnalysis.hpp:88
std::shared_ptr< Algorithm > theAlgorithm
The linear system algorithm.
Definition: StaticAnalysis.hpp:85
This file contains the "Load Combination" class declarations, which defines how the loads are going t...
std::shared_ptr< Mesh > theMesh
The finite element mesh:
Definition: StaticAnalysis.hpp:82
This file contains the pure virtual "Analysis object" declarations, so far, static and dynamic analys...
Virtual class for defining the analysis type to be performed.
Definition: Analysis.hpp:52
Class for creating an static analysis and updating the states variables in mesh.
Definition: StaticAnalysis.hpp:51
This file contains the "Integrator object" declarations, and defines how the dynamic solution between...
StaticAnalysis(std::shared_ptr< Mesh > &mesh, std::shared_ptr< Algorithm > &algorithm, std::shared_ptr< Integrator > &integrator, std::shared_ptr< LoadCombo > &loadcombo, unsigned int nSteps=0)
Creates a StaticAnalysis object.
This file contains the "Mesh object" declarations, which stores nodes, materials, elements...
~StaticAnalysis()
Destroys this StaticAnalysis object.
unsigned int NumberOfSteps
Total number of time increments.
Definition: StaticAnalysis.hpp:79
bool Analyze()
Analyze the current incremental step.