Commit 5af53b5b by Dmitry Pavlov Committed by Timo Koch

### renamed the parameter, improved the comment

parent f525d23b
 ... @@ -141,20 +141,23 @@ public: ... @@ -141,20 +141,23 @@ public: * \param params Parameters * \param params Parameters * \param phaseIdx The phase index * \param phaseIdx The phase index * \param isGasPhase Specifies the phase state * \param isGasPhase Specifies the phase state * \param handleSingleRootSpecially Special handling of the case when the EOS has only one * \param handleUnphysicalPhase Special handling of the case when the EOS has only one * intersection with the pressure: the critical molar volume is returned if the intersection with the pressure, and the intersection does not correspond to fluid is critical, or extrema of the EOS are considered if the fluid is not the given phase (the phase is thus considered unphysical). If it happens in critical. If the parameter is false and the EOS has only one intersection the case of critical fluid, the critical molar volume is returned for the with, the molar volume is computed from that single intersection, not unphysical phase. If the fluid is not critical, a proper extremum of the depending of the given phase (gas or fluid). If the EOS has three EOS is returned for the unphysical phase. If the parameter is false and the intersections with the pressure, this parameter is ignored. EOS has only one intersection with the pressure, the molar volume is computed from that single intersection, not depending of the given phase (gas or fluid). If the EOS has three intersections with the pressure, this parameter is ignored. */ */ template template static Scalar computeMolarVolume(const FluidState &fs, static Scalar computeMolarVolume(const FluidState &fs, Params ¶ms, Params ¶ms, int phaseIdx, int phaseIdx, bool isGasPhase, bool isGasPhase, bool handleSingleRootSpecially = true) bool handleUnphysicalPhase = true) { { Scalar Vm = 0; Scalar Vm = 0; ... @@ -204,7 +207,7 @@ public: ... @@ -204,7 +207,7 @@ public: Vm = Z[0]*RT/p; Vm = Z[0]*RT/p; // Handle single root case specially unless told otherwise // Handle single root case specially unless told otherwise if (handleSingleRootSpecially) if (handleUnphysicalPhase) Vm = handleSingleRoot_(Vm, fs, params, phaseIdx, isGasPhase); Vm = handleSingleRoot_(Vm, fs, params, phaseIdx, isGasPhase); } } else else ... ...
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!