Seismo-VLAB  1.3
An Open-Source Finite Element Software for Meso-Scale Simulations
Damping.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:
29 //------------------------------------------------------------------------------
30 
31 #ifndef _DAMPING_HPP_
32 #define _DAMPING_HPP_
33 
34 #include <string>
35 #include <vector>
36 
44 class Damping{
45 
46  public:
52  Damping(std::string name, const std::vector<double> parameters);
53 
55  ~Damping();
56 
60  std::string GetName();
61 
65  std::vector<double> GetParameters();
66 
70  void SetName(std::string name);
71 
75  void SetParameters(std::vector<double> param);
76 
77  private:
79  std::string Name;
80 
82  std::vector<double> Parameters;
83 };
84 
85 #endif
std::vector< double > GetParameters()
Gets parameters of the damping model.
Damping(std::string name, const std::vector< double > parameters)
Creates a Damping object.
Class for applying a certain damping model to a group of elements.
Definition: Damping.hpp:44
std::string Name
Damping model name.
Definition: Damping.hpp:79
~Damping()
Destroys this Damping object.
void SetName(std::string name)
Set the name of the damping model.
std::vector< double > Parameters
Damping model parameters.
Definition: Damping.hpp:82
std::string GetName()
Gets name of the damping model.
void SetParameters(std::vector< double > param)
Set the damping parameters.