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

ValueError for certain cases of PDSim #75

Open
caskandavor opened this issue Mar 9, 2023 · 7 comments
Open

ValueError for certain cases of PDSim #75

caskandavor opened this issue Mar 9, 2023 · 7 comments

Comments

@caskandavor
Copy link

caskandavor commented Mar 9, 2023

Hi all,

I have been using PDSim to better understand scroll compressors, but something has been bugging me for a while. For some cases (typically for high discharge pressures, around 15 bar), there is a ValueError (options.p is not valid in saturation_T_pure_1D_P). As seen in the screenshot below, this seems to come from CoolProp, as we try to get a pressure from a non valid temperature (here $T = -303.394 K$).

Note that this happens at the very beginning of the run (not even the first computing iteration is completed).

Changing the radial and flank gaps can help sometimes. Since these control the mass flows in and out of the control volumes and are therefore present in the conservation equations (mass and energy), I figured that perhaps they are not well handled in some cases.

There are also cases where the error is p is not a valid number.

Have you encountered such cases as well ?

Thank you!

image

@ibell
Copy link
Owner

ibell commented Mar 9, 2023 via email

@caskandavor
Copy link
Author

caskandavor commented Mar 9, 2023

Do you mean all the parameters that I used? If yes, here is an example which generates an error: (Note all solver parameters are lest as default).

Geometry

Scroll wrap inputs

Displacement $[m^3/rev]: 0.00007643$
Volume ratio $[-]: 2.67$
Thickness of the scroll wrap $[m]$: 0.0045
Orbiting radius $[m]$: 0.002387
$\phi_{i0}$ $[rad]: 2$
$\phi_{is}$ $[rad]: 6.5$
$\phi_{os}$ $[rad]: 4.3$
Flank gap width $[m]: 10e-6$
Radial gap width $[m]: 10e-6$

Discharge region inputs

2 Arcs with Perfect Matching Profile
Discharge port diameter $[m]: 0.015$

Tube inputs

Inlet tube length $[m]: 0.0$
Inlet tube inner diameter $[m]: 0.02$
Outlet tube length $[m]: 0.0$
Outlet tube inner diameter $[m]: 0.02$

States

Rotational speed

Rotational speed $[rad/s]: 209$

Inlet State

Fluid: Air
Temperature $[K]: 293.15$
Pressure $[kPa]: 101.325$

Discharge State

Discharge pressure $[kPa: 1601.325]$

Flow model parameters

Left as default (All $X_d=0.8$)

Mechanical

Motor Model

Motor efficiency $[-]: 0.95$

Heat transfer inputs

Shell-ambient mean HTC $[kW/m^2/K]: 1.0$
Shell outer area $[m^2]: 0.0405$
Ambient temperature $[K]: 333.15 K$
HTC in the scrolls $[kW/m^2/K]: 0.2$
Fraction of motor losses: $0$

Orbiting Scroll Inputs

Left as default

Mechanical loss Models

Specified mechancial efficiency $[-]: 0.9$

@ibell
Copy link
Owner

ibell commented Mar 9, 2023 via email

@caskandavor
Copy link
Author

caskandavor commented Mar 10, 2023

Oh right here it is:
script_0aa221a06241.txt

It also depends on the rotational speed of the compressor. For the same case, different rotational speeds can generate errors or not.

@caskandavor
Copy link
Author

caskandavor commented Mar 14, 2023

@ibell was this the generated script you were refering to ?

Also, as I clarification, what I meant by the following quote is not that there is a problem with CoolProp, but rather that perhaps PDSim has an issue in solving the ODEs and yields a wrong and non physical result (for instance a negative temperature in K), which in turn gets rejected by CoolProp (rightfully so !)

As seen in the screenshot below, this seems to come from CoolProp, as we try to get a pressure from a non valid temperature (Here $T=-303.394 [K]$)

@ibell
Copy link
Owner

ibell commented Mar 15, 2023 via email

@caskandavor
Copy link
Author

caskandavor commented Mar 16, 2023

@ibell I have generated this script with the 2.9 version of the GUI (downloaded a few months ago on the PDSim website).
For my work, I use PDSim 2.14 but without the GUI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants