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

loss coefficient not beeing calculated correctly #682

Open
EPrade opened this issue Jan 6, 2025 · 3 comments
Open

loss coefficient not beeing calculated correctly #682

EPrade opened this issue Jan 6, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@EPrade
Copy link
Contributor

EPrade commented Jan 6, 2025

Problem:
The loss coefficient parameter in the components heat exchanger and pressure control cannot be used without a diameter and the diameter is not an input parameter at the moment.

Possible solutions:

For pressure Control:

Remove loss coefficient for pressure control, since the pressure is set within that component anyway.

For heat exchangers:

Replace the loss coefficient with an input parameter for a fixed pressure loss e.g. "fixed pressure loss[bar]", so that the user can directly input the pressure loss the heat exchanger should induce.

@EPrade EPrade added the bug Something isn't working label Jan 6, 2025
@kava-matrix
Copy link

kava-matrix commented Jan 7, 2025

A relationship to V2 is needed to implement the loss coefficient in a familiar way.
image
Ideally this would be able to be entered as a factor K (zeta in image above) and the diameter (or average diameter) of the upstream pipes connected to from_junction could be used to calculate V.

Alternatively, the deprecated parameter diameter_m could be undepricated and used. I think this is the better solution. It allows the user to enter a hydraulic diameter, which is useful.

@SimonRubenDrauz
Copy link
Collaborator

In pandapipes the equations are solved for the mass flow going through the heat exchanger, therefore we do not solve for the velocity. I do not understand how the diameter of the upstream pipes helps us to determine the velocity within the heat exchanger. How does this relate to the diameter of a connected heat exchanger?

The idea of the pressure drop is due to the problem that there is no information about the pipe inside the heat exchanger. Therefore, the Darcy-Weisbach-equation is not solvable. Any ideas on that?

@kava-matrix
Copy link

kava-matrix commented Jan 7, 2025

The loss coefficient is typically derived from experimental data. The diameter would typically be specified as the inlet diameter for example, but someone could also enter the hydraulic diameter. Really, it doesn't matter what diameter you enter as long as it is understandable / predictable. Here is what I would do:

  • Specify the diameter of the inlets to my heat exchanger D
  • V is calculated from D as V = vol_flow_rate / area = 4 * mass_flow_rate / (pi * density * D2)
  • Based on V, specify a loss coefficient KL as 2 * dP / (density * V2) where dP is a known pressure drop for an experimental inlet velocity V.

But really we could also define an alternative loss coefficient which produces a pressure drop proportional to mdot2. It would be a non-standard way of defining the loss coefficient, which isn't ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants