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

Last change on this file since 17269 was 17269, checked in by Mathieu Morlighem, 11 years ago

CHG: removing inputs from Riftfront

File size: 3.7 KB
Line 
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;
13class Element;
14class Vertex;
15class ElementMatrix;
16class ElementVector;
17
18class Numericalflux: public Load {
19
20 public:
21 int id;
22 int analysis_type;
23 int flux_type;
24
25 /*Hooks*/
26 Hook *helement;
27 Hook *hnodes;
28 Hook *hvertices;
29
30 /*Corresponding fields*/
31 Element *element;
32 Vertex **vertices;
33 Node **nodes;
34 Parameters *parameters;
35
36 /*Numericalflux constructors,destructors {{{*/
37 Numericalflux();
38 Numericalflux(int numericalflux_id,int i,int index,IoModel* iomodel,int analysis_type);
39 ~Numericalflux();
40 /*}}}*/
41 /*Object virtual functions definitions:{{{ */
42 void Echo();
43 void DeepEcho();
44 int Id();
45 int ObjectEnum();
46 Object *copy();
47 /*}}}*/
48 /*Update virtual functions resolution: {{{*/
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");};
56 /*}}}*/
57 /*Load virtual functions definitions: {{{*/
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);
60 void CreateKMatrix(Matrix<IssmDouble>* Kff, Matrix<IssmDouble>* Kfs);
61 void CreatePVector(Vector<IssmDouble>* pf);
62 void GetNodesSidList(int* sidlist);
63 void GetNodesLidList(int* lidlist);
64 int GetNumberOfNodes(void);
65 void CreateJacobianMatrix(Matrix<IssmDouble>* Jff){_error_("Not implemented yet");};
66 bool IsPenalty(void);
67 void PenaltyCreateJacobianMatrix(Matrix<IssmDouble>* Jff,IssmDouble kmax){_error_("Not implemented yet");};
68 void PenaltyCreateKMatrix(Matrix<IssmDouble>* Kff, Matrix<IssmDouble>* kfs, IssmDouble kmax);
69 void PenaltyCreatePVector(Vector<IssmDouble>* pf, IssmDouble kmax);
70 void SetwiseNodeConnectivity(int* d_nz,int* o_nz,Node* node,bool* flags,int* flagsindices,int set1_enum,int set2_enum);
71 bool InAnalysis(int analysis_type);
72 /*}}}*/
73 /*Numericalflux management:{{{*/
74 void GetNormal(IssmDouble* normal,IssmDouble xyz_list[4][3]);
75 ElementMatrix* CreateKMatrixMasstransport(void);
76 ElementMatrix* CreateKMatrixMasstransportInternal(void);
77 ElementMatrix* CreateKMatrixMasstransportBoundary(void);
78 ElementMatrix* CreateKMatrixBalancethickness(void);
79 ElementMatrix* CreateKMatrixBalancethicknessInternal(void);
80 ElementMatrix* CreateKMatrixBalancethicknessBoundary(void);
81 ElementMatrix* CreateKMatrixAdjointBalancethickness(void);
82 ElementMatrix* CreateKMatrixAdjointBalancethicknessInternal(void);
83 ElementMatrix* CreateKMatrixAdjointBalancethicknessBoundary(void);
84 ElementVector* CreatePVectorMasstransport(void);
85 ElementVector* CreatePVectorMasstransportInternal(void);
86 ElementVector* CreatePVectorMasstransportBoundary(void);
87 ElementVector* CreatePVectorBalancethickness(void);
88 ElementVector* CreatePVectorBalancethicknessInternal(void);
89 ElementVector* CreatePVectorBalancethicknessBoundary(void);
90 ElementVector* CreatePVectorAdjointBalancethickness(void);
91 /*}}}*/
92
93};
94
95#endif /* _NUMERICALFLUX_H_ */
Note: See TracBrowser for help on using the repository browser.