Itasca C++ Interface
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Classes | Public Types | Public Member Functions | List of all members
zone::IZoneList Class Referenceabstract

Interface for accessing the global list of zones, IZoneList. More...

#include <izonelist.h>

Classes

struct  FaceGroupCallbackData
 
struct  FaceSelectCallbackData
 

Public Types

typedef IModelList::ModelQueryInfo ModelQueryInfo
 

Public Member Functions

virtual const IThinggetIThing () const =0
 Returns a const pointer to an IThing interface representing the IZoneList.
 
virtual IThinggetIThing ()=0
 Returns a pointer to an IThing interface representing the IZoneList.
 
virtual const IContainergetIContainer () const =0
 Returns a const pointer to the IContainer.
 
virtual IContainergetIContainer ()=0
 Returns a pointer to the IContainer.
 
virtual const IZonegetFirstZone () const =0
 Returns a const pointer to the first zone, IZone, in the list, or 0 if list is empty. More...
 
virtual IZonegetFirstZone ()=0
 Returns a pointer to the first zone, IZone, in the list, or 0 if list is empty. More...
 
virtual quint32 getZoneType () const =0
 Returns const pointer to the first character of the string retaining the type of zone.
 
virtual quint32 getFaceType () const =0
 Returns const pointer to the first character of the string retaining the type of face.
 
virtual const IZonefindZoneWithID (quint64 id) const =0
 Returns a const pointer to the zone, IZone, with the ID id, or 0 if the zone does not exist.
 
virtual IZonefindZoneWithID (quint64 id)=0
 Returns a pointer to the zone, IZone, with the ID id, or 0 if the zone does not exist.
 
virtual const IZonefindZoneNearest (const DVect &vec, const double &radius=limits< double >::max()) const =0
 
virtual IZonefindZoneNearest (const DVect &vec, const double &radius=limits< double >::max())=0
 
virtual quint64 getNZone () const =0
 Returns the total number of zone in the model.
 
virtual IZonefindZoneContaining (const DVect &v, bool bHideMechNull=false, bool bHideFluidNull=false, bool bHideThermNull=false) const =0
 
virtual IZonefindZoneNearestLive (const DVect &dv3, bool bMech, bool bFluid, bool bTherm, bool bOr)=0
 Returns a pointer to the zone closest to location dv3. More...
 
virtual uint getZoneExtraNotice () const =0
 Returns the tag for the zone extra variable change notice.
 
virtual uint getModelNotice () const =0
 Returns the tag for the zone model change notice.
 
virtual uint getPropertyNotice () const =0
 Returns the tag for the zone property change notice.
 
virtual uint getStateNotice () const =0
 Returns the tag for the zone state change notice.
 
virtual uint getDensityNotice () const =0
 Returns the tag for the zone density change notice.
 
virtual uint getGroupNotice () const =0
 Returns the tag for the zone group change notice.
 
virtual uint getStressNotice () const =0
 Returns the tag for the zone stress state change notice.
 
virtual uint getSpecificDischargeNotice () const =0
 Returns the tag for the zone specific discharge change notice.
 
virtual uint getThermalFluxNotice () const =0
 Returns the tag for the zone thermal flux change notice.
 
virtual uint getFaceGroupNotice () const =0
 Returns the tag for the zone group change notice.
 
virtual uint getFaceExtraNotice () const =0
 Returns the tag for the zone extra FISH variable change notice.
 
virtual uint getHideNotice () const =0
 Returns the tag for zone hide status.
 
virtual uint getSelectNotice () const =0
 REturns the tag for zone select status.
 
virtual uint getFaceHideNotice () const =0
 Returns the tag for face hide status.
 
virtual uint getFaceSelectNotice () const =0
 Returns the tag for face select status.
 
virtual uint getMultiplierNotice () const =0
 
virtual uint getFluidDensityNotice () const =0
 
virtual quint64 getNumberFacesHidden () const =0
 Returns the total number of faces (surface or otherwise) that are hidden.
 
virtual quint64 getNumberFacesSelected () const =0
 Returns the total number of faces (surface or otherwise) that are selected.
 
virtual std::set< const IGroup * > getFaceGroupsForSlot (const ISlotID &slot) const =0
 Returns the total number of faces considered VISIBLE, either by mechanical surface or on visible mechanical zones. More...
 
virtual int claimBit () const =0
 Claims a bit from the zones utility bit field. More...
 
virtual void releaseBit (int bit) const =0
 Releases a bit index previously obtained with claimBit(). Thread-safe.
 
virtual int claimValue () const =0
 Claims a bit from the zones utility value array. More...
 
virtual void releaseValue (int bit) const =0
 Releases a value index back to the zones utility value array. Thread-safe.
 
virtual IZoneDatacreateIZoneData (QObject *parent=0) const =0
 
virtual QStringList getAllMechanicalModels () const =0
 Returns a QStringList containing all unique mechanical constitutive models in all zones (null excluded).
 
virtual QStringList getAllMechanicalProperties () const =0
 Returns a QStringList containing all unique property names of all mechanical constitutive models in all zones in the model.
 
virtual ModelQueryInfo getModelQueryOnSelected () const =0
 
virtual const IFacemakeFace (const IZone *z, quint32 side) const =0
 
virtual IFacemakeFace (IZone *z, quint32 side)=0
 
virtual itascaxd::IFetchPropertymakeFetchProperty (const QString &prop) const =0
 
virtual IFetchThermalPropertymakeFetchThermalProperty (const QString &prop) const =0
 
virtual IFetchFluidPropertymakeFetchFluidProperty (const QString &prop) const =0
 
virtual QPair< IZone *, quint32 > findIFace (const DVect &base, const DVect &dir, bool useHiddenZones=false, bool groupedFacesOnly=false, const ISlotID &slot=ISlotID(), bool useHiddenFaces=false)=0
 
virtual QString getZoneGroupsOnSides (std::set< IGroupID > *zf1GroupList, std::set< IGroupID > *zf2GroupList) const =0
 
virtual void threadedCallbackObject (Callback4< void, const IZone *, quint32, quint32, void * > &callback, void *v=nullptr, bool useThreads=true) const =0
 
virtual void threadedCallbackFunction (void(*function)(const IZone *, quint32, quint32, void *), void *v=nullptr, bool useThreads=true) const =0
 
template<class S , void(S::*)(const IZone *, quint32, quint32, void *) MFP>
void threadedCallbackMethod (S *s, void *v=nullptr, bool useThreads=true) const
 
virtual void threadedCallbackObjectFaceGroups (Callback3< void, const FaceGroupCallbackData *, quint32, quint32 > &callback, bool useThreads=true) const =0
 
template<class S , void(S::*)(const FaceGroupCallbackData *, quint32, quint32) MFP>
void threadedCallbackMethodFaceGroups (S *s, bool useThreads=true) const
 
virtual void threadedCallbackObjectFaceSelect (Callback3< void, const FaceSelectCallbackData *, quint32, quint32 > &callback, bool useThreads=true) const =0
 
template<class S , void(S::*)(const FaceSelectCallbackData *, quint32, quint32) MFP>
void threadedCallbackMethodFaceSelect (S *s, bool useThreads=true) const
 

Detailed Description

Interface for accessing the global list of zones, IZoneList.

Member Function Documentation

◆ claimBit()

virtual int zone::IZoneList::claimBit ( ) const
pure virtual

Claims a bit from the zones utility bit field.

It is sometimes useful to be able to store flags and data in a zone during calculations unrelated to the actual model cycling logic.
Two utility arrays are available for this purpose, they are primarily intended to be briefly claimed, used, and then released for back for use in other algorithms.
claimBit() returns a bit index that can be used with the IZone::getBit() and IZone::setBit() functions. This function is thread-safe (IZone::getBit and IZone::setBit are not).

See also
releaseBit() IZone::setBit() IZone::getBit()

◆ claimValue()

virtual int zone::IZoneList::claimValue ( ) const
pure virtual

Claims a bit from the zones utility value array.

It is sometimes useful to be able to store flags and data in a zone during calculations unrelated to the actual model cycling logic.
Two utility arrays are available for this purpose, they are primarily intended to be briefly claimed, used, and then released for back for use in other algorithms.
claimValue() returns a value index that can be used with the IZone::getValue() and IZone::setValue() functions. This function is thread-safe (IZone::getValue and IZone::setValue are not).

See also
releaseBit() IZone::setValue() IZone::getValue()

◆ createIZoneData()

virtual IZoneData* zone::IZoneList::createIZoneData ( QObject *  parent = 0) const
pure virtual

Returns the pointer to IZoneData. This pointer must be destroyed. The IZoneData object can be used to retrieve scalar data from a zone.

◆ findZoneContaining()

virtual IZone* zone::IZoneList::findZoneContaining ( const DVect v,
bool  bHideMechNull = false,
bool  bHideFluidNull = false,
bool  bHideThermNull = false 
) const
pure virtual

Returns a pointer to the zone, IZone, containing the location vec , or 0 if the zone does not exist. bHideMechNull indicates that zones with a null mechanical model should be ignored. bHideFluidNull indicates that zones with a null fluid model should be ignored. bHideThermNull indicates that zones with a null thermal model should be ignored.

◆ findZoneNearest() [1/2]

virtual const IZone* zone::IZoneList::findZoneNearest ( const DVect vec,
const double &  radius = limits< double >::max() 
) const
pure virtual

Returns a const pointer to the zone, IZone, whose centroid is the closest to the location vec , or 0 if the zone does not exist.

◆ findZoneNearest() [2/2]

virtual IZone* zone::IZoneList::findZoneNearest ( const DVect vec,
const double &  radius = limits< double >::max() 
)
pure virtual

Returns a pointer to the zone, IZone, whose centroid is the closest to the location in vec , or 0 if the zone does not exist.

◆ findZoneNearestLive()

virtual IZone* zone::IZoneList::findZoneNearestLive ( const DVect dv3,
bool  bMech,
bool  bFluid,
bool  bTherm,
bool  bOr 
)
pure virtual

Returns a pointer to the zone closest to location dv3.

Parameters bMech, bFluid and bTherm are used to returns a zone that has a live mechanical, fluid and\or thermal model.
Parameter bOr affects the interaction of parameters bMech, bFluid and bTherm: true = Union, false = Intersection
If the criteria is not met, the function returns 0.

◆ getFaceGroupsForSlot()

virtual std::set<const IGroup *> zone::IZoneList::getFaceGroupsForSlot ( const ISlotID slot) const
pure virtual

Returns the total number of faces considered VISIBLE, either by mechanical surface or on visible mechanical zones.

Return all the groups assigned to faces in the specified slot

◆ getFirstZone() [1/2]

virtual const IZone* zone::IZoneList::getFirstZone ( ) const
pure virtual

Returns a const pointer to the first zone, IZone, in the list, or 0 if list is empty.

Use in conjunction with IZone::getNext()

◆ getFirstZone() [2/2]

virtual IZone* zone::IZoneList::getFirstZone ( )
pure virtual

Returns a pointer to the first zone, IZone, in the list, or 0 if list is empty.

Use in conjunction with IZone::getNext()

◆ makeFace() [1/2]

virtual const IFace* zone::IZoneList::makeFace ( const IZone z,
quint32  side 
) const
pure virtual

Returns an IFace object representing face side of zone z. Created from the heap, must be deleted by the user with the destroy() method.

◆ makeFace() [2/2]

virtual IFace* zone::IZoneList::makeFace ( IZone z,
quint32  side 
)
pure virtual

Returns an IFace object representing face side of zone z. Created from the heap, must be deleted by the user with the destroy() method.


The documentation for this class was generated from the following file: