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 - Messages

#1 Posted: 3/11/2020 11:40:16 AM
Joki720

Joki720

0 likes in 12 posts.

Group: 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 MiB) downloaded 38 time(s).

Please help, I know you can
#2 Posted: 3/11/2020 3:01:10 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 3/11/2020 3:04:25 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

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


... collapsed area are locked ! password.
#4 Posted: 3/11/2020 3:27:21 PM
Joki720

Joki720

0 likes in 12 posts.

Group: 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 Posted: 3/11/2020 3:32:11 PM
Joki720

Joki720

0 likes in 12 posts.

Group: User

It`s file without first error, you can use it.
Raschet propusknojj sposobnosti truboprovoda s drosselem na vykhode.sm (1 MiB) downloaded 36 time(s).
#6 Posted: 3/11/2020 7:23:58 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 MiB) downloaded 33 time(s).
#7 Posted: 3/11/2020 10:22:58 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 MiB) downloaded 32 time(s).

#8 Posted: 3/12/2020 8:40:48 AM
Joki720

Joki720

0 likes in 12 posts.

Group: 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 MiB) downloaded 32 time(s).



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 Posted: 3/12/2020 12:26:51 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 MiB) downloaded 32 time(s).
#10 Posted: 3/12/2020 7:56:35 PM
Joki720

Joki720

0 likes in 12 posts.

Group: 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 MiB) downloaded 32 time(s).



I don`t understand too. May be anyone have any idea?
#11 Posted: 3/13/2020 4:43:39 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: 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 MiB) downloaded 42 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#12 Posted: 3/14/2020 4:19:30 PM
Joki720

Joki720

0 likes in 12 posts.

Group: 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 MiB) downloaded 42 time(s).



Perfect, may be you can solve "SOLVE" function in this program???
#13 Posted: 3/14/2020 9:26:36 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 MiB) downloaded 30 time(s).
#14 Posted: 3/15/2020 9:29:47 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 MiB) downloaded 36 time(s).
#15 Posted: 3/15/2020 3:25:18 PM
Joki720

Joki720

0 likes in 12 posts.

Group: 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 MiB) downloaded 36 time(s).



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

Jean Giraud

983 likes in 6866 posts.

Group: 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 MiB) downloaded 37 time(s).
#17 Posted: 3/17/2020 11:04:05 AM
Joki720

Joki720

0 likes in 12 posts.

Group: 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 MiB) downloaded 37 time(s).



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 KiB) downloaded 32 time(s).

Here is the answer, sorry, that in Russian

#18 Posted: 3/17/2020 2:48:43 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 3/20/2020 12:11:57 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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
  • New Posts New Posts
  • No New Posts No New Posts