Fesapi 2.9.0.1
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
prodml2_2::CompositionalSpecification Class Reference

#include <CompositionalSpecification.h>

Inheritance diagram for prodml2_2::CompositionalSpecification:
prodml2_2::PvtSpecification prodml2_2::CompositionalViscositySpecification prodml2_2::FrictionTheorySpecification

Public Member Functions

 CompositionalSpecification (gsoap_eml2_3::prodml22__AbstractCompositionalModel *fromGsoap)
 
virtual ~CompositionalSpecification ()=default
 
bool hasMixingRule () const
 
gsoap_eml2_3::prodml22__MixingRule getMixingRule () const
 
void setMixingRule (gsoap_eml2_3::prodml22__MixingRule mixingRule)
 
unsigned int getBinaryInteractionCoefficientCount () const
 
std::string getBinaryInteractionCoefficientFluidComponent1Reference (unsigned int index) const
 
bool hasBinaryInteractionCoefficientFluidComponent2Reference (unsigned int index) const
 
std::string getBinaryInteractionCoefficientFluidComponent2Reference (unsigned int index) const
 
void pushBackBinaryInteractionCoefficient (double value, const std::string &fluidComponent1Reference, const std::string &fluidComponent2Reference="")
 
unsigned int getFluidComponentPropertyCount () const
 
void pushBackFluidComponentProperty (const std::string &fluidComponentReference)
 
std::string getFluidComponentPropertyFluidComponentReference (unsigned int index) const
 
- Public Member Functions inherited from prodml2_2::PvtSpecification
 PvtSpecification (gsoap_eml2_3::prodml22__AbstractPvtModel *fromGsoap)
 
virtual ~PvtSpecification ()=default
 
unsigned int getCoefficientCount () const
 
double getCoefficientValue (unsigned int index) const
 
gsoap_eml2_3::prodml22__PvtModelParameterKind getCoefficientKind (unsigned int index) const
 
bool hasCoefficientName (unsigned int index) const
 
std::string getCoefficientName (unsigned int index) const
 
void pushBackCoefficient (double value, gsoap_eml2_3::prodml22__PvtModelParameterKind kind, const std::string &name="")
 

Additional Inherited Members

- Public Attributes inherited from prodml2_2::PvtSpecification
gsoap_eml2_3::prodml22__AbstractPvtModel * gsoapProxy
 

Detailed Description

A compositional specification.

Constructor & Destructor Documentation

◆ CompositionalSpecification()

prodml2_2::CompositionalSpecification::CompositionalSpecification ( gsoap_eml2_3::prodml22__AbstractCompositionalModel * fromGsoap)
inline

Creates an instance of this class by wrapping a gsoap instance.

Parameters
[in,out]fromGsoapIf non-null, from gsoap.

◆ ~CompositionalSpecification()

virtual prodml2_2::CompositionalSpecification::~CompositionalSpecification ( )
virtualdefault

Destructor does nothing since the memory is managed by the gsoap context.

Member Function Documentation

◆ getBinaryInteractionCoefficientCount()

unsigned int prodml2_2::CompositionalSpecification::getBinaryInteractionCoefficientCount ( ) const
inline

Gets binary interaction coefficient count

Exceptions
std::out_of_rangeThrown when an out of range error condition occurs.
Returns
The binary interaction coefficient count.

◆ getBinaryInteractionCoefficientFluidComponent1Reference()

std::string prodml2_2::CompositionalSpecification::getBinaryInteractionCoefficientFluidComponent1Reference ( unsigned int index) const
inline

Gets binary interaction coefficient fluid component 1 reference

Exceptions
std::out_of_rangeThrown when an out of range error condition occurs.
Parameters
indexZero-based index of the.
Returns
The binary interaction coefficient fluid component 1 reference.

◆ getBinaryInteractionCoefficientFluidComponent2Reference()

std::string prodml2_2::CompositionalSpecification::getBinaryInteractionCoefficientFluidComponent2Reference ( unsigned int index) const
inline

Gets binary interaction coefficient fluid component 2 reference

Exceptions
std::out_of_rangeThrown when an out of range error condition occurs.
Parameters
indexZero-based index of the.
Returns
The binary interaction coefficient fluid component 2 reference.

◆ getFluidComponentPropertyCount()

unsigned int prodml2_2::CompositionalSpecification::getFluidComponentPropertyCount ( ) const
inline

Gets fluid component property count

Exceptions
std::out_of_rangeThrown when an out of range error condition occurs.
Returns
The fluid component property count.

◆ getFluidComponentPropertyFluidComponentReference()

std::string prodml2_2::CompositionalSpecification::getFluidComponentPropertyFluidComponentReference ( unsigned int index) const
inline

Gets fluid component property fluid component reference

Exceptions
std::out_of_rangeThrown when an out of range error condition occurs.
Parameters
indexZero-based index of the.
Returns
The fluid component property fluid component reference.

◆ getMixingRule()

gsoap_eml2_3::prodml22__MixingRule prodml2_2::CompositionalSpecification::getMixingRule ( ) const
inline

Gets mixing rule

Exceptions
std::invalid_argumentThrown when an invalid argument error condition occurs.
Returns
The mixing rule.

◆ hasBinaryInteractionCoefficientFluidComponent2Reference()

bool prodml2_2::CompositionalSpecification::hasBinaryInteractionCoefficientFluidComponent2Reference ( unsigned int index) const
inline

Query if 'index' has binary interaction coefficient fluid component 2 reference

Exceptions
std::out_of_rangeThrown when an out of range error condition occurs.
Parameters
indexZero-based index of the.
Returns
True if binary interaction coefficient fluid component 2 reference, false if not.

◆ hasMixingRule()

bool prodml2_2::CompositionalSpecification::hasMixingRule ( ) const
inline

Query if this object has mixing rule

Returns
True if mixing rule, false if not.

◆ pushBackBinaryInteractionCoefficient()

void prodml2_2::CompositionalSpecification::pushBackBinaryInteractionCoefficient ( double value,
const std::string & fluidComponent1Reference,
const std::string & fluidComponent2Reference = "" )

Pushes a back binary interaction coefficient

Parameters
valueThe value.
fluidComponent1ReferenceThe fluid component 1 reference.
fluidComponent2Reference(Optional) The fluid component 2 reference.

◆ pushBackFluidComponentProperty()

void prodml2_2::CompositionalSpecification::pushBackFluidComponentProperty ( const std::string & fluidComponentReference)

Pushes a back fluid component property

Parameters
fluidComponentReferenceThe fluid component reference.

◆ setMixingRule()

void prodml2_2::CompositionalSpecification::setMixingRule ( gsoap_eml2_3::prodml22__MixingRule mixingRule)

Sets mixing rule

Parameters
mixingRuleThe mixing rule.

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