Skip to content
Snippets Groups Projects
Commit a1a059fe authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

[material][1padapter] Add component enthalpy

parent 3b594c44
No related branches found
No related tags found
1 merge request!1115Fix/1p adapter
...@@ -220,6 +220,23 @@ public: ...@@ -220,6 +220,23 @@ public:
return MultiPhaseFluidSystem::enthalpy(adaptFluidState(fluidState), phase); return MultiPhaseFluidSystem::enthalpy(adaptFluidState(fluidState), phase);
} }
/*!
* \brief Returns the specific enthalpy \f$\mathrm{[J/kg]}\f$ of a component in a specific phase
* \param fluidState An arbitrary fluid state
* \param phaseIdx The index of the fluid phase to consider
* \param compIdx The index of the component to consider
*
*/
template <class FluidState>
static Scalar componentEnthalpy(const FluidState &fluidState,
int phaseIdx,
int compIdx)
{
assert(phaseIdx == 0);
return MultiPhaseFluidSystem::componentEnthalpy(adaptFluidState(fluidState), phase,
AdapterPolicy::compIdx(compIdx));
}
using Base::viscosity; using Base::viscosity;
/*! /*!
* \brief The dynamic liquid viscosity \f$\mathrm{[N/m^3*s]}\f$ of the pure component. * \brief The dynamic liquid viscosity \f$\mathrm{[N/m^3*s]}\f$ of the pure component.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment