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