teqp 0.22.0
Loading...
Searching...
No Matches
teqp::cppinterface::adapter::OwnershipSummer< Funcs > Class Template Reference

A collection type that allows you to sum contributions from multiple EOS terms. More...

#include <deriv_adapter.hpp>

Public Member Functions

 OwnershipSummer (Funcs &&...f)
 
auto & get_ref ()
 
const auto & get_cref () const
 
template<typename MoleFracType >
auto R (const MoleFracType &molefrac)
 The gas constant, obtained from the first model in the tuple.
 
template<typename TType , typename RhoType , typename MoleFracType >
auto alphar (const TType &T, const RhoType &rhomolar, const MoleFracType &molefrac) const
 The generic alphar function, which sums the contributions coming from the individual models passed into the constructor.
 

Public Attributes

std::tuple< Funcs... > contributions
 
const std::type_index index
 

Detailed Description

template<typename... Funcs>
class teqp::cppinterface::adapter::OwnershipSummer< Funcs >

A collection type that allows you to sum contributions from multiple EOS terms.

Each term in the summation must support the alphar generic interface that accepts T, rho, molefrac as arguments

The gas constant method is used of the FIRST function in the instance

Note
Some information used from https://stackoverflow.com/a/40749139 regarding the tuple summation

Definition at line 54 of file deriv_adapter.hpp.

Constructor & Destructor Documentation

◆ OwnershipSummer()

template<typename... Funcs>
teqp::cppinterface::adapter::OwnershipSummer< Funcs >::OwnershipSummer ( Funcs &&... f)
inline

Definition at line 57 of file deriv_adapter.hpp.

Member Function Documentation

◆ alphar()

template<typename... Funcs>
template<typename TType , typename RhoType , typename MoleFracType >
auto teqp::cppinterface::adapter::OwnershipSummer< Funcs >::alphar ( const TType & T,
const RhoType & rhomolar,
const MoleFracType & molefrac ) const
inline

The generic alphar function, which sums the contributions coming from the individual models passed into the constructor.

Definition at line 71 of file deriv_adapter.hpp.

◆ get_cref()

template<typename... Funcs>
const auto & teqp::cppinterface::adapter::OwnershipSummer< Funcs >::get_cref ( ) const
inline

Definition at line 60 of file deriv_adapter.hpp.

◆ get_ref()

template<typename... Funcs>
auto & teqp::cppinterface::adapter::OwnershipSummer< Funcs >::get_ref ( )
inline

Definition at line 59 of file deriv_adapter.hpp.

◆ R()

template<typename... Funcs>
template<typename MoleFracType >
auto teqp::cppinterface::adapter::OwnershipSummer< Funcs >::R ( const MoleFracType & molefrac)
inline

The gas constant, obtained from the first model in the tuple.

Definition at line 65 of file deriv_adapter.hpp.

Member Data Documentation

◆ contributions

template<typename... Funcs>
std::tuple<Funcs...> teqp::cppinterface::adapter::OwnershipSummer< Funcs >::contributions

Definition at line 56 of file deriv_adapter.hpp.

◆ index

template<typename... Funcs>
const std::type_index teqp::cppinterface::adapter::OwnershipSummer< Funcs >::index

Definition at line 61 of file deriv_adapter.hpp.


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