Itasca C++ Interface
Loading...
Searching...
No Matches
izone.h
Go to the documentation of this file.
1// izone.h
2#pragma once
3
10#include "utility/interface/igroup.h"
12#include "base/src/farray.h"
13#include "base/src/property.h"
14
15namespace itasca {
16 class IThing;
17 class IFish;
18}
19namespace itascaxd {
20 class Parse;
21 class IRange;
22}
23namespace models {
24 class ConstitutiveModel;
25}
26namespace fish {
27 class File;
28 class IParameter;
29}
30namespace zone {
31 using namespace itasca;
32 using namespace itascaxd;
33
34 static const uint32 ulNumZoneType = dimval(2,5); // number of zone types: 2 in 2D, 5 in 3D
35 static const uint32 numTperOv_ = dimval(2,5); // number of tets/triangles per zone: 2 in 2D, 5 in 3D
36 static const uint32 numGPperZ_ = dimval(4,8); // max number of gridpoints per zone in 2D/3D
37 static const uint32 numGPperT_ = dimval(3,4); // number of gridpoint per triangle (2D) / tetra (3D)
38 static const uint32 numAdjZones_ = dimval(4,6); // max number of adjoint zones to a zone in 2D/3D
39 static const uint32 numFacesZ_ = dimval(4,6); // max number of faces per zones in 2D/3D; in 2D a face is the edge of a quad or triangle
40 static const uint32 numGPperFace_ = dimval(2,4); // max number of gripoints per face in 2D/3D; in 2D a face is the edge of a quad or triangle
41 static const uint32 minGPperFace_ = dimval(2,3); // min number of GP that define face in 2D/3D
42 static const uint32 numEdgeZ_ = dimval(4,12); // max number of edges per zone in 2D/3D
43
44 class IGp;
45 class IFace;
46 class ITet;
47 class IHysDamp;
48 class IThermZone;
49 class IFluidZone;
50 //class IDynZone;
51
55 class FaceID {
56 public:
57 static constexpr uint32 size() { return numGPperFace_; }
58
59 FaceID() { std::fill(id_.begin(), id_.end(), 0); }
60 FaceID(const FaceID &fid) : id_(fid.id_) {} // We assume already sorted
61 FaceID(const std::array<uint64, numGPperFace_>& id) : id_(id) { sort(); }
62
63 inline const FaceID& operator=(const FaceID& id) { id_ = id.id_; return *this; }
64 inline bool operator==(const FaceID &id) const { return id_==id.id_; }
65 inline bool operator!=(const FaceID &id) const { return !operator==(id); }
66 inline bool operator<(const FaceID& id) const { return id_<id.id_; }
67 inline uint64 &operator[](uint32 index) { return id_[index]; }
68 inline const uint64 &operator[](uint32 index) const { return id_[index]; }
69 inline uint32 replace(uint64 oldID, uint64 newID);
70 inline void sort(); // Entures id numbers organized from highest to lowest.
71
72 static inline size_t hash(const FaceID &fid);
73
74 private:
75 std::array<uint64, numGPperFace_> id_;
76 };
77
80 class IZone : public models::IGenericZone {
81 public:
83 inline static const TType type_ = 0x4c815bf8;
84 enum class Change { Null, AddToList, RemoveFromList, Active };
86 enum class Code {
87#ifdef THREED
88 Brick=0,
89 Wedge,
90 Pyramid,
91 DBrick,
92 Tetra
93#else
94 Quad = 0,
95 Tria
96#endif
97 };
98 struct IFacePair {
99 const IZone *zone_=nullptr;
100 uint32 side_=0;
101 };
102
104 const IThing * getIThing() const override =0;
106 IThing * getIThing() override =0;
109 virtual const IZone * getNext() const=0;
112 virtual IZone * getNext()=0;
114 virtual uint32 getNumGp() const=0;
116 virtual uint32 getNumFace() const=0;
119 virtual const IGp * getGp(uint32 index) const=0;
122 virtual uint32 getFaceSize(uint32 face) const=0;
126 virtual const IGp * getFaceGp(uint32 face,uint32 index) const=0;
130 virtual uint32 getFaceGpIndex(uint32 face,uint32 index) const=0;
134 virtual uint32 getEdgeGpIndex(uint32 edge, uint32 index) const=0;
135
136 virtual FaceID getFaceID(uint32 side) const=0;
137
141 //virtual uint32 getFaceOnEdge(uint32 edge, uint32 index) const=0;
142
145 virtual DVect getFaceNormal(uint32 face,bool normalize) const=0;
148 virtual DVect getFaceCentroid(uint32 face) const=0;
151 virtual const IZone * getJoin(uint32 face) const=0;
152 // Face Group support
154 virtual const IGroup * getFaceGroup(uint32 side,const ISlotID &slot=ISlotID((uint32)0)) const=0;
158 virtual string getFaceGroupName(uint32 side,const ISlotID &slot=ISlotID()) const=0;
161 virtual bool addFaceGroup(uint32 side,const IGroupID &group)=0;
163 virtual bool removeFaceGroup(uint32 side,const IGroupID &group)=0;
166 virtual uint32 isFaceInGroup(uint32 side,const FArray<IGroupID> &ids,TType type=0,bool only=false) const=0;
168 virtual uint32 getFaceGroupList(uint32 side,FArray<IGroupID> *list) const=0;
170 virtual void copyFaceGroups(uint32 side,const IThing *t)=0;
171#ifdef TWOD
173 virtual void addSketchIdToFace(uint32 side, string str)=0;
174#endif
177 virtual std::vector<uint32> getFaceExtraIndices(uint32 side) const=0;
179 virtual const fish::IParameter *getFaceExtra(uint32 side,uint32 index) const=0;
182 virtual void setFaceExtra(uint32 side,uint32 index,const fish::IParameter &p)=0;
184 virtual bool getFaceHidden(uint32 side) const=0;
186 virtual bool setFaceHidden(uint32 side,bool b)=0;
188 virtual bool getFaceSelected(uint32 side) const=0;
190 virtual bool setFaceSelected(uint32 side,bool b)=0;
192 virtual bool isFaceInRange(uint32 side,const IRange *range) const=0;
194 virtual double getDensity() const=0;
196 virtual double getWetDensity() const=0;
198 virtual void setDensity(const double &d)=0;
200 //virtual double getFluidDensity() const=0;
202 virtual Code getCode() const=0;
205 virtual double getAspectTest() const=0;
208 virtual double getAspectTetTest() const=0;
210 virtual void copyState(const IZone *zone)=0;
212 virtual DVect getThermalFlux() const=0; // jkf: should be const
215 virtual int getFace(const FaceID &fid) const=0;
228 enum class StrainMode { ShearRate=1, ShearInc=2, VolRate=3, VolInc=4, FullRate=5, FullInc=6, FullRotRate=7, FullRotInc=8 };
229 virtual double getSSR(StrainMode mode,SymTensor *fsr) const=0;
230 virtual SymTensor getTetStrainRate(int overlay,int number) const=0;
231 virtual SymTensor getTetStrainIncrement(int overlay,int number) const=0;
232 virtual SymTensor getStrainRate() const=0;
233 virtual SymTensor getStrainIncrement() const=0;
235 virtual string getIsDegenerate() const =0;
237 virtual string getSupports2Overlays() const =0;
238 virtual string getCheckGeom() const = 0;
240 virtual const ITet * getOverlay(uint32 ov) const=0;
242 virtual ITet * getOverlay(uint32 ov)=0;
244 virtual const IHysDamp * getHysDamp() const=0;
246 virtual IHysDamp * getHysDamp() =0;
247 virtual IHysDamp * setHysDamp() =0;
248
250 virtual int initializeModels()=0;
251 virtual bool isNull() const=0;
253 virtual string getModelName() const=0;
254 virtual const models::ConstitutiveModel *getModel() const=0;
257 virtual void setModelName(const string &qs,bool updateFlags=true) =0;
259 virtual double getSmallestNormalizedTetVolume(bool deformed=false) const=0;
260#ifdef THREED
265 virtual double getQualityTest(int iTestNum) const=0;
267 virtual double getPlanarity() const=0;
268#endif
270 virtual int getNumTets() const =0;
272 virtual double getOrthoTest() const=0;
274 virtual double getVolumeTest() const=0;
276 virtual double getZoneCondition(int i=0) const=0;
277#ifdef TWOD
279 virtual bool getBadZoneExtruder() const=0;
280#endif
282 virtual double getAvgPP() const=0;
283 //virtual double getAvgSaturation() const=0;
286 virtual base::Property getProperty(const string &sc) const =0;
287 virtual base::Property getProperty(uint32 index) const=0;
290 virtual bool setProperty(const string &sc,const base::Property &v) =0;
291 virtual bool setProperty(int index,const base::Property &v) =0;
294 virtual double getVolumeD(bool deformed) const=0;
295 virtual double getVolume() const=0;
297 virtual DVect getCentroid() const=0;
299 virtual SymTensor getAveStress(bool effective=false) const=0;
301 virtual double getAvgTemp() const=0;
303 virtual DVect getFlowVector() const=0;
309 virtual uint32 getAvgState(int *piNum, bool bAvgKeyword, bool noPast=false) const=0;
312 virtual string getStateName(uint32 bit) const=0;
321 virtual void setStress(const double &val,uint32 pn)=0;
323 virtual void setStress(const SymTensor &sym)=0;
326 virtual void setState(uint32 state)=0;
331 virtual void getTetGridPoints(int iOverlay, int iTet, IGp *gplist[]) =0;
333 virtual const IThermZone * getIThermZone() const=0;
335 virtual IThermZone * getIThermZone() =0;
337 virtual StringList getPropertyNames() const=0;
340 virtual uint32 getPropertyIndex(const string &sc) const=0;
343 virtual string getPropertyName(uint32 index) const=0;
346 virtual bool getBit(int bit) const=0;
351 virtual void setBit(int bit,bool b) const=0;
354 virtual base::Property getValue(int index) const=0;
358 virtual void setValue(int index,const base::Property &v) const=0;
360 virtual const IFluidZone * getIFluidZone() const=0;
362 virtual IFluidZone * getIFluidZone() =0;
364 //virtual const IDynZone * getIDynZone() const=0;
366 //virtual IDynZone * getIDynZone() =0;
369 virtual IZone * getLinkZone(uint32 index)=0;
370 virtual const IZone * getLinkZone(uint32 index) const=0;
374 virtual uint32 getLinkIndex(uint32 index) const=0;
375
380 virtual bool fishIO(bool save,fish::File *pnt)=0;
385 virtual double getStrengthStressRatio(const SymTensor &s) const=0;
390 //virtual string applyBoundaryCondition(uint32 face,string item,string options,const double &val)=0;
391
393 virtual double getWPVol() const =0;
395 virtual void setWPVol(const double &dwpv)=0;
397 virtual double getWPShear() const=0;
399 virtual void setWPShear(const double &dwps)=0;
401 virtual double getWPTotal() const=0;
403 virtual double getWEVol() const =0;
405 virtual void setWEVol(const double &dwpv)=0;
407 virtual double getWEShear() const=0;
409 virtual void setWEShear(const double &dwps)=0;
411 virtual double getWETotal() const=0;
412 virtual string getFluidModel() const=0;
416 virtual base::Property getFluidProp(const string &name,bool exception) const =0;
417 virtual int getFluidPropIndex(const string &name) const=0;
418 virtual base::Property getFluidProp(uint32 index) const=0;
420 virtual void setFluidProp(const string &name,const base::Property &val)=0;
421 virtual void setFluidProp(uint32 index, const base::Property &val)=0;
424 virtual void setThermModel(const string &name)=0;
428 virtual string getThermModel(bool exception) const=0;
430 virtual base::Property getThermProp(const string &name,bool exception) const =0;
431 virtual uint32 getThermPropIndex(const string &name) const=0;
432 virtual base::Property getThermProp(uint32 index) const=0;
434 virtual void setThermProp(const string &name, const base::Property &prop)=0;
435 virtual void setThermProp(uint32 index, const base::Property &prop)=0;
436
438 //virtual StringList getPermeabilityProperties() const = 0;
440 //virtual string getPermeabilityModel(bool exception = true)const = 0;
442 //virtual base::Property getPermeabilityProp(uint32 index) const = 0;
444 //virtual void setPermeabilityProp(int index,const base::Property &val) = 0;
445
453 virtual bool isInZn(const DVect &dv,const double &relTol=1.0e-5, bool use2=false) const=0; // use same default epsilon factor as ZoneList::zoneIn function
454 virtual bool checkZoneForPlot(bool removeHidden,bool showSelected,bool hideNull) const=0;
455
457 uint32 side_ = 0;
458 bool internalFaces_ = false; // Show ALL faces, not just surface faces.
459 int bit_ = 0; // Used to check if a zone is in or out of the range of zones being considered (only if internalFace_ is false).
460 bool zoneFace_ = false; // If true, then being used for plot of faces (as opposed to a plot of zones).
461 bool onlySelectedFaces_ = false; // Only show selected faces (ignored if zoneFace_ is false).
462 };
463 struct FaceCheckOutput { // Filled out only if return value is true.
464 bool selected_ = false; // True if zone or face is selected (based on zoneFace_ flag).
465 uint64 id_ = 0; // ID number of zones
466 FArray<DVect> vertices_; // Vertices of zone face.
467
468 };
469 virtual bool checkFaceForPlot(const FaceCheckInput &inp,FaceCheckOutput *outp) const=0;
470 virtual bool checkFaceForPlotFace(uint32 side,uint64 *id,FArray<DVect> *vertices,bool excludeSelected=true) const=0;
471 virtual bool checkFaceForPlotFaceSelected(uint32 side,uint64 *id,FArray<DVect> *vertices) const=0;
472 virtual void fillZoneVertices(FArray<DVect> *vertices) const=0;
473 virtual void fillAllZoneFaces(FArray<FArray<DVect>> *allVertices,bool *selected,uint64 *id) const=0;
474 virtual int findFaceNormal(const DVect &v) const=0;
475 virtual double getMultiplier() const=0;
476 virtual bool CMSupportsHysDamp()const {return false;} ;
477
478 static const char *unassignedModelName() { return "unassigned"; }
479 };
480
481 inline size_t FaceID::hash(const FaceID& fid) {
482 size_t ret = std::hash<uint64>()(fid.id_[0]);
483 for (uint32 i = 1; i<size(); ++i)
484 ret ^= std::hash<uint64>()(fid.id_[i]);
485 return ret;
486 }
487
488 inline uint32 FaceID::replace(uint64 oldID, uint64 newID) {
489 uint32 count(0);
490 for (uint32 i = 0; i<size();++i) {
491 if (id_[i]==oldID) {
492 id_[i] = newID;
493 count++;
494 }
495 }
496 if (count)
497 sort();
498 return count;
499
500 }
501
502 void FaceID::sort() {
503 if (id_[1]>id_[0])
504 std::swap(id_[0], id_[1]);
505#ifdef THREED
506 if (id_[2]>id_[1]) {
507 std::swap(id_[2], id_[1]);
508 if (id_[1]>id_[0])
509 std::swap(id_[0], id_[1]);
510 }
511 if (id_[3]>id_[2]) {
512 std::swap(id_[3], id_[2]);
513 if (id_[2]>id_[1]) {
514 std::swap(id_[2], id_[1]);
515 if (id_[1]>id_[0])
516 std::swap(id_[0], id_[1]);
517 }
518 }
519#endif
520 }
521} // namespace zone
522namespace std {
523 template <> struct hash<zone::FaceID> {
524 size_t operator()(const zone::FaceID& fid) const { return zone::FaceID::hash(fid); }
525 };
526}
527// EoF
An array class that attempts to minimize unnecessary heap access.
Definition farray.h:25
Definition basestring.h:71
A symmetric 2nd order tensor.
Definition symtensor.h:22
Definition property.h:36
Definition iparameter.h:19
Interface to a group object.
Definition igroup.h:9
Definition igroup.h:82
Definition igroup.h:41
Base class for items that will be stored in containers.
Definition ithing.h:31
Interface to a filter, used as the main method for filtering objects.
Definition irange.h:31
The base class for constitutive model plug-ins.
Definition conmodel.h:32
Generic base class for the zone interface made available to the constitutive model system.
Definition igenericzone.h:23
Definition izone.h:55
Interface to access fluid zone data.
Definition ifluidzone.h:12
Interface to provide access to a gridpoint.
Definition igp.h:56
Interface to hysteretic damping.
Definition ihysdamp.h:13
Interface to one of the tetrahedra used to implement mixed-discretization in a zone.
Definition itet.h:26
Interface to access zone thermal data.
Definition ithermzone.h:14
Interface to provide access to a zone.
Definition izone.h:80
virtual int getNumTets() const =0
Returns the number of tetrahedrons in the zone.
virtual base::Property getProperty(const string &sc) const =0
virtual const ITet * getOverlay(uint32 ov) const =0
Returns a const pointer to the head of the list of tetrahedron, Itet, comprising the first overlay.
virtual double getAvgPP() const =0
Retrieves the average of the zone gridpoints pore pressures.
virtual void getTetGridPoints(int iOverlay, int iTet, IGp *gplist[])=0
virtual bool fishIO(bool save, fish::File *pnt)=0
virtual string getThermModel(bool exception) const =0
Returns the name of the zone thermal model.
virtual uint32 getNumGp() const =0
Returns the number of gridpoints used by the zone.
virtual const IZone * getNext() const =0
virtual uint32 getEdgeGpIndex(uint32 edge, uint32 index) const =0
virtual double getWPTotal() const =0
Returns the total shear plastic work dissipated (sum of getWPVol() and getWPShear()),...
virtual DVect getFlowVector() const =0
Returns the flow vector.
virtual bool getFaceSelected(uint32 side) const =0
Returns TRUE if that face of the zone is marked as selected.
virtual void setThermProp(const string &name, const base::Property &prop)=0
Sets the values of a given a thermal property name.
virtual bool setFaceHidden(uint32 side, bool b)=0
Sets the hidden condition of that face of the zone, returns true if the condition changed.
virtual double getZoneCondition(int i=0) const =0
Returns the condition of zone geometry.
virtual double getVolumeD(bool deformed) const =0
virtual bool setProperty(const string &sc, const base::Property &v)=0
virtual StringList getThermProperties() const =0
Returns the list of properties for the thermal model.
virtual string getModelName() const =0
Returns the name of the mechanical constitutive model present in the zone.
virtual StringList getPropertyNames() const =0
returns a list of all the valid properties of the current constitutive model assigned to this zone
virtual double getAspectTetTest() const =0
virtual void setFluidProp(const string &name, const base::Property &val)=0
Sets the values of a given a fluid property name.
virtual uint32 getFaceGpIndex(uint32 face, uint32 index) const =0
virtual int initializeModels()=0
Initialize all active models (Fluid, Thermal and mechanical). Returns 0 upon completion.
virtual void setBit(int bit, bool b) const =0
virtual void setState(uint32 state)=0
virtual bool isFaceInRange(uint32 side, const IRange *range) const =0
Returns TRUE if the FACE is considered in the range. Creates a temp Face class.
virtual uint32 getNumFace() const =0
Returns the number of faces used by the zone.
virtual const IFluidZone * getIFluidZone() const =0
Returns a const pointer to the interface to access fluid zone data.
virtual IFluidZone * getIFluidZone()=0
Returns a pointer to the interface to access fluid zone data.
virtual base::Property getFluidProp(const string &name, bool exception) const =0
Given a fluid property name, returns its value;.
virtual IHysDamp * getHysDamp()=0
Returns a const pointer to the Hysteretic Damping model, IHysDamp, or null if the zone does not suppo...
virtual bool getBit(int bit) const =0
virtual double getWEShear() const =0
Returns the total shear elastic work, see SET ENERGY command.
virtual string getSupports2Overlays() const =0
Returns true if the Zone supports two overlays.
virtual uint32 getAvgState(int *piNum, bool bAvgKeyword, bool noPast=false) const =0
Returns a mask filled with a state indicator for the zone.
IThing * getIThing() override=0
returns a IThing pointer
Code
Possible Zone types code.
Definition izone.h:86
StrainMode
Definition izone.h:228
virtual bool removeFaceGroup(uint32 side, const IGroupID &group)=0
Removes the association of a given group with face side.
virtual void setWEVol(const double &dwpv)=0
Sets the total volumetric elastic work, see SET ENERGY command.
virtual double getDensity() const =0
Returns the zone dry density.
const IThing * getIThing() const override=0
returns a const IThing pointer
virtual void setModelName(const string &qs, bool updateFlags=true)=0
virtual string getFaceGroupName(uint32 side, const ISlotID &slot=ISlotID()) const =0
virtual const IGp * getGp(uint32 index) const =0
virtual double getAvgTemp() const =0
Retrieves the average of the zone gridpoints temperatures.
virtual const IHysDamp * getHysDamp() const =0
Returns a const pointer to the Hysteretic Damping model, IHysDamp, or null if the zone does not suppo...
virtual StringList getFluidProperties() const =0
Returns the list of properties for the fluid model.
virtual bool addFaceGroup(uint32 side, const IGroupID &group)=0
virtual double getVolumeTest() const =0
Performs an volume test on the zone.
virtual const IZone * getLinkZone(uint32 index) const =0
Returns a const pointer to the interface to access dynamic zone data.
virtual const IGroup * getFaceGroup(uint32 side, const ISlotID &slot=ISlotID((uint32) 0)) const =0
Given a face side and a group slot, returns a const pointer to an IGroup.
virtual base::Property getValue(int index) const =0
virtual double getAspectTest() const =0
virtual std::vector< uint32 > getFaceExtraIndices(uint32 side) const =0
virtual double getWPShear() const =0
Returns the total shear plastic work dissipated, see SET ENERGY command.
static const TType type_
The type identification number for this class, for use in convert_cast() and convert_getcast().
Definition izone.h:83
virtual DVect getCentroid() const =0
Returns the location of the centroid of the zone.
virtual double getWetDensity() const =0
Returns the zone wet density.
virtual uint32 getFaceGroupList(uint32 side, FArray< IGroupID > *list) const =0
Return all groups and all slots assigned to the face in a list.
virtual IThermZone * getIThermZone()=0
returns a pointer to the zone thermal extension data
virtual DVect getFaceCentroid(uint32 face) const =0
virtual int getFace(const FaceID &fid) const =0
virtual DVect getFaceNormal(uint32 face, bool normalize) const =0
virtual uint32 getPropertyIndex(const string &sc) const =0
virtual void copyFaceGroups(uint32 side, const IThing *t)=0
Copy the groups in IThing object to face /side.
virtual bool setFaceSelected(uint32 side, bool b)=0
sets the selected condition of that face of the zone, returns true if the condition chagned.
virtual const IThermZone * getIThermZone() const =0
returns a constant pointer to the zone thermal extension data
virtual void copyState(const IZone *zone)=0
Copies the state information from zone zone to the current zone.
virtual Code getCode() const =0
Returns the zone fluid density.
virtual void setWPShear(const double &dwps)=0
Sets the total shear plastic work dissipated, see SET ENERGY command.
virtual void setThermModel(const string &name)=0
virtual void setValue(int index, const base::Property &v) const =0
virtual uint32 isFaceInGroup(uint32 side, const FArray< IGroupID > &ids, TType type=0, bool only=false) const =0
virtual double getWPVol() const =0
Returns the total volumetric plastic work dissipated, see SET ENERGY command.
virtual void setStress(const SymTensor &sym)=0
Assign the stress state in sym to the zone, overwriting every overlay tetrahedron.
virtual const IGp * getFaceGp(uint32 face, uint32 index) const =0
virtual IZone * getLinkZone(uint32 index)=0
Returns a const pointer to the interface to access dynamic zone data.
virtual bool getFaceHidden(uint32 side) const =0
Returns TRUE if that face of the zone is marked as hidden.
virtual string getIsDegenerate() const =0
Returns non-empty string if the zone is degenerate.
virtual void setWEShear(const double &dwps)=0
Sets the total shear elastic work, see SET ENERGY command.
virtual void setStress(const double &val, uint32 pn)=0
virtual void setWPVol(const double &dwpv)=0
Sets the total volumetric plastic work dissipated, see SET ENERGY command.
virtual double getOrthoTest() const =0
Performs an orthogonality test on the zone.
virtual base::Property getThermProp(const string &name, bool exception) const =0
Given a thermal property name, returns its value;.
virtual void setFaceExtra(uint32 side, uint32 index, const fish::IParameter &p)=0
virtual SymTensor getAveStress(bool effective=false) const =0
Computes the average of the overlays tetrahedron stress tensors.
virtual const fish::IParameter * getFaceExtra(uint32 side, uint32 index) const =0
Given an index, returns a const pointer to IFishParam associated with this face side.
virtual double getStrengthStressRatio(const SymTensor &s) const =0
virtual uint32 getFaceSize(uint32 face) const =0
virtual double getWEVol() const =0
Returns the total volumetric elastic work, see SET ENERGY command.
virtual string getStateName(uint32 bit) const =0
virtual const IZone * getJoin(uint32 face) const =0
virtual double getSmallestNormalizedTetVolume(bool deformed=false) const =0
Return the volume of the smallest tetrahedron in the overlays, normalized to the zone volume.
virtual IZone * getNext()=0
virtual void setDensity(const double &d)=0
Sets the zone density.
virtual ITet * getOverlay(uint32 ov)=0
Returns a pointer to the head of the list of tetrahedron, Itet, comprising the first overlay.
virtual uint32 getLinkIndex(uint32 index) const =0
virtual string getPropertyName(uint32 index) const =0
virtual DVect getThermalFlux() const =0
Returns the thermal flux vector in the Zone, or a null vector if the zone has not been configured for...
virtual bool isInZn(const DVect &dv, const double &relTol=1.0e-5, bool use2=false) const =0
virtual double getWETotal() const =0
Returns the total elastic work (sum of getWEVol() and getWEShear()), see SET ENERGY command.
DIM - Provides code portability between 2D and 3D codes.
An array class that attempts to minimize unnecessary heap access.
uint32 TType
class type indicator
Definition basedef.h:47
DVect3 DVect
Vector of doubles, either 2D or 3D.
Definition dim.h:156
constexpr const U & dimval(const T &, const U &val3)
Returns the first argument in a 2D compile, and the second in a 3D compile.
Definition dim.h:203
Generic base class for the zone interface made available to the constitutive model system.
namespace Itasca
Definition basememory.cpp:14
Itasca Library standard namespace, specific to 2D or 3D.
Definition icontactmodule.h:6
The Constitutive Model interface library.
Definition conmodel.cpp:7
Definition izone.h:456
Definition izone.h:463
Definition izone.h:98