Itasca C++ Interface
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
ibodythermal.h
1 #pragma once
2 // ibodythermal.h
3 
4 // Interface for functionality of all thermal bodies.
5 
6 namespace itascaxd {
7  class IBody;
8  class IPieceThermal;
9 
10  class IBodyThermal {
11  public:
13  inline static const TType type_ = 0x4f6358d0;
15  virtual const IBody *getIBody() const=0;
17  virtual IBody *getIBody()=0;
19  virtual IBody *getBodyMech()=0;
21  virtual const IBody *getBodyMech() const=0;
23  virtual QVariant getPieceProperty(const QString &name,const IPiece *p=0) const=0;
25  virtual double getTemperature() const=0;
27  virtual double getSpecificHeat() const=0;
29  virtual double getExpCoef() const=0;
31  virtual double getAppliedPower() const=0;
33  virtual bool getFix() const=0;
35  virtual QString getFixLabel() const=0;
37  virtual double getTempInc() const=0;
39  virtual double getPower() const=0;
40 
42  virtual bool setPieceProperty(const QString &name,const QVariant &v,IPiece *p=0) =0;
44  virtual void setTemperature(const double &d) =0;
46  virtual void setSpecificHeat(const double &d) =0;
48  virtual void setExpCoef(const double &d) =0;
50  virtual void setAppliedPower(const double &d) =0;
52  virtual void setFix(bool b) =0;
54  virtual void setTempInc(const double &d) =0;
56  virtual void setPower(const double &d) =0;
57 
58  };
59 } // namespace itascaxd
60 
61 // EoF
virtual const IBody * getIBody() const =0
Return the IBody pointer.
virtual double getPower() const =0
Return the out-of-balance power after last thermal step.
virtual double getTemperature() const =0
Return the temperature.
virtual void setTemperature(const double &d)=0
Set the temperature.
virtual bool getFix() const =0
Return the temperature fixity flag.
virtual void setSpecificHeat(const double &d)=0
Set the specific heat at constant volume.
virtual double getTempInc() const =0
Return the temperature increment during last thermal step.
virtual void setPower(const double &d)=0
Set the out-of-balance power.
virtual void setExpCoef(const double &d)=0
Set the coefficient of linear expansion.
Definition: ipiece.h:15
unsigned int TType
class type indicator
Definition: basedef.h:41
virtual void setTempInc(const double &d)=0
Set the temperature increment.
virtual QVariant getPieceProperty(const QString &name, const IPiece *p=0) const =0
Return the property of the piece.
static const TType type_
The type identification number for this class, for use in convert_cast() and convert_getcast().
Definition: ibodythermal.h:13
virtual double getExpCoef() const =0
Return the coefficient of linear expansion.
virtual void setAppliedPower(const double &d)=0
Set the applied power.
Itasca Library standard namespace, specific to 2D or 3D.
Definition: icontactmodule.h:4
virtual double getAppliedPower() const =0
Return the applied power.
virtual void setFix(bool b)=0
Set the temperature fixity flag.
virtual bool setPieceProperty(const QString &name, const QVariant &v, IPiece *p=0)=0
Set the property name.
virtual IBody * getBodyMech()=0
Return the IBody pointer of the mechanical body.
Definition: ibody.h:20
virtual QString getFixLabel() const =0
Return the fixity label.
Definition: ibodythermal.h:10
virtual double getSpecificHeat() const =0
Return the specific heat at constant volume.