Skip to content

Commit

Permalink
corrected density call in tanks
Browse files Browse the repository at this point in the history
  • Loading branch information
IngelaLind committed Nov 29, 2024
1 parent 82523a9 commit cc78a65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ThermofluidStream/Boundaries/Internal/PartialTank.mo
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ protected
Boolean fFull;
Boolean fEmpty;
Real shiftOutlet[M_outlets];
Medium.Density liquidDensity=Medium.Incompressible.density(medium.state)
Medium.Density liquidDensity=Medium.Incompressible.density(Medium.Incompressible.setState_pTX(medium.state.p,medium.state.T))
"density of the liquid in the tank";
Medium.Density gasDensity=Medium.SingleGas.density(medium.state)
Medium.Density gasDensity=Medium.SingleGas.density(Medium.SingleGas.setState_pTX(medium.state.p,medium.state.T))
"density of the gas in the tank";
initial equation
if initialize_pressure then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ protected
//Real shiftRearUp[N_rears];
Real shiftFore[N_fores];
//Real shiftForeUp[N_fores];
Medium.Density liquidDensity=Medium.Incompressible.density(medium.state)
Medium.Density liquidDensity=Medium.Incompressible.density(Medium.Incompressible.setState_pTX(medium.state.p,medium.state.T))
"density of the liquid in the tank";
Medium.Density gasDensity=Medium.SingleGas.density(medium.state)
Medium.Density gasDensity=Medium.SingleGas.density(Medium.SingleGas.setState_pTX(medium.state.p,medium.state.T))
"density of the gas in the tank";
Real fChaoticLife[N_inlets];
initial equation
Expand Down

0 comments on commit cc78a65

Please sign in to comment.