### Fix/exercise fluidsystems

parent 3b1bb8f3
 ... ... @@ -96,7 +96,7 @@ private: * Uncomment second line and comment first line for using the compressible component */ using LiquidMyComponentPhase = typename FluidSystems::OnePLiquid >; // using LiquidMyComponent = typename FluidSystems::OnePLiquid >; // using LiquidMyComponentPhase = typename FluidSystems::OnePLiquid >; public: using type = typename FluidSystems::TwoPImmiscible; ... ...
 ... ... @@ -160,7 +160,7 @@ We now want to implement a pressure-dependent density for our component. Open th $\displaystyle \rho_{MyComp} = \rho_{min} + \frac{ \rho_{max} - \rho_{min} }{ 1 + \rho_{min}*e^{-1.0*k*(\rho_{max} - \rho_{min})*p} } $ where $p$ is the pressure and $\rho_{min} = 1440 $, $\rho_{max} = 1480 $ and $k = 5 \cdot 10^{-7} $. Also, make sure the header is included in the 2pproblem.hh file by uncommenting line 45. Furthermore, the new component has to be set as a liquid phase in the fluid system, i.e. comment line 90 and uncomment line 91. The density distribution of this phase (rhoN) at the final simulation time should look like this: where $p$ is the pressure and $\rho_{min} = 1440 $, $\rho_{max} = 1480 $ and $k = 5 \cdot 10^{-7} $. Also, make sure the header is included in the 2pproblem.hh file by uncommenting line 54. Furthermore, the new component has to be set as a liquid phase in the fluid system, i.e. comment line 98 and uncomment line 99. The density distribution of this phase (rhoN) at the final simulation time should look like this: ![](../extradoc/exercise-fluidsystem_a_solution2.png) ... ...
 ... ... @@ -95,11 +95,11 @@ private: * Uncomment first line and comment second line for using the incompressible component * Uncomment second line and comment first line for using the compressible component */ using LiquidMyComponent = typename FluidSystems::OnePLiquid >; // using LiquidMyComponent = typename FluidSystems::OnePLiquid >; using LiquidMyComponentPhase = typename FluidSystems::OnePLiquid >; // using LiquidMyComponentPhase = typename FluidSystems::OnePLiquid >; public: using type = typename FluidSystems::TwoPImmiscible; using type = typename FluidSystems::TwoPImmiscible; }; } ... ...
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!