source: issm/trunk-jpl/src/c/classes/Loads/Numericalflux.h@ 18237

Last change on this file since 18237 was 18237, checked in by schlegel, 11 years ago

CHG: create femmodel copy for dakota runs

File size: 3.7 KB
RevLine 
[3683]1/*!\file Numericalflux.h
2 * \brief: header file for icefront object
3 */
4
5#ifndef _NUMERICALFLUX_H_
6#define _NUMERICALFLUX_H_
7
8/*Headers:*/
9#include "./Load.h"
10class Hook;
11class Parameters;
12class IoModel;
[15649]13class Element;
14class Vertex;
[5911]15class ElementMatrix;
16class ElementVector;
[3683]17
18class Numericalflux: public Load {
19
20 public:
[13414]21 int id;
[4007]22 int analysis_type;
[17266]23 int flux_type;
[3683]24
[5737]25 /*Hooks*/
[13414]26 Hook *helement;
27 Hook *hnodes;
[14761]28 Hook *hvertices;
[5737]29
30 /*Corresponding fields*/
[13414]31 Element *element;
[14761]32 Vertex **vertices;
[13414]33 Node **nodes;
34 Parameters *parameters;
[5737]35
[12365]36 /*Numericalflux constructors,destructors {{{*/
[3683]37 Numericalflux();
[15430]38 Numericalflux(int numericalflux_id,int i,int index,IoModel* iomodel,int analysis_type);
[3683]39 ~Numericalflux();
40 /*}}}*/
[12365]41 /*Object virtual functions definitions:{{{ */
[14761]42 void Echo();
43 void DeepEcho();
44 int Id();
45 int ObjectEnum();
46 Object *copy();
[4244]47 /*}}}*/
[12365]48 /*Update virtual functions resolution: {{{*/
[14761]49 void InputUpdateFromVector(IssmDouble* vector, int name, int type){/*Do nothing*/}
50 void InputUpdateFromMatrixDakota(IssmDouble* matrix, int nrows, int ncols, int name, int type){/*Do nothing*/}
51 void InputUpdateFromVectorDakota(IssmDouble* vector, int name, int type){/*Do nothing*/}
52 void InputUpdateFromConstant(IssmDouble constant, int name){/*Do nothing*/};
53 void InputUpdateFromConstant(int constant, int name){/*Do nothing*/};
54 void InputUpdateFromConstant(bool constant, int name){_error_("Not implemented yet!");}
55 void InputUpdateFromIoModel(int index, IoModel* iomodel){_error_("not implemented yet");};
[3683]56 /*}}}*/
[12365]57 /*Load virtual functions definitions: {{{*/
[14761]58 void Configure(Elements* elements,Loads* loads,Nodes* nodes,Vertices* vertices,Materials* materials,Parameters* parameters);
59 void SetCurrentConfiguration(Elements* elements,Loads* loads,Nodes* nodes,Vertices* vertices,Materials* materials,Parameters* parameters);
[18237]60 void ResetHooks();
[14761]61 void CreateKMatrix(Matrix<IssmDouble>* Kff, Matrix<IssmDouble>* Kfs);
62 void CreatePVector(Vector<IssmDouble>* pf);
63 void GetNodesSidList(int* sidlist);
[16042]64 void GetNodesLidList(int* lidlist);
[14761]65 int GetNumberOfNodes(void);
66 void CreateJacobianMatrix(Matrix<IssmDouble>* Jff){_error_("Not implemented yet");};
67 bool IsPenalty(void);
68 void PenaltyCreateJacobianMatrix(Matrix<IssmDouble>* Jff,IssmDouble kmax){_error_("Not implemented yet");};
69 void PenaltyCreateKMatrix(Matrix<IssmDouble>* Kff, Matrix<IssmDouble>* kfs, IssmDouble kmax);
70 void PenaltyCreatePVector(Vector<IssmDouble>* pf, IssmDouble kmax);
[16042]71 void SetwiseNodeConnectivity(int* d_nz,int* o_nz,Node* node,bool* flags,int* flagsindices,int set1_enum,int set2_enum);
[14761]72 bool InAnalysis(int analysis_type);
[4248]73 /*}}}*/
[12365]74 /*Numericalflux management:{{{*/
[14761]75 void GetNormal(IssmDouble* normal,IssmDouble xyz_list[4][3]);
[15767]76 ElementMatrix* CreateKMatrixMasstransport(void);
77 ElementMatrix* CreateKMatrixMasstransportInternal(void);
78 ElementMatrix* CreateKMatrixMasstransportBoundary(void);
[8287]79 ElementMatrix* CreateKMatrixBalancethickness(void);
80 ElementMatrix* CreateKMatrixBalancethicknessInternal(void);
81 ElementMatrix* CreateKMatrixBalancethicknessBoundary(void);
82 ElementMatrix* CreateKMatrixAdjointBalancethickness(void);
83 ElementMatrix* CreateKMatrixAdjointBalancethicknessInternal(void);
84 ElementMatrix* CreateKMatrixAdjointBalancethicknessBoundary(void);
[15767]85 ElementVector* CreatePVectorMasstransport(void);
86 ElementVector* CreatePVectorMasstransportInternal(void);
87 ElementVector* CreatePVectorMasstransportBoundary(void);
[8287]88 ElementVector* CreatePVectorBalancethickness(void);
89 ElementVector* CreatePVectorBalancethicknessInternal(void);
90 ElementVector* CreatePVectorBalancethicknessBoundary(void);
91 ElementVector* CreatePVectorAdjointBalancethickness(void);
[3683]92 /*}}}*/
93
94};
95
96#endif /* _NUMERICALFLUX_H_ */
Note: See TracBrowser for help on using the repository browser.