XC Open source finite element analysis program
GFunVisualizationAnalysis.h
1 //----------------------------------------------------------------------------
2 // XC program; finite element analysis code
3 // for structural analysis and design.
4 //
5 // Copyright (C) Luis Claudio Pérez Tato
6 //
7 // This program derives from OpenSees <http://opensees.berkeley.edu>
8 // developed by the «Pacific earthquake engineering research center».
9 //
10 // Except for the restrictions that may arise from the copyright
11 // of the original program (see copyright_opensees.txt)
12 // XC is free software: you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation, either version 3 of the License, or
15 // (at your option) any later version.
16 //
17 // This software is distributed in the hope that it will be useful, but
18 // WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 //
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program.
25 // If not, see <http://www.gnu.org/licenses/>.
26 //----------------------------------------------------------------------------
27 /* ****************************************************************** **
28 ** OpenSees - Open System for Earthquake Engineering Simulation **
29 ** Pacific Earthquake Engineering Research Center **
30 ** **
31 ** **
32 ** (C) Copyright 2001, The Regents of the University of California **
33 ** All Rights Reserved. **
34 ** **
35 ** Commercial use of this program without express permission of the **
36 ** University of California, Berkeley, is strictly prohibited. See **
37 ** file 'COPYRIGHT' in main directory for information on usage and **
38 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
39 ** **
40 ** Developed by: **
41 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
42 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
43 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
44 ** **
45 ** Reliability module developed by: **
46 ** Terje Haukaas (haukaas@ce.berkeley.edu) **
47 ** Armen Der Kiureghian (adk@ce.berkeley.edu) **
48 ** **
49 ** ****************************************************************** */
50 
51 // $Revision: 1.3 $
52 // $Date: 2003/10/27 23:45:41 $
53 // $Source: /usr/local/cvs/OpenSees/SRC/reliability/analysis/analysis/GFunVisualizationAnalysis.h,v $
54 
55 
56 //
57 // Written by Terje Haukaas (haukaas@ce.berkeley.edu)
58 //
59 
60 #ifndef GFunVisualizationAnalysis_h
61 #define GFunVisualizationAnalysis_h
62 
63 #include <reliability/analysis/analysis/ReliabilityAnalysis.h>
64 #include <reliability/analysis/designPoint/FindDesignPointAlgorithm.h>
65 #include <reliability/analysis/transformation/ProbabilityTransformation.h>
66 #include <reliability/domain/components/ReliabilityDomain.h>
67 #include <reliability/analysis/meritFunction/MeritFunctionCheck.h>
68 #include <reliability/analysis/convergenceCheck/ReliabilityConvergenceCheck.h>
69 #include <reliability/analysis/rootFinding/RootFinding.h>
70 
71 
72 namespace XC {
73 class GFunEvaluator;
74 class GradGEvaluator;
75 
77 {
78 private:
79 
80  Vector getCurrentAxes12Point(int i, int j);
81  Vector getCurrentAxes3Point(int i, int j);
82  double findGSurface(Vector thePoint);
83  double evaluateGFunction(Vector thePoint, bool printDivision);
84 
85 
86 
87 
88 
89  ReliabilityDomain *theReliabilityDomain;
90  GFunEvaluator *theGFunEvaluator;
91  ProbabilityTransformation *theProbabilityTransformation;
92  MeritFunctionCheck *theMeritFunctionCheck;
93  GradGEvaluator *theGradGEvaluator;
94  ReliabilityConvergenceCheck *theReliabilityConvergenceCheck;
95  Vector *theStartPoint;
96  RootFinding *theRootFindingAlgorithm;
97 
98  std::string outputFileName;
99  std::string convFileName;
100  int convResults;
101  int space;
102  int funSurf;
103  int axes;
104  int dir;
105 
106  int rvDir;
107  Vector theDirectionVector;
108  int rv1, rv2;
109  double from1, interval1;
110  double from2, interval2;
111  int numPts1, numPts2;
112  Matrix theMatrix;
113  int numLinePts;
114 
115  int nrv;
116 
117  double scaleValue;
118 public:
120  ReliabilityDomain *theReliabilityDomain,
121  GFunEvaluator *theGFunEvaluator,
122  ProbabilityTransformation *theProbabilityTransformation,
123  const std::string &outputFileName,
124  const std::string &convFileName,
125  int convResults,
126  int space,
127  int funSurf,
128  int axes,
129  int dir);
130 
131  int analyze(void);
132 
133  int setDirection(int rvDir);
134  int setDirection(Vector theDirectionVector);
135 
136  int setAxes(Vector axesVector);
137  int setAxes(Matrix theMatrix);
138  int setNumLinePts(int numLinePts);
139 
140  int setRootFindingAlgorithm(RootFinding *theRootFinder);
141  int setStartPoint(Vector *theStartPoint);
142  int setGradGEvaluator(GradGEvaluator *theGradGEvaluator);
143  int setMeritFunctionCheck(MeritFunctionCheck *theMeritFunctionCheck);
144  int setReliabilityConvergenceCheck(ReliabilityConvergenceCheck *theReliabilityConvergenceCheck);
145 
146 
147 };
148 } // end of XC namespace
149 
150 #endif
Definition: ReliabilityAnalysis.h:64
Definition: Vector.h:82
Definition: ReliabilityConvergenceCheck.h:66
Definition: GFunVisualizationAnalysis.h:76
Definition: RootFinding.h:66
Definition: ProbabilityTransformation.h:67
Definition: Matrix.h:82
int analyze(void)
Lanza the analysis.
Definition: GFunVisualizationAnalysis.cpp:122
Definition: ReliabilityDomain.h:75
Definition: MeritFunctionCheck.h:66
Definition: GradGEvaluator.h:69
================================================================================
Definition: ContinuaReprComponent.h:34
Definition: GFunEvaluator.h:71
GFunVisualizationAnalysis(ReliabilityDomain *theReliabilityDomain, GFunEvaluator *theGFunEvaluator, ProbabilityTransformation *theProbabilityTransformation, const std::string &outputFileName, const std::string &convFileName, int convResults, int space, int funSurf, int axes, int dir)
Constructor.
Definition: GFunVisualizationAnalysis.cpp:80