source: issm/trunk/src/c/objects/Penta.h@ 3389

Last change on this file since 3389 was 3389, checked in by Eric.Larour, 15 years ago

Added copy constructor, and some debugging

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