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 QString 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;
173 virtual std::vector<uint32> getFaceExtraIndices(uint32 side) const=0;
175 virtual const fish::IParameter *getFaceExtra(uint32 side,uint32 index) const=0;
178 virtual void setFaceExtra(uint32 side,uint32 index,const fish::IParameter &p)=0;
180 virtual bool getFaceHidden(uint32 side) const=0;
182 virtual bool setFaceHidden(uint32 side,bool b)=0;
184 virtual bool getFaceSelected(uint32 side) const=0;
186 virtual bool setFaceSelected(uint32 side,bool b)=0;
188 virtual bool isFaceInRange(uint32 side,const IRange *range) const=0;
190 virtual double getDensity() const=0;
192 virtual double getWetDensity() const=0;
194 virtual void setDensity(const double &d)=0;
196 //virtual double getFluidDensity() const=0;
198 virtual Code getCode() const=0;
201 virtual double getAspectTest() const=0;
204 virtual double getAspectTetTest() const=0;
206 virtual void copyState(const IZone *zone)=0;
208 virtual DVect getThermalFlux() const=0; // jkf: should be const
211 virtual int getFace(const FaceID &fid) const=0;
224 enum class StrainMode { ShearRate=1, ShearInc=2, VolRate=3, VolInc=4, FullRate=5, FullInc=6, FullRotRate=7, FullRotInc=8 };
225 virtual double getSSR(StrainMode mode,SymTensor *fsr) const=0;
226 virtual SymTensor getTetStrainRate(int overlay,int number) const=0;
227 virtual SymTensor getTetStrainIncrement(int overlay,int number) const=0;
228 virtual SymTensor getStrainRate() const=0;
229 virtual SymTensor getStrainIncrement() const=0;
231 virtual string getIsDegenerate() const =0;
233 virtual string getSupports2Overlays() const =0;
234 virtual string getCheckGeom() const = 0;
236 virtual const ITet * getOverlay(uint32 ov) const=0;
238 virtual ITet * getOverlay(uint32 ov)=0;
240 virtual const IHysDamp * getHysDamp() const=0;
242 virtual IHysDamp * getHysDamp() =0;
243 virtual IHysDamp * setHysDamp() =0;
244
246 virtual int initializeModels()=0;
247 virtual bool isNull() const=0;
248 virtual bool isMechActive() const=0; // false if NULL *or* if constitutive model is inActive
249 virtual bool isFluidActive() const=0; // false if NULL *or* if constitutive model is inActive
250 virtual bool isThermActive() const=0; // false if NULL *or* if constitutive model is inActive
252 virtual string getModelName() const=0;
253 virtual const models::ConstitutiveModel *getModel() const=0;
256 virtual void setModelName(const string &qs,bool updateFlags=true) =0;
258 virtual double getSmallestNormalizedTetVolume(bool deformed=false) const=0;
259#ifdef THREED
264 virtual double getQualityTest(int iTestNum) const=0;
266 virtual double getPlanarity() const=0;
267#endif
269 virtual int getNumTets() const =0;
271 virtual double getOrthoTest() const=0;
273 virtual double getVolumeTest() const=0;
275 virtual double getZoneCondition(int i=0) const=0;
276#ifdef TWOD
278 virtual bool getBadZoneExtruder() const=0;
279#endif
281 virtual double getAvgPP() const=0;
282 //virtual double getAvgSaturation() const=0;
285 virtual base::Property getProperty(const string &sc) const =0;
286 virtual base::Property getProperty(uint32 index) const=0;
289 virtual bool setProperty(const string &sc,const base::Property &v) =0;
290 virtual bool setProperty(int index,const base::Property &v) =0;
293 virtual double getVolumeD(bool deformed) const=0;
294 virtual double getVolume() const=0;
296 virtual DVect getCentroid() const=0;
298 virtual SymTensor getAveStress(bool effective=false) const=0;
300 virtual double getAvgTemp() const=0;
302 virtual DVect getFlowVector() const=0;
308 virtual uint32 getAvgState(int *piNum, bool bAvgKeyword, bool noPast=false) const=0;
311 virtual string getStateName(uint32 bit) const=0;
320 virtual void setStress(const double &val,uint32 pn)=0;
322 virtual void setStress(const SymTensor &sym)=0;
325 virtual void setState(uint32 state)=0;
330 virtual void getTetGridPoints(int iOverlay, int iTet, IGp *gplist[]) =0;
332 virtual const IThermZone * getIThermZone() const=0;
334 virtual IThermZone * getIThermZone() =0;
336 virtual StringList getPropertyNames() const=0;
339 virtual uint32 getPropertyIndex(const string &sc) const=0;
342 virtual string getPropertyName(uint32 index) const=0;
345 virtual bool getBit(int bit) const=0;
350 virtual void setBit(int bit,bool b) const=0;
353 virtual QVariant getValue(int index) const=0;
357 virtual void setValue(int index,const QVariant &v) const=0;
359 virtual const IFluidZone * getIFluidZone() const=0;
361 virtual IFluidZone * getIFluidZone() =0;
363 virtual const IDynZone * getIDynZone() const=0;
365 virtual IDynZone * getIDynZone() =0;
368 virtual IZone * getLinkZone(uint32 index)=0;
369 virtual const IZone * getLinkZone(uint32 index) const=0;
373 virtual uint32 getLinkIndex(uint32 index) const=0;
374
379 virtual bool fishIO(bool save,fish::File *pnt)=0;
384 virtual double getStrengthStressRatio(const SymTensor &s) const=0;
389 //virtual QString applyBoundaryCondition(uint32 face,QString item,QString options,const double &val)=0;
390
392 virtual double getWPVol() const =0;
394 virtual void setWPVol(const double &dwpv)=0;
396 virtual double getWPShear() const=0;
398 virtual void setWPShear(const double &dwps)=0;
400 virtual double getWPTotal() const=0;
402 virtual double getWEVol() const =0;
404 virtual void setWEVol(const double &dwpv)=0;
406 virtual double getWEShear() const=0;
408 virtual void setWEShear(const double &dwps)=0;
410 virtual double getWETotal() const=0;
411 virtual string getFluidModel() const=0;
415 virtual base::Property getFluidProp(const string &name,bool exception) const =0;
416 virtual int getFluidPropIndex(const string &name) const=0;
417 virtual base::Property getFluidProp(uint32 index) const=0;
419 virtual void setFluidProp(const string &name,const base::Property &val)=0;
420 virtual void setFluidProp(uint32 index, const base::Property &val)=0;
423 virtual void setThermModel(const string &name)=0;
427 virtual string getThermModel(bool exception) const=0;
429 virtual base::Property getThermProp(const string &name,bool exception) const =0;
430 virtual uint32 getThermPropIndex(const string &name) const=0;
431 virtual base::Property getThermProp(uint32 index) const=0;
433 virtual void setThermProp(const string &name, const base::Property &prop)=0;
434 virtual void setThermProp(uint32 index, const base::Property &prop)=0;
435
437 //virtual StringList getPermeabilityProperties() const = 0;
439 //virtual string getPermeabilityModel(bool exception = true)const = 0;
441 //virtual base::Property getPermeabilityProp(uint32 index) const = 0;
443 //virtual void setPermeabilityProp(int index,const base::Property &val) = 0;
444
452 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
453 virtual bool checkZoneForPlot(bool removeHidden,bool showSelected,bool hideNull) const=0;
454
456 uint32 side_ = 0;
457 bool internalFaces_ = false; // Show ALL faces, not just surface faces.
458 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).
459 bool zoneFace_ = false; // If true, then being used for plot of faces (as opposed to a plot of zones).
460 bool onlySelectedFaces_ = false; // Only show selected faces (ignored if zoneFace_ is false).
461 };
462 struct FaceCheckOutput { // Filled out only if return value is true.
463 bool selected_ = false; // True if zone or face is selected (based on zoneFace_ flag).
464 uint64 id_ = 0; // ID number of zones
465 FArray<DVect> vertices_; // Vertices of zone face.
466
467 };
468 virtual bool checkFaceForPlot(const FaceCheckInput &inp,FaceCheckOutput *outp) const=0;
469 virtual bool checkFaceForPlotFace(uint32 side,uint64 *id,FArray<DVect> *vertices,bool excludeSelected=true) const=0;
470 virtual bool checkFaceForPlotFaceSelected(uint32 side,uint64 *id,FArray<DVect> *vertices) const=0;
471 virtual void fillZoneVertices(FArray<DVect> *vertices) const=0;
472 virtual void fillAllZoneFaces(FArray<FArray<DVect>> *allVertices,bool *selected,uint64 *id) const=0;
473 virtual int findFaceNormal(const DVect &v) const=0;
474 virtual double getMultiplier() const=0;
475 virtual bool CMSupportsHysDamp()const {return false;} ;
476
477 static const char *unassignedModelName() { return "unassigned"; }
478 };
479
480 inline size_t FaceID::hash(const FaceID& fid) {
481 size_t ret = std::hash<uint64>()(fid.id_[0]);
482 for (uint32 i = 1; i<size(); ++i)
483 ret ^= std::hash<uint64>()(fid.id_[i]);
484 return ret;
485 }
486
487 inline uint32 FaceID::replace(uint64 oldID, uint64 newID) {
488 uint32 count(0);
489 for (uint32 i = 0; i<size();++i) {
490 if (id_[i]==oldID) {
491 id_[i] = newID;
492 count++;
493 }
494 }
495 if (count)
496 sort();
497 return count;
498
499 }
500
501 void FaceID::sort() {
502 if (id_[1]>id_[0])
503 std::swap(id_[0], id_[1]);
504#ifdef THREED
505 if (id_[2]>id_[1]) {
506 std::swap(id_[2], id_[1]);
507 if (id_[1]>id_[0])
508 std::swap(id_[0], id_[1]);
509 }
510 if (id_[3]>id_[2]) {
511 std::swap(id_[3], id_[2]);
512 if (id_[2]>id_[1]) {
513 std::swap(id_[2], id_[1]);
514 if (id_[1]>id_[0])
515 std::swap(id_[0], id_[1]);
516 }
517 }
518#endif
519 }
520} // namespace zone
521namespace std {
522 template <> struct hash<zone::FaceID> {
523 size_t operator()(const zone::FaceID& fid) const { return zone::FaceID::hash(fid); }
524 };
525}
526// EoF
An array class that attempts to minimize unnecessary heap access.
Definition farray.h:25
Definition basestring.h:89
A symmetric 2nd order tensor.
Definition symtensor.h:22
Definition property.h:25
Definition iparameter.h:13
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:30
Interface to a filter, used as the main method for filtering objects.
Definition irange.h:32
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 dynamic zone data.
Definition idynzone.h:12
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 const IDynZone * getIDynZone() const =0
Returns a const pointer to the interface to access dynamic zone data.
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 void setValue(int index, const QVariant &v) const =0
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:224
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 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
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 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 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
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 QString getFaceGroupName(uint32 side, const ISlotID &slot=ISlotID()) const =0
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 IDynZone * getIDynZone()=0
Returns a pointer to the interface to access dynamic zone data.
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 QVariant getValue(int index) const =0
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:46
DVect3 DVect
Vector of doubles, either 2D or 3D.
Definition dim.h:154
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:199
Generic base class for the zone interface made available to the constitutive model system.
namespace Itasca
Definition basememory.cpp:10
Itasca Library standard namespace, specific to 2D or 3D.
Definition icontactmodule.h:4
The Constitutive Model interface library.
Definition conmodel.cpp:7
Definition izone.h:455
Definition izone.h:462
Definition izone.h:98