Seismo-VLAB  1.3
An Open-Source Finite Element Software for Meso-Scale Simulations
LoadCombo.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 _LOADCOMBO_HPP_
32 #define _LOADCOMBO_HPP_
33 
34 #include <vector>
35 #include <string>
36 
44 class LoadCombo{
45 
46  public:
53  LoadCombo(std::string name, std::vector<unsigned int> loads, std::vector<double> factors);
54 
56  ~LoadCombo();
57 
61  std::string GetCombinationName() const;
62 
67  std::vector<double> GetLoadFactors() const;
68 
73  std::vector<unsigned int> GetLoadCombination() const;
74 
75  private:
77  std::string Name;
78 
80  std::vector<unsigned int> Loads;
81 
83  std::vector<double> Factors;
84 };
85 
86 #endif
Class for defining how the loads are going to be combined for an specific analysis.
Definition: LoadCombo.hpp:44
std::vector< double > Factors
The factors of combination.
Definition: LoadCombo.hpp:83
LoadCombo(std::string name, std::vector< unsigned int > loads, std::vector< double > factors)
Creates a LoadCombo object.
std::vector< double > GetLoadFactors() const
Returns the loads factors.
std::string Name
The combination&#39;s name.
Definition: LoadCombo.hpp:77
std::vector< unsigned int > GetLoadCombination() const
Returns the Load identifiers to be combined,.
std::vector< unsigned int > Loads
The loads to be combined.
Definition: LoadCombo.hpp:80
~LoadCombo()
Destroys this LoadCombo object.
std::string GetCombinationName() const
Returns the loads to combine.