[1] | 1 | /*! \file Penta.h
|
---|
| 2 | * \brief: header file for penta object
|
---|
| 3 | */
|
---|
| 4 |
|
---|
| 5 | #ifndef _PENTA_H
|
---|
| 6 | #define _PENTA_H
|
---|
| 7 |
|
---|
| 8 | #include "./Object.h"
|
---|
| 9 | #include "./Element.h"
|
---|
| 10 | #include "./Matpar.h"
|
---|
[3383] | 11 | #include "./Numpar.h"
|
---|
[1] | 12 | #include "./Matice.h"
|
---|
| 13 | #include "./Node.h"
|
---|
[96] | 14 | #include "./Tria.h"
|
---|
[3383] | 15 | #include "./Hook.h"
|
---|
| 16 | #include "./ElementProperties.h"
|
---|
[246] | 17 | #include "./ParameterInputs.h"
|
---|
[1] | 18 |
|
---|
[3383] | 19 | class Numpar;
|
---|
| 20 | class Node;
|
---|
| 21 | class Matice;
|
---|
| 22 | class Matpar;
|
---|
| 23 | class ElementProperties;
|
---|
| 24 |
|
---|
[1] | 25 | class Penta: public Element{
|
---|
| 26 |
|
---|
| 27 | private:
|
---|
[3383] | 28 |
|
---|
[1] | 29 | int id;
|
---|
[3383] | 30 | Hook hnodes; //hook to 6 nodes
|
---|
| 31 | Hook hmatice; //hook to 1 matice
|
---|
| 32 | Hook hmatpar; //hook to 1 matpar
|
---|
| 33 | Hook hnumpar; //hook to 1 numpar
|
---|
[1] | 34 |
|
---|
[3383] | 35 | ElementProperties properties;
|
---|
[2333] | 36 |
|
---|
[1] | 37 | public:
|
---|
| 38 |
|
---|
[3383] | 39 | /*FUNCTION constructors, destructors {{{1*/
|
---|
[1] | 40 | Penta();
|
---|
[3383] | 41 | Penta(int penta_id,int* penta_node_ids, int penta_matice_id, int penta_matpar_id, int penta_numpar_id, ElementProperties* properties);
|
---|
[1] | 42 | ~Penta();
|
---|
[3383] | 43 | /*}}}*/
|
---|
| 44 | /*FUNCTION object management {{{1*/
|
---|
[1] | 45 | void Echo();
|
---|
[803] | 46 | void DeepEcho();
|
---|
[1] | 47 | void Marshall(char** pmarshalled_dataset);
|
---|
| 48 | int MarshallSize();
|
---|
| 49 | char* GetName();
|
---|
| 50 | void Demarshall(char** pmarshalled_dataset);
|
---|
| 51 | int Enum();
|
---|
| 52 | int GetId();
|
---|
| 53 | int MyRank();
|
---|
[2333] | 54 | void Configure(void* loads,void* nodes,void* materials,void* parameters);
|
---|
[3383] | 55 | /*}}}*/
|
---|
| 56 | /*FUNCTION element numerical routines {{{1*/
|
---|
[465] | 57 | void CreateKMatrix(Mat Kgg,void* inputs,int analysis_type,int sub_analysis_type);
|
---|
| 58 | void CreateKMatrixDiagnosticHoriz( Mat Kgg, void* inputs, int analysis_type,int sub_analysis_type);
|
---|
| 59 | void CreateKMatrixDiagnosticVert( Mat Kgg, void* inputs, int analysis_type,int sub_analysis_type);
|
---|
| 60 | void CreatePVector(Vec pg, void* inputs, int analysis_type,int sub_analysis_type);
|
---|
[246] | 61 | void UpdateFromInputs(void* inputs);
|
---|
[96] | 62 | void GetDofList(int* doflist,int* pnumberofdofs);
|
---|
[301] | 63 | void GetDofList1(int* doflist);
|
---|
[246] | 64 | void* GetMatPar();
|
---|
[1] | 65 | int GetShelf();
|
---|
[246] | 66 | void GetNodes(void** nodes);
|
---|
[1] | 67 | int GetOnBed();
|
---|
[1185] | 68 | void Du(Vec du_g,void* inputs,int analysis_type,int sub_analysis_type);
|
---|
[1188] | 69 | void Gradj(Vec grad_g,void* inputs,int analysis_type,int sub_analysis_type,char* control_type);
|
---|
| 70 | void GradjDrag(Vec grad_g,void* inputs,int analysis_type,int sub_analysis_type);
|
---|
| 71 | void GradjB(Vec grad_g,void* inputs,int analysis_type,int sub_analysis_type);
|
---|
[3169] | 72 | double Misfit(void* inputs,int analysis_type,int sub_analysis_type);
|
---|
[3180] | 73 | double SurfaceArea(void* inputs,int analysis_type,int sub_analysis_type);
|
---|
[3169] | 74 | double CostFunction(void* inputs,int analysis_type,int sub_analysis_type);
|
---|
[1] | 75 |
|
---|
| 76 | void GetThicknessList(double* thickness_list);
|
---|
| 77 | void GetBedList(double* bed_list);
|
---|
| 78 | Object* copy();
|
---|
[246] | 79 | void* SpawnTria(int g0, int g1, int g2);
|
---|
[1] | 80 |
|
---|
[2956] | 81 | void GetStrainRate(double* epsilon, double* velocity, double* xyz_list, double* gauss_coord);
|
---|
| 82 | void GetB(double* pB, double* xyz_list, double* gauss_coord);
|
---|
| 83 | void GetBPrime(double* B, double* xyz_list, double* gauss_coord);
|
---|
| 84 | void GetB_vert(double* B, double* xyz_list, double* gauss_coord);
|
---|
| 85 | void GetBPrime_vert(double* B, double* xyz_list, double* gauss_coord);
|
---|
| 86 | void GetJacobianDeterminant(double* Jdet, double* xyz_list,double* gauss_coord);
|
---|
| 87 | void GetNodalFunctionsDerivatives(double* dh1dh6,double* xyz_list, double* gauss_coord);
|
---|
| 88 | void GetJacobian(double* J, double* xyz_list,double* gauss_coord);
|
---|
| 89 | void GetNodalFunctionsDerivativesReference(double* dl1dl6,double* gauss_coord);
|
---|
| 90 | void GetJacobianInvert(double* Jinv, double* xyz_list,double* gauss_coord);
|
---|
[465] | 91 | void CreatePVectorDiagnosticHoriz( Vec pg, void* inputs,int analysis_type,int sub_analysis_type);
|
---|
| 92 | void CreatePVectorDiagnosticVert( Vec pg, void* inputs,int analysis_type,int sub_analysis_type);
|
---|
[2956] | 93 | void GetParameterValue(double* pvalue, double* v_list,double* gauss_coord);
|
---|
| 94 | void GetParameterDerivativeValue(double* p, double* p_list,double* xyz_list, double* gauss_coord);
|
---|
| 95 | void GetNodalFunctions(double* l1l6, double* gauss_coord);
|
---|
[848] | 96 | void FieldExtrude(Vec field,double* field_serial,char* field_name, int iscollapsed);
|
---|
[301] | 97 | void ComputePressure(Vec p_g);
|
---|
[465] | 98 | void CreateKMatrixSlopeCompute(Mat Kgg,void* vinputs,int analysis_type,int sub_analysis_type);
|
---|
| 99 | void CreatePVectorSlopeCompute( Vec pg, void* vinputs, int analysis_type,int sub_analysis_type);
|
---|
[607] | 100 | void CreateKMatrixPrognostic(Mat Kgg,void* vinputs,int analysis_type,int sub_analysis_type);
|
---|
| 101 | void CreatePVectorPrognostic( Vec pg, void* vinputs, int analysis_type,int sub_analysis_type);
|
---|
[2714] | 102 | void CreateKMatrixBalancedthickness(Mat Kgg,void* vinputs,int analysis_type,int sub_analysis_type);
|
---|
| 103 | void CreatePVectorBalancedthickness( Vec pg, void* vinputs, int analysis_type,int sub_analysis_type);
|
---|
[2722] | 104 | void CreateKMatrixBalancedvelocities(Mat Kgg,void* vinputs,int analysis_type,int sub_analysis_type);
|
---|
| 105 | void CreatePVectorBalancedvelocities( Vec pg, void* vinputs, int analysis_type,int sub_analysis_type);
|
---|
[1] | 106 |
|
---|
[465] | 107 | void CreateKMatrixDiagnosticStokes( Mat Kgg, void* vinputs, int analysis_type,int sub_analysis_type);
|
---|
| 108 | void CreatePVectorDiagnosticStokes( Vec pg, void* vinputs,int analysis_type,int sub_analysis_type);
|
---|
[394] | 109 | void ReduceMatrixStokes(double* Ke_reduced, double* Ke_temp);
|
---|
| 110 | void GetMatrixInvert(double* Ke_invert, double* Ke);
|
---|
| 111 | void SurfaceNormal(double* surface_normal, double xyz_list[3][3]);
|
---|
| 112 | void GetStrainRateStokes(double* epsilon, double* velocity, double* xyz_list, double* gauss_coord);
|
---|
| 113 | void GetBStokes(double* B, double* xyz_list, double* gauss_coord);
|
---|
| 114 | void GetBprimeStokes(double* B_prime, double* xyz_list, double* gauss_coord);
|
---|
| 115 | void GetLStokes(double* LStokes, double* gauss_coord_tria);
|
---|
| 116 | void GetLprimeStokes(double* LprimeStokes, double* xyz_list, double* gauss_coord_tria, double* gauss_coord);
|
---|
[2956] | 117 | void GetNodalFunctionsDerivativesStokes(double* dh1dh7,double* xyz_list, double* gauss_coord);
|
---|
| 118 | void GetNodalFunctionsDerivativesReferenceStokes(double* dl1dl7,double* gauss_coord);
|
---|
[394] | 119 | void ReduceVectorStokes(double* Pe_reduced, double* Ke_temp, double* Pe_temp);
|
---|
| 120 | void GetNodalFunctionsStokes(double* l1l7, double* gauss_coord);
|
---|
[483] | 121 | void CreateKMatrixThermal(Mat Kgg,void* inputs,int analysis_type,int sub_analysis_type);
|
---|
| 122 | void GetB_conduct(double* B_conduct, double* xyz_list, double* gauss_coord);
|
---|
| 123 | void GetB_advec(double* B_advec, double* xyz_list, double* gauss_coord);
|
---|
| 124 | void GetBprime_advec(double* Bprime_advec, double* xyz_list, double* gauss_coord);
|
---|
[1676] | 125 | void GetB_artdiff(double* B_artdiff, double* xyz_list, double* gauss_coord);
|
---|
[483] | 126 | void CreateKMatrixMelting(Mat Kgg,void* inputs,int analysis_type,int sub_analysis_type);
|
---|
| 127 | void CreatePVectorThermal( Vec pg, void* vinputs,int analysis_type,int sub_analysis_type);
|
---|
| 128 | void CreatePVectorMelting( Vec pg, void* vinputs,int analysis_type,int sub_analysis_type);
|
---|
| 129 | void GetPhi(double* phi, double* epsilon, double viscosity);
|
---|
[2112] | 130 | double MassFlux(double* segment,double* ug);
|
---|
[3383] | 131 | /*}}}*/
|
---|
[358] | 132 |
|
---|
[394] | 133 |
|
---|
[1] | 134 | };
|
---|
| 135 | #endif /* _PENTA_H */
|
---|
[96] | 136 |
|
---|
| 137 |
|
---|