| [3683] | 1 | /*!\file:  Element.h
 | 
|---|
 | 2 |  * \brief abstract class for Element object
 | 
|---|
 | 3 |  * This class is a place holder for the Tria and the Penta elements. 
 | 
|---|
 | 4 |  * It is derived from Element, so DataSets can contain them.
 | 
|---|
 | 5 |  */ 
 | 
|---|
 | 6 | 
 | 
|---|
 | 7 | 
 | 
|---|
 | 8 | #ifndef _ELEMENT_H_
 | 
|---|
 | 9 | #define _ELEMENT_H_
 | 
|---|
 | 10 | 
 | 
|---|
 | 11 | /*Headers:*/
 | 
|---|
 | 12 | /*{{{1*/
 | 
|---|
 | 13 | #include "../Object.h"
 | 
|---|
 | 14 | 
 | 
|---|
 | 15 | class DataSet;
 | 
|---|
 | 16 | class Parameters;
 | 
|---|
| [4039] | 17 | class Patch;
 | 
|---|
| [3683] | 18 | 
 | 
|---|
 | 19 | #include "../../toolkits/toolkits.h"
 | 
|---|
 | 20 | /*}}}*/
 | 
|---|
 | 21 | 
 | 
|---|
| [4244] | 22 | class Element: public Object,public Update{
 | 
|---|
| [3683] | 23 | 
 | 
|---|
 | 24 |         public: 
 | 
|---|
 | 25 |                 
 | 
|---|
 | 26 |                 virtual        ~Element(){};
 | 
|---|
| [4248] | 27 |         
 | 
|---|
| [4218] | 28 |                 virtual void   Configure(Elements* elements,Loads* loads,DataSet* nodes,Materials* materials,Parameters* parameters)=0;
 | 
|---|
| [4575] | 29 |                 virtual void   SetCurrentConfiguration(Elements* elements,Loads* loads,DataSet* nodes,Materials* materials,Parameters* parameters)=0;
 | 
|---|
| [8800] | 30 |                 virtual void   CreateKMatrix(Mat Kff, Mat Kfs,Vec df)=0;
 | 
|---|
 | 31 |                 virtual void   CreatePVector(Vec pf)=0;
 | 
|---|
| [4043] | 32 |                 virtual void   GetSolutionFromInputs(Vec solution)=0;
 | 
|---|
| [5719] | 33 |                 virtual int    GetNodeIndex(Node* node)=0;
 | 
|---|
| [7089] | 34 |                 virtual int    Sid()=0;
 | 
|---|
| [10143] | 35 |                 virtual bool   IsFloating()=0; 
 | 
|---|
| [7089] | 36 |                 virtual bool   IsNodeOnShelf()=0; 
 | 
|---|
| [7323] | 37 |                 virtual bool   IsNodeOnShelfFromFlags(double* flags)=0; 
 | 
|---|
| [5745] | 38 |                 virtual bool   IsOnBed()=0;
 | 
|---|
| [10135] | 39 |                 virtual void   GetInputListOnVertices(double* pvalue,int enumtype)=0;
 | 
|---|
 | 40 |                 virtual void   GetInputListOnVertices(double* pvalue,int enumtype,double defaultvalue)=0;
 | 
|---|
 | 41 |                 virtual void   GetInputValue(double* pvalue,Node* node,int enumtype)=0;
 | 
|---|
| [9817] | 42 |                 
 | 
|---|
| [4043] | 43 |                 virtual double SurfaceArea(void)=0;
 | 
|---|
| [4931] | 44 |                 virtual void   InputDepthAverageAtBase(int enum_type,int average_enum_type,int object_enum)=0;
 | 
|---|
| [4043] | 45 |                 virtual void   ComputeBasalStress(Vec sigma_b)=0;
 | 
|---|
 | 46 |                 virtual void   ComputeStrainRate(Vec eps)=0;
 | 
|---|
| [4039] | 47 |                 virtual void   PatchSize(int* pnumrows, int* pnumvertices,int* pnumnodes)=0;
 | 
|---|
 | 48 |                 virtual void   PatchFill(int* pcount, Patch* patch)=0;
 | 
|---|
| [9874] | 49 |                 virtual void   ListResultsEnums(int** results_enums,int* num_results)=0;
 | 
|---|
| [4873] | 50 |                 virtual void   DeleteResults(void)=0;
 | 
|---|
| [4025] | 51 |                 virtual void   Update(int index, IoModel* iomodel,int analysis_counter,int analysis_type)=0;
 | 
|---|
| [4039] | 52 |                 virtual void   InputToResult(int enum_type,int step,double time)=0;
 | 
|---|
| [8967] | 53 |                 virtual void   InputDuplicate(int original_enum,int new_enum)=0;
 | 
|---|
 | 54 |                 virtual void   InputCreate(double scalar,int name,int code)=0;
 | 
|---|
 | 55 |                 virtual void   InputCreate(double* vector, int index,IoModel* iomodel,int M,int N,int vector_type,int vector_enum,int code)=0;
 | 
|---|
| [9775] | 56 |                 virtual void   ProcessResultsUnits(void)=0;
 | 
|---|
| [9110] | 57 |                 virtual void   RequestedOutput(int output_enum,int step,double time)=0;
 | 
|---|
| [9817] | 58 |                 
 | 
|---|
| [4076] | 59 |                 virtual void   InputScale(int enum_type,double scale_factor)=0;
 | 
|---|
| [9874] | 60 |                 virtual void   GetVectorFromInputs(Vec vector, int name_enum)=0;
 | 
|---|
 | 61 |                 virtual void   GetVectorFromResults(Vec vector,int name_enum)=0;
 | 
|---|
| [5578] | 62 |                 virtual void   InputArtificialNoise(int enum_type,double min,double max)=0;
 | 
|---|
| [4880] | 63 |                 virtual bool   InputConvergence(double* eps, int* enums,int num_enums,int* criterionenums,double* criterionvalues,int num_criterionenums)=0;
 | 
|---|
| [5518] | 64 |                 virtual void   AverageOntoPartition(Vec partition_contributions,Vec partition_areas,double* vertex_response,double* qmu_part)=0;
 | 
|---|
| [7089] | 65 |                 virtual int*   GetHorizontalNeighboorSids(void)=0;
 | 
|---|
| [6130] | 66 |                 virtual double TimeAdapt()=0;
 | 
|---|
| [10377] | 67 |                 virtual void   MigrateGroundingLine(double* old_floating_ice,double* sheet_ungrounding)=0;
 | 
|---|
| [7323] | 68 |                 virtual void   PotentialSheetUngrounding(Vec potential_sheet_ungrounding)=0;
 | 
|---|
 | 69 |                 virtual int    UpdatePotentialSheetUngrounding(double* potential_sheet_ungrounding,Vec vec_nodes_on_iceshelf,double* nodes_on_iceshelf)=0;
 | 
|---|
| [10440] | 70 |                 virtual void   ResetCoordinateSystem()=0;
 | 
|---|
| [9817] | 71 | 
 | 
|---|
 | 72 |                 #ifdef _HAVE_RESPONSES_
 | 
|---|
 | 73 |                 virtual void   MinVel(double* pminvel, bool process_units)=0;
 | 
|---|
 | 74 |                 virtual void   MaxVel(double* pmaxvel, bool process_units)=0;
 | 
|---|
 | 75 |                 virtual void   MinVx(double* pminvx, bool process_units)=0;
 | 
|---|
 | 76 |                 virtual void   MaxVx(double* pmaxvx, bool process_units)=0;
 | 
|---|
 | 77 |                 virtual void   MaxAbsVx(double* pmaxabsvx, bool process_units)=0;
 | 
|---|
 | 78 |                 virtual void   MinVy(double* pminvy, bool process_units)=0;
 | 
|---|
 | 79 |                 virtual void   MaxVy(double* pmaxvy, bool process_units)=0;
 | 
|---|
 | 80 |                 virtual void   MaxAbsVy(double* pmaxabsvy, bool process_units)=0;
 | 
|---|
 | 81 |                 virtual void   MinVz(double* pminvz, bool process_units)=0;
 | 
|---|
 | 82 |                 virtual void   MaxVz(double* pmaxvz, bool process_units)=0;
 | 
|---|
 | 83 |                 virtual void   MaxAbsVz(double* pmaxabsvz, bool process_units)=0;
 | 
|---|
 | 84 |                 virtual double MassFlux(double* segment,bool process_units)=0;
 | 
|---|
| [10703] | 85 |                 virtual void   ElementResponse(double* presponse,int response_enum,bool process_units)=0;
 | 
|---|
| [9880] | 86 |                 virtual double IceVolume(void)=0;
 | 
|---|
| [9206] | 87 |                 virtual int    NodalValue(double* pvalue, int index, int natureofdataenum,bool process_units)=0;
 | 
|---|
| [9817] | 88 |                 #endif
 | 
|---|
| [4055] | 89 | 
 | 
|---|
| [9817] | 90 |                 #ifdef _HAVE_CONTROL_
 | 
|---|
 | 91 |                 virtual void   Gradj(Vec gradient,int control_type)=0;
 | 
|---|
 | 92 |                 virtual double ThicknessAbsMisfit(bool process_units  ,int weight_index)=0;
 | 
|---|
 | 93 |                 virtual double SurfaceAbsVelMisfit(bool process_units ,int weight_index)=0;
 | 
|---|
 | 94 |                 virtual double SurfaceRelVelMisfit(bool process_units ,int weight_index)=0;
 | 
|---|
 | 95 |                 virtual double SurfaceLogVelMisfit(bool process_units ,int weight_index)=0;
 | 
|---|
 | 96 |                 virtual double SurfaceLogVxVyMisfit(bool process_units,int weight_index)=0;
 | 
|---|
 | 97 |                 virtual double SurfaceAverageVelMisfit(bool process_units,int weight_index)=0;
 | 
|---|
 | 98 |                 virtual double ThicknessAbsGradient(bool process_units,int weight_index)=0;
 | 
|---|
 | 99 |                 virtual double RheologyBbarAbsGradient(bool process_units,int weight_index)=0;
 | 
|---|
 | 100 |                 virtual double DragCoefficientAbsGradient(bool process_units,int weight_index)=0;
 | 
|---|
 | 101 |                 virtual void   ControlInputGetGradient(Vec gradient,int enum_type)=0;
 | 
|---|
 | 102 |                 virtual void   ControlInputSetGradient(double* gradient,int enum_type)=0;
 | 
|---|
 | 103 |                 virtual void   ControlInputScaleGradient(int enum_type, double scale)=0;
 | 
|---|
 | 104 |                 virtual void   InputControlUpdate(double scalar,bool save_parameter)=0;
 | 
|---|
 | 105 |                 #endif
 | 
|---|
| [3683] | 106 | };
 | 
|---|
 | 107 | #endif
 | 
|---|