Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TAeZoSysPro_testsuite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TAeZoSysPro
TAeZoSysPro_testsuite
Commits
d9221e1d
Commit
d9221e1d
authored
4 years ago
by
FMR
Browse files
Options
Downloads
Patches
Plain Diff
Correction of paths of classes
parent
b22fa655
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Media/SimpleMoistAir/test_T_phX.mo
+5
-4
5 additions, 4 deletions
Media/SimpleMoistAir/test_T_phX.mo
Media/SimpleMoistAir/test_d_phX.mo
+7
-6
7 additions, 6 deletions
Media/SimpleMoistAir/test_d_phX.mo
Media/SimpleMoistAir/test_pressure.mo
+8
-8
8 additions, 8 deletions
Media/SimpleMoistAir/test_pressure.mo
with
20 additions
and
18 deletions
Media/SimpleMoistAir/test_T_phX.mo
+
5
−
4
View file @
d9221e1d
within TAeZoSysPro_testsuite.Media.SimpleMoistAir;
model test_T_phX
package Medium = TAeZoSysPro.Media.Air.MoistAir ;
parameter Modelica.SIunits.Pressure p = 101325;
parameter Modelica.SIunits.MassFraction X[2] = {0.03,0.97};
Modelica.SIunits.SpecificEnthalpy h;
...
...
@@ -16,11 +17,11 @@ Modelica.SIunits.Pressure p_sat;
equation
T_sat = Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat(1000);
p_sat = saturationPressure(T_sat) ;
X_steam = massFraction_pTphi(p = p, T = T, phi = 1);
p_sat =
Medium.
saturationPressure(T_sat) ;
X_steam =
Medium.
massFraction_pTphi(p = p, T = T, phi = 1);
T = 298.15/*ramp.y*/;
h = X[
Air]*
dryair.cp*(T-273.15) + min(X_steam, X[Water])*(steam.cp*(T-273.15) + steam.h_lv) + max(X[Water] - X_steam,0.0)*water.cp*(T-273.15);
T_guess = T_phX(p=p, h=h, X=X);
h = X[
Medium.Air]*Medium.
dryair.cp*(T-273.15) + min(X_steam, X[
Medium.
Water])*(
Medium.
steam.cp*(T-273.15) +
Medium.
steam.h_lv) + max(X[
Medium.
Water] - X_steam,0.0)*
Medium.
water.cp*(T-273.15);
T_guess =
Medium.
T_phX(p=p, h=h, X=X);
annotation (
Icon(coordinateSystem(preserveAspectRatio=false)),
...
...
This diff is collapsed.
Click to expand it.
Media/SimpleMoistAir/test_d_phX.mo
+
7
−
6
View file @
d9221e1d
within TAeZoSysPro_testsuite.Media.SimpleMoistAir;
model test_d_phX
package Medium = TAeZoSysPro.Media.Air.MoistAir ;
parameter Modelica.SIunits.Density d = 1.2;
parameter Modelica.SIunits.Temperature T = 303.15;
parameter Modelica.SIunits.MassFraction X[2] = {0.03,0.97};
ThermodynamicState state;
Medium.
ThermodynamicState state;
Modelica.SIunits.Pressure p;
Modelica.SIunits.SpecificEnthalpy h;
Modelica.SIunits.Density d_guess;
Modelica.SIunits.Temperature T_guess ;
equation
state = setState_dTX(d=d, T=T, X=X);
p = pressure(state);
h = specificEnthalpy(state);
(
d_guess
, T_guess) =
d_phX(p=p, h=h, X=X)
state =
Medium.
setState_dTX(d=d, T=T, X=X);
p =
Medium.
pressure(state);
h =
Medium.
specificEnthalpy(state);
d_guess
= Medium.
d_phX(p=p, h=h, X=X)
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(
coordinateSystem(preserveAspectRatio=false)));
end test_d_phX;
This diff is collapsed.
Click to expand it.
Media/SimpleMoistAir/test_pressure.mo
+
8
−
8
View file @
d9221e1d
within TAeZoSysPro_testsuite.Media.SimpleMoistAir;
model test_pressure
package Medium = TAeZoSysPro.Media.Air.MoistAir ;
parameter Modelica.SIunits.Pressure p = 101325;
parameter Modelica.SIunits.Temperature T = 303.15;
parameter Modelica.SIunits.MassFraction X[2] = {0.03,0.97};
ThermodynamicState state;
Medium.
ThermodynamicState state;
Modelica.SIunits.SpecificEnthalpy h;
Modelica.SIunits.Pressure p_guess;
Modelica.SIunits.Temperature T_guess;
Modelica.SIunits.MassFraction X_steam(start = X[1]), X_steam_guess;
equation
X_steam = massFraction_pTphi(p = p, T = T, phi = 1);
X_steam_guess = Xsaturation(state) ;
h = X[
Air]*
dryair.cp*(T-273.15) + min(X_steam, X[Water])*(steam.cp*(T-273.15) + steam.h_lv) + max(X[Water] - X_steam,0.0)*water.cp*(T-273.15);
state = setState_phX(p=p, h=h, X=X);
T_guess = T_phX(p=p, h=h, X=X) ;
p_guess = pressure(state);
X_steam =
Medium.
massFraction_pTphi(p = p, T = T, phi = 1);
X_steam_guess =
Medium.
Xsaturation(state) ;
h = X[
Medium.Air]*Medium.
dryair.cp*(T-273.15) + min(X_steam, X[
Medium.
Water])*(
Medium.
steam.cp*(T-273.15) +
Medium.
steam.h_lv) + max(X[
Medium.
Water] - X_steam,0.0)*
Medium.
water.cp*(T-273.15);
state =
Medium.
setState_phX(p=p, h=h, X=X);
T_guess =
Medium.
T_phX(p=p, h=h, X=X) ;
p_guess =
Medium.
pressure(state);
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(
coordinateSystem(preserveAspectRatio=false)));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment