Difficult iteration equation in SMath

Difficult iteration equation in SMath - Messages

#1 Posted: 4/12/2012 6:04:41 AM
Gerjan

Gerjan

0 likes in 4 posts.

Group: User

Hello,

My compliments for SMath, it's a great program!

I've a question about the possibility of solving an iteration equation with SMath.
To calculate a pressure drop of air flow in a part a calculation is set up.
The equation tries to solve the speed.
A lot of different friction factors are involved, all dependent on Reynolds (and therefore speed).
I don't think the calculations itself are very hard, but there will be a lot of variables.
A friend of mine did something similar in Excel with Macros.

Is it possible to solve complex iteration equations in SMath? (and is it easier/better than Excel)
Are there any examples of iteration equations in SMath? (or with the same structure as SMath)

The exact equation is not yet finished.
I'm also a new user in SMath (I've a few hours experience in Mathcad 2001)

Thanks in advance,
Gerjan
#2 Posted: 4/12/2012 9:58:20 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hello Gerjan,

Try to look in the "Civil Engineering Hydraulics/Fluid Mechanics" under Examples section on SMath Wiki.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 users liked this post
Andrey Ivashov 4/13/2012 12:24:00 PM
#3 Posted: 4/13/2012 4:56:34 AM
Gerjan

Gerjan

0 likes in 4 posts.

Group: User

Thanks for your reply. Didn't see the Wiki page before.
I found this example, and I think it will help me.
I'm happy SMath can do this kind of calculations!
I think further questions will arise as soon as I start with the model.
Thanks for your help so far, I'll keep you guys informed.
Gerjan

#4 Posted: 4/16/2012 10:20:07 AM
Gerjan

Gerjan

0 likes in 4 posts.

Group: User

I want to calculate pressure losses over a part with different friction factors, length and hydraulic diameter.
For each of these factors I want to give a view values.
I've tried to put these values in a matrix but I don't know how to define each variable.
I also put a serie of data in one matrix, but it has to be square...

dp(v)=0,5*rho*[(f*L)/Dh]*v^2

Pressure loss should be calculated first with f1, L1 and Dh1.
And then f2, L2 and Dh2 and so on.
A summation should be done to calculate the total pressure losses.

Can anyone give me tips or an example how to do this?
#5 Posted: 4/16/2012 12:04:10 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hello Gerjan,



file - dp.sm

You should read some tutorials on the Wiki - Tutorials

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#6 Posted: 5/15/2012 8:08:51 AM
Gerjan

Gerjan

0 likes in 4 posts.

Group: User

After some practice with help of the tutorials i've completed the calculation.
Thanks for your tips!

I made several smath files. Now i want to summarize these.
Is there an option to collect variables of different files on one sheet?
#7 Posted: 5/15/2012 2:37:10 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hello Gerjan,

Read this file Data files in order to figure out how to exchange data between SMath files.
Read also this post - ImportData. ImportData() function has been implemented and I hope the exportData() will be in the next release.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
  • New Posts New Posts
  • No New Posts No New Posts