Itasca C++ Interface
Loading...
Searching...
No Matches
imeasure.h
1#pragma once
2// imeasure.h
3
4
5namespace itasca {
6 class IThing;
7 class IGroup;
8}
9
10namespace itascaxd {
11}
12
13namespace pfc {
14 using namespace itasca;
15 using namespace itascaxd;
16
17 /* Measure Mask Defines */
18 static const uint32 MEAS_POROS = 0x000001; /* Porosity */
19 static const uint32 MEAS_COORD = 0x000002; /* Coordination number */
20 static const uint32 MEAS_STRESS = 0x000004; /* Stress Tensor */
21 static const uint32 MEAS_SRATE = 0x000008; /* Strain Rate Tensor */
22 static const uint32 MEAS_SIZE = 0x000010; /* Size distribution */
23
24 class IMeasure {
25 public:
26 inline static const TType type_ = 0x4c8f0e17;
27
28 virtual IThing * getIThing()=0;
29 virtual const IThing * getIThing() const=0;
30
31 virtual DVect getPosition() const=0;
32 virtual double getRadius() const=0;
33 virtual double getVolume() const=0;
34 virtual double getPorosity() const=0;
35 virtual double getCoordination() const=0;
36 virtual DMatrix<DIM,DIM> getStress() const=0;
37 virtual DMatrix<DIM,DIM> getSRate() const=0;
38 virtual QVector<QPair<double,double>> getSizeDist() const=0;
39
40 virtual void setPosition(const DVect &p)=0;
41 virtual void setRadius(const double &d)=0;
42
43 virtual bool setAttribute(const QString &name,const QVariant &v)=0;
44 virtual QVariant getAttribute(const QString &name) const=0;
45 virtual bool getAttributeSupportsValid(const QString &name) const=0;
46 virtual bool getAttributeValid(const QString &name) const=0;
47 virtual QStringList getAllAttributes() const=0;
48 virtual bool isAttribute(const QString &name) const=0;
49
50 };
51
52} // namespace pfc
53// EoF
54
DMatrix is a Matrix that defaults to type double...
Definition matrix.h:758
Base class for items that will be stored in containers.
Definition ithing.h:30
Definition imeasure.h:24
uint32 TType
class type indicator
Definition basedef.h:46
DVect3 DVect
Vector of doubles, either 2D or 3D.
Definition dim.h:154
namespace Itasca
Definition basememory.cpp:14
Itasca Library standard namespace, specific to 2D or 3D.
Definition icontactmodule.h:4
PFC namespace.
Definition iballfluid.h:15