Momentum Balance across Ejector

Momentum Balance across Ejector - Solve command ambiguity - Poruke

#1 Objavljeno: 23. 6. 2018. 02:34:35
usamakhan

usamakhan

7 svidjanja u 98 postova.

Grupa: User

In the attached problem I am having x2 issues. The first thing is that if I assign Mhp to 17 elements & then try to solve (built in command) the array of 100 elements is returned? Secondly using Solve (Maxima) I get the required answer (17 element array) but only the last element has the answer (rest are zero)?

Objective is to plot D1 values for given set of Mhp values

Fajl nije pronađen.Fajl nije pronađen.
#2 Objavljeno: 23. 6. 2018. 06:21:33
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

There were some issues in your file.
1. your expression MomentumBalance... isn't ready for vector arguments. V[2*Mhp evaluates to the scalar product between two vectors. This probably isn't what you want.
2. The last loop iterates over just one element.
3. Data is constantly overwritten by the last entry.
4. In the first iteration of the loop you overwrite your range of value with the first element.
5. Solve() returns a boolean equation. In order to convert this into an assignent, you can use the substitution function at()

The solution is to provide a separate variable holding the range of values and then iterate Mhp over this range.

If you just want the plot, you can use the Maxima Draw function implicit().

2018-06-23 10_58_44-SMath Studio - [Page1.sm_].png
implicit.sm (136,01 KiB) preuzeto 1247 put(ova).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 korisnika je svidelo ovu objavu
frapuano 23. 6. 2018. 14:29:00
#3 Objavljeno: 23. 6. 2018. 09:21:58
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

2018-06-23_17-20-53.png

MomentumBalance.sm (4,65 KiB) preuzeto 1211 put(ova).
MomentumBalance.pdf (16,23 KiB) preuzeto 776 put(ova).
Russia ☭ forever, Viacheslav N. Mezentsev
1 korisnika je svidelo ovu objavu
frapuano 23. 6. 2018. 14:29:00
#4 Objavljeno: 23. 6. 2018. 13:37:01
usamakhan

usamakhan

7 svidjanja u 98 postova.

Grupa: User

Wrote

5. Solve() returns a boolean equation. In order to convert this into an assignent, you can use the substitution function at()



:d thanks for this marvelous explanation. However I failed to comprehend why the built in solve command returns 100 elements array? Doesn't it work similarly to Maxima Solve?

uni, thanks but how do I dynamically convert the expression MomentumBalance to the one you have used to plot. I mean I cannot find something like this which will result in the right construct to be used by XYPlot

f(x,y):= RHS(expr) - LHS(expr)

#5 Objavljeno: 23. 6. 2018. 14:11:58
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

Try this.

implicit1.sm (15,95 KiB) preuzeto 1241 put(ova).
implicit1.pdf (26,93 KiB) preuzeto 841 put(ova).
Russia ☭ forever, Viacheslav N. Mezentsev
1 korisnika je svidelo ovu objavu
frapuano 23. 6. 2018. 14:29:00
#6 Objavljeno: 24. 6. 2018. 10:18:11
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

thanks for this marvelous explanation. However I failed to comprehend why the built in solve command returns 100 elements array? Doesn't it work similarly to Maxima Solve?

uni, thanks but how do I dynamically convert the expression MomentumBalance to the one you have used to plot. I mean I cannot find something like this which will result in the right construct to be used by XYPlot

f(x,y):= RHS(expr) - LHS(expr)



1. Once you have Ejector in the two variables, recast as Uni did
2. Solve for an analytical solution ... via Maple
3. Recast/export

Ejector.PNG

Project Solve Ejector [Maple].sm (8,58 KiB) preuzeto 1013 put(ova).
  • Novi postovi
  • Nema novih postova