Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modelica.Fluid.Vessels.ClosedVolume roots #4370

Open
HansOlsson opened this issue Mar 27, 2024 · 1 comment · May be fixed by #4392
Open

Modelica.Fluid.Vessels.ClosedVolume roots #4370

HansOlsson opened this issue Mar 27, 2024 · 1 comment · May be fixed by #4392
Labels
L: Fluid Issue addresses Modelica.Fluid (excl. Dissipation) requires Modelica 3.7 Issue that requires Modelica Language Specification 3.7

Comments

@HansOlsson
Copy link
Contributor

The model Modelica.Fluid.Vessels.ClosedVolume contains:

    vesselArea = pi*(3/4*V)^(2/3),
    heatTransfer(surfaceAreas={4*pi*(3/4*V/pi)^(2/3)}));

There is a proposal to introduce the nth root in Modelica that can be used instead of x^(2/3) (and help unit-checking), since Modelica does not have rational numbers, and that could be used directly for heatTransfer.surfaceAreas, which just computes radius from Volume and then Area based on that. As documented a Sphere has: Volume 4*pi*r^3/3 and Area 4*pi*r^2, so it all makes sense.

But I don't understand the corresponding formula for vesselArea.

@HansOlsson HansOlsson added L: Fluid Issue addresses Modelica.Fluid (excl. Dissipation) requires Modelica 3.7 Issue that requires Modelica Language Specification 3.7 labels Mar 27, 2024
@HansOlsson
Copy link
Contributor Author

If it were vesselArea = pi*(3/4*V/pi)^(2/3) I would understand it.

That is the cross-section area of the spherical volume - and it doesn't seem to make sense to have a port larger than that, right? However, that leaves a factor (pi)^(2/3) without explanation.

@HansOlsson HansOlsson linked a pull request Apr 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: Fluid Issue addresses Modelica.Fluid (excl. Dissipation) requires Modelica 3.7 Issue that requires Modelica Language Specification 3.7
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant