#include <PrjAirflowElements.hpp>
Public Member Functions | |
Constructors and Destructors | |
PlrGeneral () | |
Create a new object with default values. More... | |
PlrGeneral (int nr, int icon, std::string name, std::string desc) | |
Create a new object. More... | |
PlrGeneral (int nr, int icon, std::string name, std::string desc, double lam, double turb, double expt) | |
Create a new object. More... | |
PlrGeneral (int nr, int icon, std::string name, std::string desc, std::string lam, std::string turb, std::string expt) | |
Create a new object. More... | |
PlrGeneral (const PlrGeneral &other) | |
Create a new object from another object. More... | |
~PlrGeneral ()=default | |
Destroy the object. More... | |
Operators | |
PlrGeneral & | operator= (const PlrGeneral &other) |
Copy operator. More... | |
bool | operator== (const PlrGeneral &other) const |
Equality operator. More... | |
bool | operator!= (const PlrGeneral &other) const |
Inequality operator. More... | |
Input and Output | |
void | read (Reader &input) |
Read an object from a Reader. More... | |
void | readDetails (Reader &input) |
Read object details from a Reader. More... | |
std::string | write () override |
Write the object to a string. More... | |
Getters and Setters | |
int | nr () const override |
Returns the element number, in order from 1 to the number of airflow elements. More... | |
void | setNr (const int nr) override |
Sets the element number. More... | |
int | icon () const override |
Returns the icon used to represent flow path. More... | |
void | setIcon (const int icon) override |
Sets the icon used to represent flow path. More... | |
virtual std::string | dataType () const override=0 |
Returns the element data type. More... | |
std::string | name () const override |
Returns the element name. More... | |
void | setName (const std::string &name) override |
Sets the element name. More... | |
std::string | desc () const override |
Returns the element description. More... | |
void | setDesc (const std::string &desc) override |
Sets the element description. More... | |
double | lam () const |
Returns the laminar flow coefficient. More... | |
bool | setLam (const double lam) |
Sets the laminar flow coefficient. More... | |
bool | setLam (const std::string &lam) |
Sets the laminar flow coefficient. More... | |
double | turb () const |
Returns the turbulent flow coefficient. More... | |
bool | setTurb (const double turb) |
Sets the turbulent flow coefficient. More... | |
bool | setTurb (const std::string &turb) |
Sets the turbulent flow coefficient. More... | |
double | expt () const |
Returns the pressure exponent. More... | |
bool | setExpt (const double expt) |
Sets the pressure exponent. More... | |
bool | setExpt (const std::string &expt) |
Sets the pressure exponent. More... | |
Public Member Functions inherited from openstudio::contam::AirflowElement | |
virtual | ~AirflowElement ()=default |
Destroy the object. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from openstudio::contam::AirflowElement | |
static AirflowElementType | convertTag (const std::string &tag) |
Convert an input string into an airflow element type enum. More... | |
static AirflowElement * | readElement (Reader &input) |
Read an airflow element from a Reader object. More... | |
The PlrGeneral object is the base class for general power law elements.
openstudio::contam::PlrGeneral::PlrGeneral | ( | ) |
Create a new object with default values.
openstudio::contam::PlrGeneral::PlrGeneral | ( | int | nr, |
int | icon, | ||
std::string | name, | ||
std::string | desc | ||
) |
Create a new object.
openstudio::contam::PlrGeneral::PlrGeneral | ( | int | nr, |
int | icon, | ||
std::string | name, | ||
std::string | desc, | ||
double | lam, | ||
double | turb, | ||
double | expt | ||
) |
Create a new object.
openstudio::contam::PlrGeneral::PlrGeneral | ( | int | nr, |
int | icon, | ||
std::string | name, | ||
std::string | desc, | ||
std::string | lam, | ||
std::string | turb, | ||
std::string | expt | ||
) |
Create a new object.
openstudio::contam::PlrGeneral::PlrGeneral | ( | const PlrGeneral & | other | ) |
Create a new object from another object.
|
default |
Destroy the object.
|
overridepure virtual |
Returns the element data type.
Implements openstudio::contam::AirflowElement.
Implemented in openstudio::contam::PlrFcn, and openstudio::contam::PlrQcn.
|
overridevirtual |
Returns the element description.
Implements openstudio::contam::AirflowElement.
double openstudio::contam::PlrGeneral::expt | ( | ) | const |
Returns the pressure exponent.
|
overridevirtual |
Returns the icon used to represent flow path.
Implements openstudio::contam::AirflowElement.
double openstudio::contam::PlrGeneral::lam | ( | ) | const |
Returns the laminar flow coefficient.
|
overridevirtual |
Returns the element name.
Implements openstudio::contam::AirflowElement.
|
overridevirtual |
Returns the element number, in order from 1 to the number of airflow elements.
Implements openstudio::contam::AirflowElement.
bool openstudio::contam::PlrGeneral::operator!= | ( | const PlrGeneral & | other | ) | const |
Inequality operator.
PlrGeneral& openstudio::contam::PlrGeneral::operator= | ( | const PlrGeneral & | other | ) |
Copy operator.
bool openstudio::contam::PlrGeneral::operator== | ( | const PlrGeneral & | other | ) | const |
Equality operator.
void openstudio::contam::PlrGeneral::readDetails | ( | Reader & | input | ) |
Read object details from a Reader.
|
overridevirtual |
Sets the element description.
Implements openstudio::contam::AirflowElement.
bool openstudio::contam::PlrGeneral::setExpt | ( | const double | expt | ) |
Sets the pressure exponent.
bool openstudio::contam::PlrGeneral::setExpt | ( | const std::string & | expt | ) |
Sets the pressure exponent.
|
overridevirtual |
Sets the icon used to represent flow path.
Implements openstudio::contam::AirflowElement.
bool openstudio::contam::PlrGeneral::setLam | ( | const double | lam | ) |
Sets the laminar flow coefficient.
bool openstudio::contam::PlrGeneral::setLam | ( | const std::string & | lam | ) |
Sets the laminar flow coefficient.
|
overridevirtual |
Sets the element name.
Implements openstudio::contam::AirflowElement.
|
overridevirtual |
Sets the element number.
This should only be done with care.
Implements openstudio::contam::AirflowElement.
bool openstudio::contam::PlrGeneral::setTurb | ( | const double | turb | ) |
Sets the turbulent flow coefficient.
bool openstudio::contam::PlrGeneral::setTurb | ( | const std::string & | turb | ) |
Sets the turbulent flow coefficient.
double openstudio::contam::PlrGeneral::turb | ( | ) | const |
Returns the turbulent flow coefficient.
|
overridevirtual |
Write the object to a string.
Implements openstudio::contam::AirflowElement.