FEI Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
driverData.hpp
Go to the documentation of this file.
1/*--------------------------------------------------------------------*/
2/* Copyright 2005 Sandia Corporation. */
3/* Under the terms of Contract DE-AC04-94AL85000, there is a */
4/* non-exclusive license for use of this work by or on behalf */
5/* of the U.S. Government. Export of this program may require */
6/* a license from the United States Government. */
7/*--------------------------------------------------------------------*/
8
9#ifndef _driverData_h_
10#define _driverData_h_
11
12#include <fei_macros.hpp>
13#include <fei_defs.h>
14
15class initElem {
16 public:
19 {
20 delete [] nodeIDs;
21 }
26};
27
28class sumInElem {
29 public:
30 sumInElem() : stiff1D(NULL), stiffness(NULL), load(NULL) {}
32 {
33 delete [] nodeIDs;
34 delete [] stiff1D;
35 delete [] stiffness;
36 delete [] load;
37 }
43 double* stiff1D;
44 double** stiffness;
45 double* load;
47};
48
49class nodeBC {
50 public:
51 nodeBC():nodeIDs(NULL), alpha(NULL), beta(NULL), gamma(NULL) {}
53 {
54 for(int i=0; i<numNodes; ++i) {
55 delete [] alpha[i];
56 delete [] beta[i];
57 delete [] gamma[i];
58 }
59 delete [] alpha;
60 delete [] beta;
61 delete [] gamma;
62 delete [] nodeIDs;
63 }
68 double** alpha;
69 double** beta;
70 double** gamma;
71};
72
73class initCR {
74 public:
77 {
78 delete [] nodeIDs;
79 delete [] fieldIDs;
80 }
81
85 int CRID;
86};
87
88class loadCR {
89 public:
90 loadCR() {}
92 {
93 delete [] fieldIDs;
94 delete [] fieldSizes;
95 delete [] weights;
96 delete [] nodeIDs;
97 }
98
103 double* weights;
104 double CRValue;
105 double penValue;
106 int CRID;
107};
108
110 public:
113 {
114 for(int i=0; i<numNodes; ++i) delete [] sharedProcIDs[i];
115 delete [] sharedProcIDs;
116 delete [] numProcsPerNode;
117 delete [] nodeIDs;
118 }
119
124};
125
127 public:
130 {
131 for(size_t i=0; i<paramList.size(); ++i) delete [] paramList[i];
132 }
133
134 std::vector<char*> paramList;
135};
136
138 public:
139 setIDLists() : matrixIDs(NULL), rhsIDs(NULL) {}
140 ~setIDLists(){delete [] matrixIDs; delete [] rhsIDs;}
141
144 int* rhsIDs;
146};
147
160
162 public:
163 driverData();
164 ~driverData();
165
166 int readData(const char* fileName);
167
172 int call_fei_method(const char* method, FEI* fei);
173
174 std::vector<const char*>& get_methodNames() { return( methodNames ); }
175
176 private:
177 int readData(FEI_ISTREAM* instr, char* keyword);
178 int getKeyword(FEI_ISTREAM* instr, char*& keyword);
179
180 int is_reg_char(char c);
181 int skipWhite(FEI_ISTREAM* instr);
182 int readData(FEI_ISTREAM* instr, int& n);
183 int readData(FEI_ISTREAM* instr, double& val);
184 int appendName(const char* name);
185
186 std::vector<const char*> methodNames;
187 char* temp_;
189
191
195
201
202 std::vector<initElem*> initElems_;
204
205 std::vector<sumInElem*> sumInElems_;
207
208 std::vector<sumInElem*> sumInElemMatrix_;
210
211 std::vector<sumInElem*> sumInElemRHS_;
213
218
219 std::vector<nodeBC*> loadNodeBCs_;
221
222 std::vector<initCR*> initCRMult_;
224
225 std::vector<loadCR*> loadCRMult_;
227
228 std::vector<sharedNodes*> initSharedNodes_;
230
231 std::vector<parameters*> parameters_;
233
234 std::vector<setIDLists*> setIDLists_;
236
237 std::vector<int> setCurrentMatrix_;
239
240 std::vector<int> setCurrentRHS_;
242
243 std::vector<putBlockFieldNodeSolution*> putBlockFieldNodeSolution_;
245};
246
247#endif // _driverData_h_
Definition FEI.hpp:144
int initElemBlock_numInts_
int * initElemBlock_ints_
std::vector< const char * > & get_methodNames()
double resetRHSVector_
int appendName(const char *name)
int skipWhite(FEI_ISTREAM *instr)
int readData(const char *fileName)
std::vector< sumInElem * > sumInElems_
int sumInElemCounter_
int setCurrentRHSCounter_
std::vector< loadCR * > loadCRMult_
int putBlockFieldNodeSolutionCounter_
double resetMatrix_
int * initFields_fieldIDs_
int call_fei_method(const char *method, FEI *fei)
std::vector< parameters * > parameters_
std::vector< sumInElem * > sumInElemRHS_
std::vector< nodeBC * > loadNodeBCs_
int parametersCounter_
int * initFields_fieldSizes_
int initSharedNodesCounter_
int * initElemBlock_fieldsPerNode_
double resetSystem_
int loadCRMultCounter_
int initCRMultCounter_
std::vector< int > setCurrentMatrix_
int ** initElemBlock_fieldIDs_
std::vector< const char * > methodNames
std::vector< putBlockFieldNodeSolution * > putBlockFieldNodeSolution_
std::vector< setIDLists * > setIDLists_
int setCurrentMatrixCounter_
std::vector< sharedNodes * > initSharedNodes_
int is_reg_char(char c)
std::vector< initElem * > initElems_
int setIDListsCounter_
int loadNodeBCsCounter_
int initFields_numFields_
double resetInitialGuess_
int getKeyword(FEI_ISTREAM *instr, char *&keyword)
int initElemCounter_
int sumInElemMatrixCounter_
std::vector< sumInElem * > sumInElemMatrix_
int * initElemBlock_elemDofFieldIDs_
std::vector< initCR * > initCRMult_
std::vector< int > setCurrentRHS_
int sumInElemRHSCounter_
GlobalID * nodeIDs
int * fieldIDs
int numNodes
GlobalID * nodeIDs
GlobalID elemBlockID
GlobalID elemID
double penValue
double CRValue
GlobalID * nodeIDs
int * fieldSizes
double * weights
int numNodes
int * fieldIDs
int fieldID
int numNodes
int fieldSize
double ** alpha
double ** gamma
GlobalID * nodeIDs
double ** beta
std::vector< char * > paramList
int * matrixIDs
GlobalID * nodeIDs
int ** sharedProcIDs
int * numProcsPerNode
double * load
GlobalID * nodeIDs
double * stiff1D
double ** stiffness
GlobalID elemID
GlobalID elemBlockID
int GlobalID
Definition fei_defs.h:60
#define FEI_ISTREAM