OpenStudio:airflow
Loading...
Searching...
No Matches
openstudio::contam::WeatherData Class Reference

#include <PrjSubobjects.hpp>

Public Member Functions

Constructors and Destructors
 WeatherData ()
 Create a new object with default values.
 
 WeatherData (std::string Tambt, std::string barpres, std::string windspd, std::string winddir, std::string relhum, int daytyp, int uTa, int ubP, int uws, int uwd)
 Create a new object.
 
 WeatherData (double Tambt, double barpres, double windspd, double winddir, double relhum, int daytyp, int uTa, int ubP, int uws, int uwd)
 Create a new object.
 
 WeatherData (const WeatherData &other)
 Create a new object from another object.
 
 ~WeatherData ()=default
 Destroy the object.
 
Operators
WeatherDataoperator= (const WeatherData &other)
 Copy operator.
 
bool operator== (const WeatherData &other) const
 Equality operator.
 
bool operator!= (const WeatherData &other) const
 Inequality operator.
 
Input and Output
void read (Reader &input)
 Read an object from a Reader.
 
std::string write ()
 Write the object to a string.
 
Getters and Setters
double Tambt () const
 Returns the ambient temperature [K].
 
bool setTambt (const double Tambt)
 Sets the ambient temperature [K].
 
bool setTambt (const std::string &Tambt)
 Sets the ambient temperature [K].
 
double barpres () const
 Returns the barometric pressure [Pa] NOT corrected to sea level.
 
bool setBarpres (const double barpres)
 Sets the barometric pressure [Pa] NOT corrected to sea level.
 
bool setBarpres (const std::string &barpres)
 Sets the barometric pressure [Pa] NOT corrected to sea level.
 
double windspd () const
 Returns the wind speed [m/s].
 
bool setWindspd (const double windspd)
 Sets the wind speed [m/s].
 
bool setWindspd (const std::string &windspd)
 Sets the wind speed [m/s].
 
double winddir () const
 Returns the wind direction: 0 = N, 90 = E, 180 = S, ...
 
bool setWinddir (const double winddir)
 Sets the wind direction: 0 = N, 90 = E, 180 = S, ...
 
bool setWinddir (const std::string &winddir)
 Sets the wind direction: 0 = N, 90 = E, 180 = S, ...
 
double relhum () const
 Returns the relative humidity: 0.0 to 1.0.
 
bool setRelhum (const double relhum)
 Sets the relative humidity: 0.0 to 1.0.
 
bool setRelhum (const std::string &relhum)
 Sets the relative humidity: 0.0 to 1.0.
 
int daytyp () const
 Returns the type of day (1-12)
 
void setDaytyp (const int daytyp)
 Sets the type of day (1-12)
 
int uTa () const
 Returns the units for Tambt.
 
void setUTa (const int uTa)
 Sets the units for Tambt.
 
int ubP () const
 Returns the units for barometric pressure.
 
void setUbP (const int ubP)
 Sets the units for barometric pressure.
 
int uws () const
 Returns the units for wind speed.
 
void setUws (const int uws)
 Sets the units for wind speed.
 
int uwd () const
 Returns the units for wind direction.
 
void setUwd (const int uwd)
 Sets the units for wind speed.
 

Detailed Description

WeatherData objects contain the simplified weather data associated with a CONTAM model.

Constructor & Destructor Documentation

◆ WeatherData() [1/4]

openstudio::contam::WeatherData::WeatherData ( )

Create a new object with default values.

◆ WeatherData() [2/4]

openstudio::contam::WeatherData::WeatherData ( std::string Tambt,
std::string barpres,
std::string windspd,
std::string winddir,
std::string relhum,
int daytyp,
int uTa,
int ubP,
int uws,
int uwd )

Create a new object.

◆ WeatherData() [3/4]

openstudio::contam::WeatherData::WeatherData ( double Tambt,
double barpres,
double windspd,
double winddir,
double relhum,
int daytyp,
int uTa,
int ubP,
int uws,
int uwd )

Create a new object.

◆ WeatherData() [4/4]

openstudio::contam::WeatherData::WeatherData ( const WeatherData & other)

Create a new object from another object.

◆ ~WeatherData()

openstudio::contam::WeatherData::~WeatherData ( )
default

Destroy the object.

Member Function Documentation

◆ barpres()

double openstudio::contam::WeatherData::barpres ( ) const

Returns the barometric pressure [Pa] NOT corrected to sea level.

◆ daytyp()

int openstudio::contam::WeatherData::daytyp ( ) const

Returns the type of day (1-12)

◆ operator!=()

bool openstudio::contam::WeatherData::operator!= ( const WeatherData & other) const

Inequality operator.

◆ operator=()

WeatherData & openstudio::contam::WeatherData::operator= ( const WeatherData & other)

Copy operator.

◆ operator==()

bool openstudio::contam::WeatherData::operator== ( const WeatherData & other) const

Equality operator.

◆ read()

void openstudio::contam::WeatherData::read ( Reader & input)

Read an object from a Reader.

◆ relhum()

double openstudio::contam::WeatherData::relhum ( ) const

Returns the relative humidity: 0.0 to 1.0.

◆ setBarpres() [1/2]

bool openstudio::contam::WeatherData::setBarpres ( const double barpres)

Sets the barometric pressure [Pa] NOT corrected to sea level.

◆ setBarpres() [2/2]

bool openstudio::contam::WeatherData::setBarpres ( const std::string & barpres)

Sets the barometric pressure [Pa] NOT corrected to sea level.

◆ setDaytyp()

void openstudio::contam::WeatherData::setDaytyp ( const int daytyp)

Sets the type of day (1-12)

◆ setRelhum() [1/2]

bool openstudio::contam::WeatherData::setRelhum ( const double relhum)

Sets the relative humidity: 0.0 to 1.0.

◆ setRelhum() [2/2]

bool openstudio::contam::WeatherData::setRelhum ( const std::string & relhum)

Sets the relative humidity: 0.0 to 1.0.

◆ setTambt() [1/2]

bool openstudio::contam::WeatherData::setTambt ( const double Tambt)

Sets the ambient temperature [K].

◆ setTambt() [2/2]

bool openstudio::contam::WeatherData::setTambt ( const std::string & Tambt)

Sets the ambient temperature [K].

◆ setUbP()

void openstudio::contam::WeatherData::setUbP ( const int ubP)

Sets the units for barometric pressure.

◆ setUTa()

void openstudio::contam::WeatherData::setUTa ( const int uTa)

Sets the units for Tambt.

◆ setUwd()

void openstudio::contam::WeatherData::setUwd ( const int uwd)

Sets the units for wind speed.

◆ setUws()

void openstudio::contam::WeatherData::setUws ( const int uws)

Sets the units for wind speed.

◆ setWinddir() [1/2]

bool openstudio::contam::WeatherData::setWinddir ( const double winddir)

Sets the wind direction: 0 = N, 90 = E, 180 = S, ...

◆ setWinddir() [2/2]

bool openstudio::contam::WeatherData::setWinddir ( const std::string & winddir)

Sets the wind direction: 0 = N, 90 = E, 180 = S, ...

◆ setWindspd() [1/2]

bool openstudio::contam::WeatherData::setWindspd ( const double windspd)

Sets the wind speed [m/s].

◆ setWindspd() [2/2]

bool openstudio::contam::WeatherData::setWindspd ( const std::string & windspd)

Sets the wind speed [m/s].

◆ Tambt()

double openstudio::contam::WeatherData::Tambt ( ) const

Returns the ambient temperature [K].

◆ ubP()

int openstudio::contam::WeatherData::ubP ( ) const

Returns the units for barometric pressure.

◆ uTa()

int openstudio::contam::WeatherData::uTa ( ) const

Returns the units for Tambt.

◆ uwd()

int openstudio::contam::WeatherData::uwd ( ) const

Returns the units for wind direction.

◆ uws()

int openstudio::contam::WeatherData::uws ( ) const

Returns the units for wind speed.

◆ winddir()

double openstudio::contam::WeatherData::winddir ( ) const

Returns the wind direction: 0 = N, 90 = E, 180 = S, ...

◆ windspd()

double openstudio::contam::WeatherData::windspd ( ) const

Returns the wind speed [m/s].

◆ write()

std::string openstudio::contam::WeatherData::write ( )

Write the object to a string.