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

Last change on this file since 25506 was 25506, checked in by Mathieu Morlighem, 5 years ago

NEW: new way of Marshalling femmodel

File size: 3.9 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 flux_type;
23 int flux_degree;
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);
39 ~Numericalflux();
40 /*}}}*/
41 /*Object virtual functions definitions:{{{ */
42 Object *copy();
43 void DeepEcho();
44 void Echo();
45 int Id();
46 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction);
47 void Marshall2(MarshallHandle* marshallhandle);
48 int ObjectEnum();
49 /*}}}*/
50 /*Update virtual functions resolution: {{{*/
51 void InputUpdateFromConstant(IssmDouble constant, int name){/*Do nothing*/};
52 void InputUpdateFromConstant(int constant, int name){/*Do nothing*/};
53 void InputUpdateFromConstant(bool constant, int name){_error_("Not implemented yet!");}
54 void InputUpdateFromIoModel(int index, IoModel* iomodel){_error_("not implemented yet");};
55 void InputUpdateFromMatrixDakota(IssmDouble* matrix, int nrows, int ncols, int name, int type){/*Do nothing*/}
56 void InputUpdateFromVector(IssmDouble* vector, int name, int type){/*Do nothing*/}
57 void InputUpdateFromVectorDakota(IssmDouble* vector, int name, int type){/*Do nothing*/}
58 /*}}}*/
59 /*Load virtual functions definitions: {{{*/
60 void Configure(Elements* elements,Loads* loads,Nodes* nodes,Vertices* vertices,Materials* materials,Parameters* parameters);
61 void CreateJacobianMatrix(Matrix<IssmDouble>* Jff){_error_("Not implemented yet");};
62 void CreateKMatrix(Matrix<IssmDouble>* Kff, Matrix<IssmDouble>* Kfs);
63 void CreatePVector(Vector<IssmDouble>* pf);
64 void GetNodesLidList(int* lidlist);
65 void GetNodesSidList(int* sidlist);
66 int GetNumberOfNodes(void);
67 int GetNumberOfNodesOneSide(void);
68 bool IsPenalty(void);
69 void PenaltyCreateJacobianMatrix(Matrix<IssmDouble>* Jff,IssmDouble kmax){_error_("Not implemented yet");};
70 void PenaltyCreateKMatrix(Matrix<IssmDouble>* Kff, Matrix<IssmDouble>* kfs, IssmDouble kmax);
71 void PenaltyCreatePVector(Vector<IssmDouble>* pf, IssmDouble kmax);
72 void ResetHooks();
73 void SetCurrentConfiguration(Elements* elements,Loads* loads,Nodes* nodes,Vertices* vertices,Materials* materials,Parameters* parameters);
74 void SetwiseNodeConnectivity(int* d_nz,int* o_nz,Node* node,bool* flags,int* flagsindices,int* flagsindices_counter,int set1_enum,int set2_enum);
75 /*}}}*/
76 /*Numericalflux management:{{{*/
77 ElementMatrix* CreateKMatrixAdjointBalancethickness(void);
78 ElementMatrix* CreateKMatrixAdjointBalancethicknessBoundary(void);
79 ElementMatrix* CreateKMatrixAdjointBalancethicknessInternal(void);
80 ElementMatrix* CreateKMatrixBalancethickness(void);
81 ElementMatrix* CreateKMatrixBalancethicknessBoundary(void);
82 ElementMatrix* CreateKMatrixBalancethicknessInternal(void);
83 ElementMatrix* CreateKMatrixMasstransport(void);
84 ElementMatrix* CreateKMatrixMasstransportBoundary(void);
85 ElementMatrix* CreateKMatrixMasstransportInternal(void);
86 ElementVector* CreatePVectorAdjointBalancethickness(void);
87 ElementVector* CreatePVectorBalancethickness(void);
88 ElementVector* CreatePVectorBalancethicknessBoundary(void);
89 ElementVector* CreatePVectorBalancethicknessInternal(void);
90 ElementVector* CreatePVectorMasstransport(void);
91 ElementVector* CreatePVectorMasstransportBoundary(void);
92 ElementVector* CreatePVectorMasstransportInternal(void);
93 void GetNormal(IssmDouble* normal,IssmDouble xyz_list[4][3]);
94 /*}}}*/
95
96};
97
98#endif /* _NUMERICALFLUX_H_ */
Note: See TracBrowser for help on using the repository browser.