ReFRACtor
FullPhysics::RelativeHumidity Class Reference

This calculates the relative humidity. More...

#include <relative_humidity.h>

+ Inheritance diagram for FullPhysics::RelativeHumidity:
+ Collaboration diagram for FullPhysics::RelativeHumidity:

Public Member Functions

 RelativeHumidity (const boost::shared_ptr< Absorber > &Abs, const boost::shared_ptr< Temperature > &Temp, const boost::shared_ptr< Pressure > &Press)
 Constructor. More...
 
virtual ~RelativeHumidity ()
 
virtual boost::shared_ptr< RelativeHumidityclone () const
 
virtual boost::shared_ptr< RelativeHumidityclone (const boost::shared_ptr< Absorber > &Abs, const boost::shared_ptr< Temperature > &Temp, const boost::shared_ptr< Pressure > &Press) const
 
void print (std::ostream &Os)
 Print to a string. More...
 
std::string print_to_string () const
 Print to string. More...
 
ArrayAd< double, 1 > relative_humidity_grid () const
 Calculate relative humidity. More...
 
ArrayAd< double, 1 > relative_humidity_layer () const
 Relative humidity for each layer. More...
 
ArrayAd< double, 1 > specific_humidity_grid () const
 Calculate specific humidity. More...
 

Detailed Description

This calculates the relative humidity.

This is a straight forward calculation from the H2O AbsorberVmr, Temperature, and Pressure. There is no existing class that this obviously goes to, so we just pull this out into its own class.

Definition at line 14 of file relative_humidity.h.

Constructor & Destructor Documentation

◆ RelativeHumidity()

RelativeHumidity::RelativeHumidity ( const boost::shared_ptr< Absorber > &  Abs,
const boost::shared_ptr< Temperature > &  Temp,
const boost::shared_ptr< Pressure > &  Press 
)

Constructor.

Definition at line 20 of file relative_humidity.cc.

◆ ~RelativeHumidity()

virtual FullPhysics::RelativeHumidity::~RelativeHumidity ( )
inlinevirtual

Definition at line 24 of file relative_humidity.h.

Member Function Documentation

◆ clone() [1/2]

boost::shared_ptr< RelativeHumidity > RelativeHumidity::clone ( ) const
virtual

Definition at line 29 of file relative_humidity.cc.

◆ clone() [2/2]

boost::shared_ptr< RelativeHumidity > RelativeHumidity::clone ( const boost::shared_ptr< Absorber > &  Abs,
const boost::shared_ptr< Temperature > &  Temp,
const boost::shared_ptr< Pressure > &  Press 
) const
virtual

Definition at line 36 of file relative_humidity.cc.

◆ print()

void RelativeHumidity::print ( std::ostream &  Os)

Print to a string.

Definition at line 46 of file relative_humidity.cc.

◆ print_to_string()

std::string FullPhysics::Printable< RelativeHumidity >::print_to_string ( ) const
inlineinherited

Print to string.

This is primarily useful for SWIG wrappers to this class, e.g. a to_s method in ruby.

Definition at line 31 of file printable.h.

◆ relative_humidity_grid()

ArrayAd< double, 1 > RelativeHumidity::relative_humidity_grid ( ) const

Calculate relative humidity.

Definition at line 78 of file relative_humidity.cc.

◆ relative_humidity_layer()

ArrayAd< double, 1 > RelativeHumidity::relative_humidity_layer ( ) const

Relative humidity for each layer.

This is just the average of the 2 levels.

Definition at line 97 of file relative_humidity.cc.

◆ specific_humidity_grid()

ArrayAd< double, 1 > RelativeHumidity::specific_humidity_grid ( ) const

Calculate specific humidity.

Definition at line 65 of file relative_humidity.cc.


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

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:13