-
Notifications
You must be signed in to change notification settings - Fork 25
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
Comments
Can you share an example where this failure happens?
|
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). GeometryScroll wrap inputsDisplacement Discharge region inputs2 Arcs with Perfect Matching Profile Tube inputsInlet tube length StatesRotational speedRotational speed Inlet StateFluid: Air Discharge StateDischarge pressure Flow model parametersLeft as default (All MechanicalMotor ModelMotor efficiency Heat transfer inputsShell-ambient mean HTC Orbiting Scroll InputsLeft as default Mechanical loss ModelsSpecified mechancial efficiency |
Nope, I mean the script that was generated; you should see the path in the
GUI in the output window. It is somewhere like ${HOME}/.pdsim_temp where
${HOME} is your home folder for your user.
|
Oh right here it is: It also depends on the rotational speed of the compressor. For the same case, different rotational speeds can generate errors or not. |
@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 !)
|
How old is the GUI you are using, it is generating Python 2.7 code.
Everything is in python 3, and I can't even get your script to start
running :/
|
@ibell I have generated this script with the 2.9 version of the GUI (downloaded a few months ago on the PDSim website). |
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$T = -303.394 K$ ).
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 (hereNote 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!
The text was updated successfully, but these errors were encountered: