Debugging help needed

Debugging help needed - Getting error message on variable in formula, but when printing separately the value is there - Сообщения

#1 Опубликовано: 16.11.2020 10:19:38
Terje B

Terje B

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

Группа: User

Trying first time with some bigger formula set, but now I have run into a problem with some error propagating into the calculation. Seems more or less lie anything becomes a problem some way down and even if I reformulate the formulas there pops up another problem with a value not being set as shown in the attachment. When I rewrote the formula then another value was marked red.

Feeling like the program is either running out of memory or there is a problem somewhere else causing the problem in the last part.SMath error.png

I saw someone else looking into the text file here on the forum and I see there are some error message there without me understanding how to debug it:


SMath error - 1.png>




G.3
1
2
H.O2_CO2
K.O2
*
H.N2_CO2
K.N2
*
+
(
*
+
H.O2_CO2
2
^
K.O2
2
^
*
+
H.O2_CO2
H.N2_CO2
*
K.O2
*
K.N2
*
+
H.N2_CO2
H.O2_CO2
*
K.N2
*
K.O2
*
+
H.N2_CO2
2
^
K.N2
2
^
*
+
:


#







Hope someone have time to tell kick me in the right direction here


Terje
#2 Опубликовано: 16.11.2020 11:28:07
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Hope someone have time to tell kick me in the right direction here


Attach the document [no monkey see, no monkey do].
Define the undefined or make the formula dependent of the parameters.
#3 Опубликовано: 16.11.2020 13:23:35
overlord

overlord

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

Группа: Moderator

Wrote

Attach the document [no monkey see, no monkey do].
Define the undefined or make the formula dependent of the parameters.


Jean is right.You want something that is very time consuming for other people to recreate the document they see on a screenshot and debug it while the document can be simply posted.

Regards
#4 Опубликовано: 26.11.2020 09:53:51
Terje B

Terje B

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

Группа: User

Thanks for answering, I didn't attache the file because I wasn't sure it was OK to do this in here.

Blandingers viskositet_R01.sm (272 КиБ) скачан 39 раз(а).Attached is the file.




Best Regards,

Terje
#5 Опубликовано: 26.11.2020 11:42:07
Jean Giraud

Jean Giraud

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

Группа: User

Your numerical engine is scrap from other gyzma(s).
That kind of bug is not possible in native Smath.

BugBugBug.PNG
#6 Опубликовано: 26.11.2020 13:21:54
Andrey Ivashov

Andrey Ivashov

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

Группа: Super Administrator

Program says μr_O2 - not defined:

mega_1.jpg

Searching for μr_O2:

mega_2.jpg

It is really not defined. This equation is only one place where μr_O2 can be found.

This is an error.
#7 Опубликовано: 26.11.2020 15:29:29
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

This is an error.


Quite a curiosity !

Curiosity.PNG
#8 Опубликовано: 30.11.2020 08:11:22
Terje B

Terje B

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

Группа: User

Hello,
As far as I can see I have defined the variable here:

mu_r-O2.png

Have I done something wrong in this definition?


When I try to print the variable other places in the document it seems like it is defined since it returns a value of zero (which it should have).

Did a test with different value

mu_r-O2-1.png

and it still is a problem even if the value is defined:

mu_r-O2-2.png


Appreciate all help from you here!



Terje
#9 Опубликовано: 30.11.2020 09:33:22
Alvaro Diaz Falconi

Alvaro Diaz Falconi

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

Группа: User

Hi. The error msg is about mr_O2, even red colored another expression. But notice that you define "m.r_O2" not "mr_O2", see the difference in the dot.

Clipboard01.jpg

Clipboard02.jpg

Best regards.
Alvaro.
#10 Опубликовано: 04.12.2020 07:23:27
Terje B

Terje B

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

Группа: User

Thanks Alvaro and the rest for assisting me here! Finally found the error with your help now.

I see you use an Unknowns() function, is there some documentation of that one? Did not get same result as you when I tried to enter it.



Terje


#11 Опубликовано: 04.12.2020 16:35:50
Alvaro Diaz Falconi

Alvaro Diaz Falconi

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

Группа: User

Hi Terje.

Under Tools / Plugins open the "Interactive Book" named "Interactive SMath Handbook", which it's an extensive and excellent documentation for SMath and almost all it's plugins, by Martin Kraska.
Then look under plugins / Special solvers. There is an entry for Unknows.

Clipboard01.jpg

Clipboard02.jpg

Best regards.
Alvaro.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений