Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TAeZoSysPro
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
Commits
606eaeb3
Commit
606eaeb3
authored
2 years ago
by
Felix MARSOLLIER
Browse files
Options
Downloads
Patches
Plain Diff
Removal of compensation of jet heigh via H_fluidStream because it has a low physical sense
parent
61774252
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
FluidDynamics/Components/Orifices/HorizontalOpening.mo
+1
-2
1 addition, 2 deletions
FluidDynamics/Components/Orifices/HorizontalOpening.mo
FluidDynamics/Components/Orifices/Opening.mo
+1
-2
1 addition, 2 deletions
FluidDynamics/Components/Orifices/Opening.mo
with
2 additions
and
4 deletions
FluidDynamics/Components/Orifices/HorizontalOpening.mo
+
1
−
2
View file @
606eaeb3
...
...
@@ -38,7 +38,6 @@ model HorizontalOpening
Placement(visible =
true,
transformation(origin =
{38,
0},
extent =
{{-10,
-10
},
{10,
10}},
rotation =
0),
iconTransformation(origin =
{0,
90},
extent =
{{-10,
-10
},
{10,
10}},
rotation =
0)));
protected
parameter
Modelica.SIunits.Height
H_fluidStream =
Dh
*
Cd
^0.5
"
Minimal
height
between
top
and
bottom
flow
path
";
Modelica.SIunits.MassFlowRate
mX_flow_i
[
N
,
Medium.nX
]
;
Modelica.SIunits.SpecificEnthalpy
h_a
"
Specific
enthalpy
from
port_a
"
;
Modelica.SIunits.SpecificEnthalpy
h_b
"
Specific
enthalpy
from
port_b
"
;
...
...
@@ -74,7 +73,7 @@ In such a case, the HorizontalOpening is assumed behaves like a VerticalOpening
buoyancy =
if
sum
(
port_a.d
)
<
sum
(
port_b.d
)
then
1
else
0;
//
for
i
in
1
:N
loop
dp_i[i] =
dp
+
buoyancy
*
Modelica.Constants.g_n
*
(
H_fluidStream
/
2
-
H_fluidStream
*
(
i
-
1
/
2)
/
N
)
*
(
sum
(
port_a.d
)
-
sum
(
port_b.d
));
dp_i[i] =
dp
+
Modelica.Constants.g_n
*
(
Dh
/
2
-
Dh
*
(
i
-
1
/
2)
/
N
)
*
min
(
sum
(
port_a.d
)
-
sum
(
port_b.d
)
,
0.0
);
d[i] =
TAeZoSysPro.FluidDynamics.Utilities.regStep(x
=
Vel
[
i
],
x_small =
1e-10,
y1 =
sum(port_a.d),
y2 =
sum(port_b.d));
if
massDynamics =
=
Dynamics.SteadyState
then
dp_i
[
i
]
-
1
/
2
*
Modelica.Fluid.Utilities.regSquare2(x =
Vel[i],
x_small =
Vel_small,
k1 =
sum(port_a.d),
k2 =
sum(port_b.d))
=
0.0;
...
...
This diff is collapsed.
Click to expand it.
FluidDynamics/Components/Orifices/Opening.mo
+
1
−
2
View file @
606eaeb3
...
...
@@ -38,7 +38,6 @@ model Opening
Placement(visible = true, transformation(origin = {38, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0), iconTransformation(origin = {90, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
protected
parameter Modelica.SIunits.Height H_fluidStream = H * Cd ^0.5 "Minimal height between top and bottom flow path";
Modelica.SIunits.MassFlowRate mX_flow_i[N, Medium.nX] ;
Modelica.SIunits.SpecificEnthalpy h_a "Specific enthalpy from port_a" ;
Modelica.SIunits.SpecificEnthalpy h_b "Specific enthalpy from port_b" ;
...
...
@@ -68,7 +67,7 @@ equation
h_b = Medium.specificEnthalpy(state_b);
for i in 1:N loop
dp_i[i] = dp + Modelica.Constants.g_n * (H
_fluidStream / 2 - H_fluidStream
* (i - 1 / 2) / N) * (sum(port_a.d) - sum(port_b.d));
dp_i[i] = dp + Modelica.Constants.g_n * (H
/ 2 - H
* (i - 1 / 2) / N) * (sum(port_a.d) - sum(port_b.d));
d[i] = TAeZoSysPro.FluidDynamics.Utilities.regStep(x = Vel[i], x_small = 1e-10, y1 = sum(port_a.d), y2 = sum(port_b.d));
if massDynamics == Dynamics.SteadyState then
dp_i[i] - 1 / 2 * Modelica.Fluid.Utilities.regSquare2(x = Vel[i], x_small = Vel_small, k1 = sum(port_a.d), k2 = sum(port_b.d)) = 0.0;
...
...
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