[3683] | 1 | /*!\file Penpair.h
|
---|
| 2 | * \brief: header file for penpair object */
|
---|
| 3 |
|
---|
| 4 | #ifndef _PENPAIR_H_
|
---|
| 5 | #define _PENPAIR_H_
|
---|
| 6 |
|
---|
| 7 | /*Headers:*/
|
---|
| 8 | /*{{{1*/
|
---|
| 9 | #include "./Load.h"
|
---|
| 10 | #include "../Node.h"
|
---|
| 11 | #include "../Elements/Element.h"
|
---|
| 12 |
|
---|
| 13 | class Element;
|
---|
| 14 | /*}}}*/
|
---|
| 15 |
|
---|
| 16 | class Penpair: public Load{
|
---|
| 17 |
|
---|
| 18 | private:
|
---|
| 19 | int id;
|
---|
[4007] | 20 | int analysis_type;
|
---|
[3683] | 21 |
|
---|
[4396] | 22 | Hook* hnodes; //hook to 2 nodes
|
---|
[5940] | 23 | Node** nodes;
|
---|
[3683] | 24 |
|
---|
[4887] | 25 | Parameters* parameters; //pointer to solution parameters
|
---|
| 26 |
|
---|
[3683] | 27 | public:
|
---|
| 28 |
|
---|
[4248] | 29 | /*Penpair constructors, destructors: {{{1*/
|
---|
[3683] | 30 | Penpair();
|
---|
[4007] | 31 | Penpair(int penpair_id,int* penpair_node_ids,int analysis_type);
|
---|
[3683] | 32 | ~Penpair();
|
---|
[4007] | 33 | /*}}}*/
|
---|
[4248] | 34 | /*Object virtual functions definitions:{{{1 */
|
---|
| 35 | void Echo();
|
---|
[3683] | 36 | void DeepEcho();
|
---|
| 37 | int Id();
|
---|
[4248] | 38 | int MyRank();
|
---|
[9883] | 39 | int ObjectEnum();
|
---|
[4248] | 40 | Object* copy();
|
---|
[4244] | 41 | /*}}}*/
|
---|
| 42 | /*Update virtual functions resolution: {{{1*/
|
---|
[11247] | 43 | void InputUpdateFromVector(double* vector, int name, int type);
|
---|
| 44 | void InputUpdateFromVector(int* vector, int name, int type);
|
---|
| 45 | void InputUpdateFromVector(bool* vector, int name, int type);
|
---|
[10576] | 46 | void InputUpdateFromMatrixDakota(double* matrix, int nrow, int ncols,int name, int type){_error_("Not implemented yet!");}
|
---|
[6412] | 47 | void InputUpdateFromVectorDakota(double* vector, int name, int type){_error_("Not implemented yet!");}
|
---|
| 48 | void InputUpdateFromVectorDakota(int* vector, int name, int type){_error_("Not implemented yet!");}
|
---|
| 49 | void InputUpdateFromVectorDakota(bool* vector, int name, int type){_error_("Not implemented yet!");}
|
---|
[4887] | 50 | void InputUpdateFromConstant(double constant, int name);
|
---|
| 51 | void InputUpdateFromConstant(int constant, int name);
|
---|
| 52 | void InputUpdateFromConstant(bool constant, int name);
|
---|
[6412] | 53 | void InputUpdateFromSolution(double* solution){_error_("Not implemented yet!");}
|
---|
| 54 | void InputUpdateFromIoModel(int index, IoModel* iomodel){_error_("not implemented yet");};
|
---|
[4007] | 55 | /*}}}*/
|
---|
[4248] | 56 | /*Load virtual functions definitions: {{{1*/
|
---|
| 57 | void Configure(Elements* elements,Loads* loads,Nodes* nodes,Vertices* vertices,Materials* materials,Parameters* parameters);
|
---|
[4575] | 58 | void SetCurrentConfiguration(Elements* elements,Loads* loads,Nodes* nodes,Vertices* vertices,Materials* materials,Parameters* parameters);
|
---|
[11679] | 59 | void CreateKMatrix(Matrix* Kff, Matrix* Kfs);
|
---|
| 60 | void CreatePVector(Vector* pf);
|
---|
| 61 | void CreateJacobianMatrix(Matrix* Jff);
|
---|
| 62 | void PenaltyCreateKMatrix(Matrix* Kff,Matrix* Kfs,double kmax);
|
---|
| 63 | void PenaltyCreatePVector(Vector* pf, double kmax);
|
---|
| 64 | void PenaltyCreateJacobianMatrix(Matrix* Jff,double kmax);
|
---|
[4248] | 65 | bool InAnalysis(int analysis_type);
|
---|
[4007] | 66 | /*}}}*/
|
---|
[4887] | 67 | /*Penpair management: {{{1*/
|
---|
[5937] | 68 | ElementMatrix* PenaltyCreateKMatrixDiagnosticHoriz(double kmax);
|
---|
| 69 | ElementMatrix* PenaltyCreateKMatrixDiagnosticMacAyealPattyn(double kmax);
|
---|
| 70 | ElementMatrix* PenaltyCreateKMatrixDiagnosticStokes(double kmax);
|
---|
[7833] | 71 | ElementMatrix* PenaltyCreateKMatrixPrognostic(double kmax);
|
---|
[4887] | 72 | /*}}}*/
|
---|
[3683] | 73 | };
|
---|
| 74 |
|
---|
| 75 | #endif /* _PENPAIR_H_ */
|
---|
| 76 |
|
---|
| 77 |
|
---|