xc
ReliabilityDomain.h
1 // -*-c++-*-
2 //----------------------------------------------------------------------------
3 // XC program; finite element analysis code
4 // for structural analysis and design.
5 //
6 // Copyright (C) Luis C. Pérez Tato
7 //
8 // This program derives from OpenSees <http://opensees.berkeley.edu>
9 // developed by the «Pacific earthquake engineering research center».
10 //
11 // Except for the restrictions that may arise from the copyright
12 // of the original program (see copyright_opensees.txt)
13 // XC is free software: you can redistribute it and/or modify
14 // it under the terms of the GNU General Public License as published by
15 // the Free Software Foundation, either version 3 of the License, or
16 // (at your option) any later version.
17 //
18 // This software is distributed in the hope that it will be useful, but
19 // WITHOUT ANY WARRANTY; without even the implied warranty of
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 // GNU General Public License for more details.
22 //
23 //
24 // You should have received a copy of the GNU General Public License
25 // along with this program.
26 // If not, see <http://www.gnu.org/licenses/>.
27 //----------------------------------------------------------------------------
28 /* ****************************************************************** **
29 ** OpenSees - Open System for Earthquake Engineering Simulation **
30 ** Pacific Earthquake Engineering Research Center **
31 ** **
32 ** **
33 ** (C) Copyright 2001, The Regents of the University of California **
34 ** All Rights Reserved. **
35 ** **
36 ** Commercial use of this program without express permission of the **
37 ** University of California, Berkeley, is strictly prohibited. See **
38 ** file 'COPYRIGHT' in main directory for information on usage and **
39 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
40 ** **
41 ** Developed by: **
42 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
43 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
44 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
45 ** **
46 ** Reliability module developed by: **
47 ** Terje Haukaas (haukaas@ce.berkeley.edu) **
48 ** Armen Der Kiureghian (adk@ce.berkeley.edu) **
49 ** **
50 ** ****************************************************************** */
51 
52 // $Revision: 1.5 $
53 // $Date: 2003/10/27 23:04:38 $
54 // $Source: /usr/local/cvs/OpenSees/SRC/reliability/domain/components/ReliabilityDomain.h,v $
55 
56 
57 //
58 // Written by Terje Haukaas (haukaas@ce.berkeley.edu)
59 //
60 
61 #ifndef ReliabilityDomain_h
62 #define ReliabilityDomain_h
63 
64 #include <reliability/domain/components/RandomVariable.h>
65 #include <reliability/domain/components/CorrelationCoefficient.h>
66 #include <reliability/domain/components/LimitStateFunction.h>
67 #include <reliability/domain/components/RandomVariablePositioner.h>
68 #include <reliability/domain/components/ParameterPositioner.h>
69 #include <reliability/domain/modulatingFunction/ModulatingFunction.h>
70 #include <reliability/domain/filter/Filter.h>
71 #include <reliability/domain/spectrum/Spectrum.h>
72 
73 namespace XC {
74 
75 class TaggedObjectStorage;
76 
87  {
88  private:
89  TaggedObjectStorage *theRandomVariablesPtr;
90  TaggedObjectStorage *theCorrelationCoefficientsPtr;
91  TaggedObjectStorage *theLimitStateFunctionsPtr;
92  TaggedObjectStorage *theRandomVariablePositionersPtr;
93  TaggedObjectStorage *theParameterPositionersPtr;
94  TaggedObjectStorage *theModulatingFunctionsPtr;
95  TaggedObjectStorage *theFiltersPtr;
96  TaggedObjectStorage *theSpectraPtr;
97  int tagOfActiveLimitStateFunction;
98  public:
100  virtual ~ReliabilityDomain();
101 
102  // Member functions to add components to the domain
103  virtual bool addRandomVariable(RandomVariable *theRandomVariable);
104  virtual bool addCorrelationCoefficient(CorrelationCoefficient *theCorrelationCoefficient);
105  virtual bool addLimitStateFunction(LimitStateFunction *theLimitStateFunction);
106  virtual bool addRandomVariablePositioner(RandomVariablePositioner *theRandomVariablePositioner);
107  virtual bool addParameterPositioner(ParameterPositioner *theParameterPositioner);
108  virtual bool addModulatingFunction(ModulatingFunction *theModulatingFunction);
109  virtual bool addFilter(Filter *theFilter);
110  virtual bool addSpectrum(Spectrum *theSpectrum);
111 
112  // Member functions to get components from the domain
113  RandomVariable *getRandomVariablePtr(int tag);
114  CorrelationCoefficient *getCorrelationCoefficientPtr(int tag);
115  LimitStateFunction *getLimitStateFunctionPtr(int tag);
116  RandomVariablePositioner *getRandomVariablePositionerPtr(int tag);
117  ParameterPositioner *getParameterPositionerPtr(int tag);
118  ModulatingFunction *getModulatingFunction(int tag);
119  Filter *getFilter(int tag);
120  Spectrum *getSpectrum(int tag);
121 
122  // Member functions giving information about the domain
123  int getNumberOfRandomVariables(void);
124  int getNumberOfCorrelationCoefficients(void);
125  int getNumberOfLimitStateFunctions(void);
126  int getNumberOfRandomVariablePositioners(void);
127  int getNumberOfParameterPositioners(void);
128  int getNumberOfModulatingFunctions(void);
129  int getNumberOfFilters(void);
130  int getNumberOfSpectra(void);
131 
132  // Member functions to set/get active limit-state function
133  int getTagOfActiveLimitStateFunction(void);
134  void setTagOfActiveLimitStateFunction(int tag);
135 
136  // Member functions to remove single components from the domain
137  void clearAll(void);
138  int removeRandomVariablePositioner(int tag);
139  int removeRandomVariable(int tag);
140  int removeCorrelationCoefficient(int tag);
141  int removePerformanceFunction(int tag);
142  };
143 } // end of XC namespace
144 
145 #endif
146 
Domain that keeps inside the sensitivity, reliability and optimization components are kept...
Definition: ReliabilityDomain.h:86
Function that defines the failure of the structure.
Definition: LimitStateFunction.h:78
Maps a parameter to an object in the finite element model which contains the parametrized variable...
Definition: ParameterPositioner.h:71
Definition: RandomVariable.h:75
Correlation coefficient computed in the reliability analysis.
Definition: CorrelationCoefficient.h:74
Base class for filters.
Definition: Filter.h:71
void clearAll(void)
Clear object members.
Definition: ReliabilityDomain.cpp:100
Base class for the modulating functions.
Definition: ModulatingFunction.h:73
Maps a random variable to an object in the finite element model which contains the uncertain variable...
Definition: RandomVariablePositioner.h:76
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
virtual ~ReliabilityDomain()
Destructor.
Definition: ReliabilityDomain.cpp:87
??
Definition: Spectrum.h:70