[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"
|
---|
| 10 | class Hook;
|
---|
| 11 | class Parameters;
|
---|
| 12 | class IoModel;
|
---|
[15649] | 13 | class Element;
|
---|
| 14 | class Vertex;
|
---|
[5911] | 15 | class ElementMatrix;
|
---|
| 16 | class ElementVector;
|
---|
[3683] | 17 |
|
---|
| 18 | class Numericalflux: public Load {
|
---|
| 19 |
|
---|
| 20 | public:
|
---|
[13414] | 21 | int id;
|
---|
[17266] | 22 | int flux_type;
|
---|
[24088] | 23 | int flux_degree;
|
---|
[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();
|
---|
[23959] | 38 | Numericalflux(int numericalflux_id,int i,int index,IoModel* iomodel);
|
---|
[3683] | 39 | ~Numericalflux();
|
---|
| 40 | /*}}}*/
|
---|
[12365] | 41 | /*Object virtual functions definitions:{{{ */
|
---|
[18926] | 42 | Object *copy();
|
---|
| 43 | void DeepEcho();
|
---|
[14761] | 44 | void Echo();
|
---|
| 45 | int Id();
|
---|
[20827] | 46 | void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction);
|
---|
[14761] | 47 | int ObjectEnum();
|
---|
[4244] | 48 | /*}}}*/
|
---|
[12365] | 49 | /*Update virtual functions resolution: {{{*/
|
---|
[14761] | 50 | void InputUpdateFromConstant(IssmDouble constant, int name){/*Do nothing*/};
|
---|
| 51 | void InputUpdateFromConstant(int constant, int name){/*Do nothing*/};
|
---|
| 52 | void InputUpdateFromConstant(bool constant, int name){_error_("Not implemented yet!");}
|
---|
| 53 | void InputUpdateFromIoModel(int index, IoModel* iomodel){_error_("not implemented yet");};
|
---|
[18926] | 54 | void InputUpdateFromMatrixDakota(IssmDouble* matrix, int nrows, int ncols, int name, int type){/*Do nothing*/}
|
---|
| 55 | void InputUpdateFromVector(IssmDouble* vector, int name, int type){/*Do nothing*/}
|
---|
| 56 | void InputUpdateFromVectorDakota(IssmDouble* vector, int name, int type){/*Do nothing*/}
|
---|
[3683] | 57 | /*}}}*/
|
---|
[12365] | 58 | /*Load virtual functions definitions: {{{*/
|
---|
[14761] | 59 | void Configure(Elements* elements,Loads* loads,Nodes* nodes,Vertices* vertices,Materials* materials,Parameters* parameters);
|
---|
[18926] | 60 | void CreateJacobianMatrix(Matrix<IssmDouble>* Jff){_error_("Not implemented yet");};
|
---|
[14761] | 61 | void CreateKMatrix(Matrix<IssmDouble>* Kff, Matrix<IssmDouble>* Kfs);
|
---|
| 62 | void CreatePVector(Vector<IssmDouble>* pf);
|
---|
[18926] | 63 | void GetNodesLidList(int* lidlist);
|
---|
[14761] | 64 | void GetNodesSidList(int* sidlist);
|
---|
| 65 | int GetNumberOfNodes(void);
|
---|
[24130] | 66 | int GetNumberOfNodesOneSide(void);
|
---|
[14761] | 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);
|
---|
[18926] | 71 | void ResetHooks();
|
---|
[20827] | 72 | void SetCurrentConfiguration(Elements* elements,Loads* loads,Nodes* nodes,Vertices* vertices,Materials* materials,Parameters* parameters);
|
---|
[25386] | 73 | void SetwiseNodeConnectivity(int* d_nz,int* o_nz,Node* node,bool* flags,int* flagsindices,int* flagsindices_counter,int set1_enum,int set2_enum);
|
---|
[4248] | 74 | /*}}}*/
|
---|
[12365] | 75 | /*Numericalflux management:{{{*/
|
---|
[18926] | 76 | ElementMatrix* CreateKMatrixAdjointBalancethickness(void);
|
---|
| 77 | ElementMatrix* CreateKMatrixAdjointBalancethicknessBoundary(void);
|
---|
| 78 | ElementMatrix* CreateKMatrixAdjointBalancethicknessInternal(void);
|
---|
| 79 | ElementMatrix* CreateKMatrixBalancethickness(void);
|
---|
| 80 | ElementMatrix* CreateKMatrixBalancethicknessBoundary(void);
|
---|
| 81 | ElementMatrix* CreateKMatrixBalancethicknessInternal(void);
|
---|
[15767] | 82 | ElementMatrix* CreateKMatrixMasstransport(void);
|
---|
[18926] | 83 | ElementMatrix* CreateKMatrixMasstransportBoundary(void);
|
---|
[15767] | 84 | ElementMatrix* CreateKMatrixMasstransportInternal(void);
|
---|
[18926] | 85 | ElementVector* CreatePVectorAdjointBalancethickness(void);
|
---|
| 86 | ElementVector* CreatePVectorBalancethickness(void);
|
---|
| 87 | ElementVector* CreatePVectorBalancethicknessBoundary(void);
|
---|
| 88 | ElementVector* CreatePVectorBalancethicknessInternal(void);
|
---|
[15767] | 89 | ElementVector* CreatePVectorMasstransport(void);
|
---|
[18926] | 90 | ElementVector* CreatePVectorMasstransportBoundary(void);
|
---|
[15767] | 91 | ElementVector* CreatePVectorMasstransportInternal(void);
|
---|
[18926] | 92 | void GetNormal(IssmDouble* normal,IssmDouble xyz_list[4][3]);
|
---|
[3683] | 93 | /*}}}*/
|
---|
| 94 |
|
---|
| 95 | };
|
---|
| 96 |
|
---|
| 97 | #endif /* _NUMERICALFLUX_H_ */
|
---|