Issue in SmathStudio with "Solve"

Issue in SmathStudio with "Solve" - For a long time I can't solve the problem in this program, I can't find the roots - Messaggi

#1 Pubblicato: 11/03/2020 11:40:16
Joki720

Joki720

0 apprezzamenti in 12 post.

Gruppo: User

For a long time I can't solve the problem in this program, I can't find the roots

issue.png

Project

Raschet propusknojj sposobnosti truboprovoda s drosselem na vykhode.sm (1,44 MiB) scaricato 1288 volta(e).

Please help, I know you can
#2 Pubblicato: 11/03/2020 15:01:10
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

For a long time I can't solve the problem in this program, I can't find the roots


The first error message is in Function_Prop
It says "must be a real number" ?
#3 Pubblicato: 11/03/2020 15:04:25
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

The first error message is in Function_Prop
It says "must be a real number" ?


... collapsed area are locked ! password.
#4 Pubblicato: 11/03/2020 15:27:21
Joki720

Joki720

0 apprezzamenti in 12 post.

Gruppo: User

Wrote

Wrote

The first error message is in Function_Prop
It says "must be a real number" ?


... collapsed area are locked ! password.



Password 2153
But it`s not effect to my Issue
#5 Pubblicato: 11/03/2020 15:32:11
Joki720

Joki720

0 apprezzamenti in 12 post.

Gruppo: User

It`s file without first error, you can use it.
Raschet propusknojj sposobnosti truboprovoda s drosselem na vykhode.sm (1,44 MiB) scaricato 1302 volta(e).
#6 Pubblicato: 11/03/2020 19:23:58
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

It`s file without first error, you can use it.


... does not either SS 6179.
You may replace Function_prop(P,T,M) by the Spline Matrix
Collapsed in red ... try some suite from there.
Watch unit system [not my cup of tea !]

Raschet propusknojj sposobnosti truboprovoda s drosselem na vykhode (1).sm (1,52 MiB) scaricato 1263 volta(e).
#7 Pubblicato: 11/03/2020 22:22:58
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

It`s file without first error, you can use it.


Still red top2bottom
As it looks, you are attempting to integrate kg/m³ over 'p'
for the given 293 °K ... done otherwise finite differences.
In your solve block, vary many things are constants that could
be simplified but so many are undefined.
What should this solve bloc should do wrt the integration ?
find an intersection wrt some 'P' or else ?
The meaning of the cumulative integration reads like this:
"for °K 293, accumulate the kg/m³ over the 'p' range'
In other words: the cumulative mass-flow kg/m³over 'p' range

Raschet propusknojj sposobnosti truboprovoda s drosselem na vykhode (1).sm (1,53 MiB) scaricato 1268 volta(e).

#8 Pubblicato: 12/03/2020 08:40:48
Joki720

Joki720

0 apprezzamenti in 12 post.

Gruppo: User

Wrote

Wrote

It`s file without first error, you can use it.


Still red top2bottom
As it looks, you are attempting to integrate kg/m³ over 'p'
for the given 293 °K ... done otherwise finite differences.
In your solve block, vary many things are constants that could
be simplified but so many are undefined.
What should this solve bloc should do wrt the integration ?
find an intersection wrt some 'P' or else ?
The meaning of the cumulative integration reads like this:
"for °K 293, accumulate the kg/m³ over the 'p' range'
In other words: the cumulative mass-flow kg/m³over 'p' range

Raschet propusknojj sposobnosti truboprovoda s drosselem na vykhode (1).sm (1,53 MiB) scaricato 1268 volta(e).



I don't understand you. What should I do? Or, if You can, please correct it

This is the correct response to the variable that should be obtained in the Solve function
InkedRaschet propusknojj sposobnosti truboprovoda s drosselem na vykhode_LI.jpg
#9 Pubblicato: 12/03/2020 12:26:51
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Function_prop(P,T,M) does not work.
Use the Spline Matrix in lieu
I understand nothing in there.
Hope Collabs read and have some ideas !

Raschet propusknojj sposobnosti truboprovoda s drosselem na vykhode (20200312).sm (1,54 MiB) scaricato 1295 volta(e).
#10 Pubblicato: 12/03/2020 19:56:35
Joki720

Joki720

0 apprezzamenti in 12 post.

Gruppo: User

Wrote

Function_prop(P,T,M) does not work.
Use the Spline Matrix in lieu
I understand nothing in there.
Hope Collabs read and have some ideas !

Raschet propusknojj sposobnosti truboprovoda s drosselem na vykhode (20200312).sm (1,54 MiB) scaricato 1295 volta(e).



I don`t understand too. May be anyone have any idea?
#11 Pubblicato: 13/03/2020 04:43:39
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

Wrote

Wrote

For a long time I can't solve the problem in this program, I can't find the roots


The first error message is in Function_Prop
It says "must be a real number" ?


I fixed Function_Prop using InterpBilinear() from the Statistical Tools plugin. Note that the definition without line operator behaves buggy, because you even won't get the usual storage preview when hovering over the definition. This is strange and indicates something really bad under the hood.

Yet fixing the function doesn't solve any of the problems downstream. But given the strange error messages and bugs I'd say build 7251 can't be used safely anyways.

BTW, instead the if-else cascades I'd recommend using the selection index as index of a vector of options.

2020-03-13 08_26_21-SMath Studio 0.99.7251 - [Raschet%20propusknojj%20sposobnosti%20truboprovoda%20s.png
Raschet%20propusknojj%20sposobnosti%20truboprovoda%20s%20drosselem%20na%20vykhode_Kr.sm (1,44 MiB) scaricato 1379 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#12 Pubblicato: 14/03/2020 16:19:30
Joki720

Joki720

0 apprezzamenti in 12 post.

Gruppo: User

Wrote

Wrote

Wrote

For a long time I can't solve the problem in this program, I can't find the roots


The first error message is in Function_Prop
It says "must be a real number" ?


I fixed Function_Prop using InterpBilinear() from the Statistical Tools plugin. Note that the definition without line operator behaves buggy, because you even won't get the usual storage preview when hovering over the definition. This is strange and indicates something really bad under the hood.

Yet fixing the function doesn't solve any of the problems downstream. But given the strange error messages and bugs I'd say build 7251 can't be used safely anyways.

BTW, instead the if-else cascades I'd recommend using the selection index as index of a vector of options.

2020-03-13 08_26_21-SMath Studio 0.99.7251 - [Raschet%20propusknojj%20sposobnosti%20truboprovoda%20s.png
Raschet%20propusknojj%20sposobnosti%20truboprovoda%20s%20drosselem%20na%20vykhode_Kr.sm (1,44 MiB) scaricato 1379 volta(e).



Perfect, may be you can solve "SOLVE" function in this program???
#13 Pubblicato: 14/03/2020 21:26:36
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

Perfect, may be you can solve "SOLVE" function in this program ???


1. Up to this point: NO ... μ.др is undefined
2. If μ.др has a value: plug it in this document.
3. Please, don't re-post your original, so I can do more
from this document.
4. Units don't match in this project.

Raschet propusknojj sposobnosti truboprovoda s drosselem na vykhode (20200314).sm (1,52 MiB) scaricato 1246 volta(e).
#14 Pubblicato: 15/03/2020 09:29:47
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

... look closely at the point we are.
Define the base viscosity μ.др
The complex term is most puzzling ?
Cheers ... Jean

Raschet propusknojj [20200315].sm (1,52 MiB) scaricato 1043 volta(e).
#15 Pubblicato: 15/03/2020 15:25:18
Joki720

Joki720

0 apprezzamenti in 12 post.

Gruppo: User

Wrote

... look closely at the point we are.
Define the base viscosity μ.др
The complex term is most puzzling ?
Cheers ... Jean

Raschet propusknojj [20200315].sm (1,52 MiB) scaricato 1043 volta(e).



Sorry. I understand you, I didn’t write it down. instead of μ.др . -> μ.тр
#16 Pubblicato: 16/03/2020 21:51:00
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

Sorry. I understand you, I didn’t write it down. instead of μ.др . -


... now that we have the base viscosity, we can plot/tabulate "Bloc".
From there, given some value in "Bloc" we can solve for the pressure
that creates this value .
Cheers ... jean
Does it make you progress in your project ?

Raschet propusknojj [20200316].sm (1,55 MiB) scaricato 1000 volta(e).
#17 Pubblicato: 17/03/2020 11:04:05
Joki720

Joki720

0 apprezzamenti in 12 post.

Gruppo: User

Wrote

Wrote

Sorry. I understand you, I didn’t write it down. instead of μ.др . -


... now that we have the base viscosity, we can plot/tabulate "Bloc".
From there, given some value in "Bloc" we can solve for the pressure
that creates this value .
Cheers ... jean
Does it make you progress in your project ?

Raschet propusknojj [20200316].sm (1,55 MiB) scaricato 1000 volta(e).



The answer does not match, it might be better if I attach a file from MathCad. I have to translate the program from MathCad to SmathStudio, but sometimes I get errors like this.

Raschet propusknojj sposobnosti truboprovoda s drosselem na vykhode.xmcd (487,33 KiB) scaricato 1299 volta(e).

Here is the answer, sorry, that in Russian

#18 Pubblicato: 17/03/2020 14:48:43
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

I have to translate the program from MathCad to SmathStudio


... then check if the "Bloc" you have constructed is OK.
Tabulate the Mathcad "Bloc" that you have translated Smath.
My working Mathcad is 11 not connected to Internet,
My XP Pro. has no AV . If the two MCD/Smath blocs don't
agree/tabulate same: then your translation is in doubt.
Cheers ... Jean
#19 Pubblicato: 20/03/2020 12:11:57
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Your Smath ρ vs pressure [p] does not correspond to MCD.
I can't help more from so much not clear.
Check with Viacheslav, he is with MCD ... Maybe Radovan too.
Cheers, best ... Jean
  • Nuovi post
  • Nessun nuovo post