checkFluidSystem.hpp
Go to the documentation of this file.
304 try { paramCache.updateAll(fs, /*except=*/ParameterCache::Temperature | ParameterCache::Pressure | ParameterCache::Composition); } catch (...) {};
311 try { paramCache.updatePhase(fs, phaseIdx, /*except=*/ParameterCache::Temperature | ParameterCache::Pressure | ParameterCache::Composition); } catch (...) {};
333 try { [[maybe_unused]] auto tmpVal = FluidSystem::density(fs, paramCache, phaseIdx); static_assert(std::is_same<decltype(tmpVal), RhsEval>::value, "The default return value must be the scalar used by the fluid state!"); } catch (...) {};
334 try { val = FluidSystem::template density<FluidState, LhsEval>(fs, paramCache, phaseIdx); } catch (...) {};
335 try { scalarVal = FluidSystem::template density<FluidState, Scalar>(fs, paramCache, phaseIdx); } catch (...) {};
339 try { [[maybe_unused]] auto tmpVal = FluidSystem::viscosity(fs, paramCache, phaseIdx); static_assert(std::is_same<decltype(tmpVal), RhsEval>::value, "The default return value must be the scalar used by the fluid state!"); } catch (...) {};
340 try { [[maybe_unused]] auto tmpVal = FluidSystem::enthalpy(fs, paramCache, phaseIdx); static_assert(std::is_same<decltype(tmpVal), RhsEval>::value, "The default return value must be the scalar used by the fluid state!"); } catch (...) {};
341 try { [[maybe_unused]] auto tmpVal = FluidSystem::heatCapacity(fs, paramCache, phaseIdx); static_assert(std::is_same<decltype(tmpVal), RhsEval>::value, "The default return value must be the scalar used by the fluid state!"); } catch (...) {};
342 try { [[maybe_unused]] auto tmpVal = FluidSystem::thermalConductivity(fs, paramCache, phaseIdx); static_assert(std::is_same<decltype(tmpVal), RhsEval>::value, "The default return value must be the scalar used by the fluid state!"); } catch (...) {};
343 try { val = FluidSystem::template viscosity<FluidState, LhsEval>(fs, paramCache, phaseIdx); } catch (...) {};
344 try { val = FluidSystem::template enthalpy<FluidState, LhsEval>(fs, paramCache, phaseIdx); } catch (...) {};
345 try { val = FluidSystem::template heatCapacity<FluidState, LhsEval>(fs, paramCache, phaseIdx); } catch (...) {};
346 try { val = FluidSystem::template thermalConductivity<FluidState, LhsEval>(fs, paramCache, phaseIdx); } catch (...) {};
347 try { scalarVal = FluidSystem::template viscosity<FluidState, Scalar>(fs, paramCache, phaseIdx); } catch (...) {};
348 try { scalarVal = FluidSystem::template enthalpy<FluidState, Scalar>(fs, paramCache, phaseIdx); } catch (...) {};
349 try { scalarVal = FluidSystem::template heatCapacity<FluidState, Scalar>(fs, paramCache, phaseIdx); } catch (...) {};
350 try { scalarVal = FluidSystem::template thermalConductivity<FluidState, Scalar>(fs, paramCache, phaseIdx); } catch (...) {};
354 try { [[maybe_unused]] auto tmpVal = FluidSystem::fugacityCoefficient(fs, paramCache, phaseIdx, compIdx); static_assert(std::is_same<decltype(tmpVal), RhsEval>::value, "The default return value must be the scalar used by the fluid state!"); } catch (...) {};
355 try { val = FluidSystem::template fugacityCoefficient<FluidState, LhsEval>(fs, paramCache, phaseIdx, compIdx); } catch (...) {};
356 try { scalarVal = FluidSystem::template fugacityCoefficient<FluidState, Scalar>(fs, paramCache, phaseIdx, compIdx); } catch (...) {};
358 try { [[maybe_unused]] auto tmpVal = FluidSystem::diffusionCoefficient(fs, paramCache, phaseIdx, compIdx); static_assert(std::is_same<decltype(tmpVal), RhsEval>::value, "The default return value must be the scalar used by the fluid state!"); } catch (...) {};
359 try { val = FluidSystem::template diffusionCoefficient<FluidState, LhsEval>(fs, paramCache, phaseIdx, compIdx); } catch (...) {};
360 try { scalarVal = FluidSystem::template fugacityCoefficient<FluidState, Scalar>(fs, paramCache, phaseIdx, compIdx); } catch (...) {};
Represents all relevant thermodynamic quantities of a multi-phase, multi-component fluid system assum... Represents all relevant thermodynamic quantities of a multi-phase, multi-component fluid system assum... Represents all relevant thermodynamic quantities of a multi-phase, multi-component fluid system not a... void checkFluidSystem() Checks whether a fluid system adheres to the specification. Definition: checkFluidSystem.hpp:268 This is a fluid state which makes sure that only the quantities allowed are accessed. Definition: checkFluidSystem.hpp:62 auto fugacity(unsigned phaseIdx, unsigned compIdx) const -> decltype(this->base().fugacity(phaseIdx, compIdx)) Definition: checkFluidSystem.hpp:181 void restrictToPhase(int phaseIdx) Definition: checkFluidSystem.hpp:93 auto molarity(unsigned phaseIdx, unsigned compIdx) const -> decltype(this->base().molarity(phaseIdx, compIdx)) Definition: checkFluidSystem.hpp:142 auto massFraction(unsigned phaseIdx, unsigned compIdx) const -> decltype(this->base().massFraction(phaseIdx, compIdx)) Definition: checkFluidSystem.hpp:126 void allowDensity(bool yesno) Definition: checkFluidSystem.hpp:90 HairSplittingFluidState() Definition: checkFluidSystem.hpp:69 auto moleFraction(unsigned phaseIdx, unsigned compIdx) const -> decltype(this->base().moleFraction(phaseIdx, compIdx)) Definition: checkFluidSystem.hpp:118 auto averageMolarMass(unsigned phaseIdx) const -> decltype(this->base().averageMolarMass(phaseIdx)) Definition: checkFluidSystem.hpp:134 auto fugacityCoefficient(unsigned phaseIdx, unsigned compIdx) const -> decltype(this->base().fugacityCoefficient(phaseIdx, compIdx)) Definition: checkFluidSystem.hpp:188 auto temperature(unsigned phaseIdx) const -> decltype(this->base().temperature(phaseIdx)) Definition: checkFluidSystem.hpp:102 auto saturation(unsigned phaseIdx) const -> decltype(this->base().saturation(phaseIdx)) Definition: checkFluidSystem.hpp:174 void allowComposition(bool yesno) Definition: checkFluidSystem.hpp:87 auto density(unsigned phaseIdx) const -> decltype(this->base().density(phaseIdx)) Definition: checkFluidSystem.hpp:166 auto viscosity(unsigned phaseIdx) const -> decltype(this->base().viscosity(phaseIdx)) Definition: checkFluidSystem.hpp:209 auto pressure(unsigned phaseIdx) const -> decltype(this->base().pressure(phaseIdx)) Definition: checkFluidSystem.hpp:110 auto internalEnergy(unsigned phaseIdx) const -> decltype(this->base().internalEnergy(phaseIdx)) Definition: checkFluidSystem.hpp:202 void allowTemperature(bool yesno) Definition: checkFluidSystem.hpp:81 auto molarDensity(unsigned phaseIdx) const -> decltype(this->base().molarDensity(phaseIdx)) Definition: checkFluidSystem.hpp:150 auto molarVolume(unsigned phaseIdx) const -> decltype(this->base().molarVolume(phaseIdx)) Definition: checkFluidSystem.hpp:158 void allowPressure(bool yesno) Definition: checkFluidSystem.hpp:84 auto enthalpy(unsigned phaseIdx) const -> decltype(this->base().enthalpy(phaseIdx)) Definition: checkFluidSystem.hpp:195 |