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 - Сообщения

#1 Опубликовано: 11.03.2020 11:40:16
Joki720

Joki720

0 сообщений из 12 понравились пользователям.

Группа: 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 МиБ) скачан 38 раз(а).

Please help, I know you can
#2 Опубликовано: 11.03.2020 15:01:10
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 11.03.2020 15:04:25
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

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


... collapsed area are locked ! password.
#4 Опубликовано: 11.03.2020 15:27:21
Joki720

Joki720

0 сообщений из 12 понравились пользователям.

Группа: 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 Опубликовано: 11.03.2020 15:32:11
Joki720

Joki720

0 сообщений из 12 понравились пользователям.

Группа: User

It`s file without first error, you can use it.
Raschet propusknojj sposobnosti truboprovoda s drosselem na vykhode.sm (1 МиБ) скачан 36 раз(а).
#6 Опубликовано: 11.03.2020 19:23:58
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 МиБ) скачан 33 раз(а).
#7 Опубликовано: 11.03.2020 22:22:58
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 МиБ) скачан 32 раз(а).

#8 Опубликовано: 12.03.2020 08:40:48
Joki720

Joki720

0 сообщений из 12 понравились пользователям.

Группа: 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 МиБ) скачан 32 раз(а).



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 Опубликовано: 12.03.2020 12:26:51
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 МиБ) скачан 32 раз(а).
#10 Опубликовано: 12.03.2020 19:56:35
Joki720

Joki720

0 сообщений из 12 понравились пользователям.

Группа: 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 МиБ) скачан 32 раз(а).



I don`t understand too. May be anyone have any idea?
#11 Опубликовано: 13.03.2020 04:43:39
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 МиБ) скачан 42 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#12 Опубликовано: 14.03.2020 16:19:30
Joki720

Joki720

0 сообщений из 12 понравились пользователям.

Группа: 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 МиБ) скачан 42 раз(а).



Perfect, may be you can solve "SOLVE" function in this program???
#13 Опубликовано: 14.03.2020 21:26:36
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 МиБ) скачан 30 раз(а).
#14 Опубликовано: 15.03.2020 09:29:47
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 МиБ) скачан 33 раз(а).
#15 Опубликовано: 15.03.2020 15:25:18
Joki720

Joki720

0 сообщений из 12 понравились пользователям.

Группа: 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 МиБ) скачан 33 раз(а).



Sorry. I understand you, I didn’t write it down. instead of μ.др . -> μ.тр
#16 Опубликовано: 16.03.2020 21:51:00
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 МиБ) скачан 34 раз(а).
#17 Опубликовано: 17.03.2020 11:04:05
Joki720

Joki720

0 сообщений из 12 понравились пользователям.

Группа: 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 МиБ) скачан 34 раз(а).



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 КиБ) скачан 32 раз(а).

Here is the answer, sorry, that in Russian

#18 Опубликовано: 17.03.2020 14:48:43
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 20.03.2020 12:11:57
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений