-
Notifications
You must be signed in to change notification settings - Fork 54
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
Using PH functions with modelingToolkit.jl #341
Comments
Hello, This probably requires symbolically registering some functions ( |
Hi, thanks for replying so quickly. I had registered the function, it doesn't seem to be that. If I don't register the function I get a more understandable error message about using Num in the wrong context. |
The support for using AD on volume was recently added, so if tou find anything, please let me know. Coming back to the original problem, there is probably a propagation problem on our part that can be fixed. Ideally, the same thing that we did with volume can be done here (do the iterative calculations with the primal values and then calculate the derivatives using the primal result). Im probably taking this problem to test if AD can be propagated though the stack of functions and iterative procedures that is |
Hello,
A very impressive package.
I've been trying to use the Clapeyron.PH.temperature function. The function works on its own, but produces an error when used inside a modelingToolkit non=linear problem.
Here is the code to reproduce. It was orignally a model of heat exchanger, but I've tried to cut it to the minimum to reproduce the error.
And the error I get:
I didn't get any similar errors using the PT functions, but in the flowsheet models I am making it seems more natural to keep track of p and h, and calculate other properties when needed.
The text was updated successfully, but these errors were encountered: