f(x, y) - 3D plot and optimal point

f(x, y) - 3D plot and optimal point - Steam Turbine - Messages

#1 Posted: 11/6/2023 12:13:14 AM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

I have f(x, y) - thermal efficiency of a steam turbine with two steam extractions for heating feed water depending on the extraction pressures.
Question.
1. How to find the optimal pressure values at which the efficiency will be maximum?
2. Is it possible to build a surface? For now I have two separate 2D graphics.
More https://link.springer.com/book/10.1007/978-3-319-26674-9
2RegP-Ideal-new.sm (94 KiB) downloaded 33 time(s).
2RegP-Ideal-Skhema.png
2RegP-Ideal-Plots.png
#2 Posted: 11/6/2023 12:43:57 AM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

No, you cannot replace WaterSteamPro with Cool Prop for water/steam.
WaterSteamPro is a certified program!
Compare please two plots
4-KPD-Plots-Cool_Prop.png
3-KPD-Plots-WSP.png
#3 Posted: 11/7/2023 3:44:54 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

I am not familiar with CoolProps but I think I could make a nice 3D plot with Maxima if you provide the smath file
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Valery Ochkov 11/7/2023 1:09:00 PM
#4 Posted: 11/7/2023 1:10:43 PM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

Wrote

I am not familiar with CoolProps but I think I could make a nice 3D plot with Maxima if you provide the smath file



Thanks, Martin!
Must be someone so
Mathcad-WSP.png
#5 Posted: 11/7/2023 2:53:03 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

OK but I need a file where the wsp calls are replaced by coolprop ones. Even if plotting doesn't work as expected.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#6 Posted: 11/8/2023 1:05:10 PM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

Wrote

OK but I need a file where the wsp calls are replaced by coolprop ones. Even if plotting doesn't work as expected.



See please attach
2RegP-Ideal-Cool_Prop-95.sm (73 KiB) downloaded 42 time(s).
2RegP-Ideal-Cool_Prop-95.pdf (361 KiB) downloaded 39 time(s).
Martin (and all), I am waiting for the solution - 3D-plot and optimal values of p1 and p2.
#7 Posted: 11/8/2023 9:11:41 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Just the plot, no optimization yet.

2023-11-08 15_08_23-SMath Solver - [2RegP-Ideal-Cool_Prop-95_Kr.sm_].png
2RegP-Ideal-Cool_Prop-95_Kr.sm (300 KiB) downloaded 40 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
2 users liked this post
Oscar Campo 11/8/2023 9:22:00 PM, Valery Ochkov 11/8/2023 10:27:00 PM
#8 Posted: 11/9/2023 1:16:22 AM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

No optimization yet.
For checking
Answer.png

#9 Posted: 11/9/2023 6:31:08 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

No, you cannot replace WaterSteamPro with Cool Prop for water/steam.
WaterSteamPro is a certified program!


Agreed: CoolProp is CoolProp.
For quick visit, I use freeware Katmar IAPWS=97 in all sorts of units.
By same token, in Smath, we have lot of water/steam formulas.
What about you tabulate matrix style, then spline/interpolate.
I will be back on your document ... Jean
1 users liked this post
Valery Ochkov 11/9/2023 6:37:00 PM
#10 Posted: 11/10/2023 1:49:18 PM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

Wrote

Wrote

No, you cannot replace WaterSteamPro with Cool Prop for water/steam.
WaterSteamPro is a certified program!


Agreed: CoolProp is CoolProp.
For quick visit, I use freeware Katmar IAPWS=97 in all sorts of units.
By same token, in Smath, we have lot of water/steam formulas.
What about you tabulate matrix style, then spline/interpolate.
I will be back on your document ... Jean


1-Plagin.png
2-WSP.png
3-Format.png
#11 Posted: 11/11/2023 1:40:46 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

... confirmed vs my formula IAPWS-97
#12 Posted: 11/12/2023 2:37:31 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

No optimization yet.
For checking
Answer.png



I get slightly different values. Still no automatic optimization because the objective function doesn't translate to Maxima. As a first step I made the function more robust by solving the two equations sequentially instead of simultaneously. In the original version sampling for the plot occasionally failed.

Plot MPa.pdf (219 KiB) downloaded 23 time(s).
2RegP-Ideal-Cool_Prop-95_Kr_detail.sm (157 KiB) downloaded 30 time(s).
2023-11-11 19_21_55-SMath Solver - [2RegP-Ideal-Cool_Prop-95_Kr_detail.sm_].png
2RegP-Ideal-Cool_Prop-95_Kr_detail.pdf (520 KiB) downloaded 30 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
2 users liked this post
Valery Ochkov 11/12/2023 2:41:00 AM, Alvaro Diaz Falconi 11/12/2023 9:04:00 AM
#13 Posted: 11/12/2023 2:51:46 AM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

Wonderful!
But I dare to note that a real steam turbine unit has up to eight steam extractions from the turbine to regenerative heaters. And not only mixing, but also surface type.

#14 Posted: 11/12/2023 9:07:21 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Wrote

I get slightly different values. ...


Hi. Using the definition for partial derivatives and a pure numerical solver.

Clipboard01.png

2RegP-Ideal-Cool_Prop-95_Kr_detail.sm (162 KiB) downloaded 38 time(s).

Best regards.
Alvaro.
3 users liked this post
Martin Kraska 11/12/2023 9:10:00 AM, Valery Ochkov 11/12/2023 2:12:00 PM, Oscar Campo 11/12/2023 6:29:00 PM
#15 Posted: 11/14/2023 2:13:59 AM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

6-KPD-Plots.png

  • New Posts New Posts
  • No New Posts No New Posts