Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Novice  
#1 Posted : 10 July 2017 21:54:49(UTC)
Novice


Rank: Member

Groups: Registered
Joined: 15/05/2016(UTC)
Posts: 22
Korea, Republic Of
Location: Daejeon

Was thanked: 1 time(s) in 1 post(s)
Hi
I need a help for "FindRoot" function.(See attached file)

Also I got an error sample file(Inst_Colebrook_pipe_data.sm) which was downloaded from this forum.

Please, guide me to solve this error.

Novice

FindRoot_test_0.sm (41kb) downloaded 21 time(s).
Inst_Colebrook Pipe Data.sm (61kb) downloaded 17 time(s).Findroot_error.PNG

Edited by user 10 July 2017 22:03:29(UTC)  | Reason: Not specified

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Davide Carpi  
#2 Posted : 12 July 2017 01:19:08(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,639
Man
Italy
Location: Italy

Was thanked: 1323 time(s) in 873 post(s)
Hello Novice Offline

An important thing is that Q1 must be undefined while you define the system of equations - and as for now even when you call FindRoot; there is a buil-in function Clear(...) for this.

Secondly as for now when there are numerical functions involved in the evaluation of the unknowns this plugin has issues (in this case the issue is in if(f(Q1), that can be replaced by cases(...), however the algorithm then fails to solve for the given initial guess);

FindRoot_test_0.sm (39kb) downloaded 28 time(s).

I'm working to improve both these things.

Edited by user 12 July 2017 01:43:22(UTC)  | Reason: Not specified

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
thanks 1 user thanked Davide Carpi for this useful post.
on 12/07/2017(UTC)
Offline Jean Giraud  
#3 Posted : 12 July 2017 16:09:15(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Novice Go to Quoted Post
Please, guide me to solve this error.


You MUST draw the diagram first !
Get inspired from NDTMA Collab [Colebrook Node].

Comments:

1. The "GivenFind" solver does not necessarily solves.
I have recollection solving for 22 variables in Mathcad 11.
It was necessary to constrain some variables, and this was
possible from some existing models, in fact: just refining
within the "solvability" of the system.

2. You have 7 'Q' indexed: that's not viable.
Instead: Q1, @2, Q3, ... Q7

3. Please rework the project to ease reading/understanding.

Jean

Inst_Colebrook MOODY.sm (22kb) downloaded 22 time(s).
Inst_Colebrook Pipe Data.sm (60kb) downloaded 16 time(s).
Solve Given_Find [UN Frobenius C1, C2].sm (72kb) downloaded 17 time(s).
FindRoot_test_0 Revisit.sm (42kb) downloaded 21 time(s).
Inst_Colebrook Pipe Data [Solve Node Flow].sm (150kb) downloaded 15 time(s).
Inst_Colebrook.sm (192kb) downloaded 13 time(s).
Inst_Colebrook.sm (192kb) downloaded 13 time(s).
Offline Novice  
#4 Posted : 15 July 2017 13:56:58(UTC)
Novice


Rank: Member

Groups: Registered
Joined: 15/05/2016(UTC)
Posts: 22
Korea, Republic Of
Location: Daejeon

Was thanked: 1 time(s) in 1 post(s)
Dear Jean,

Thank you very much for your advice and examples
It is helpful to me.

Thank you!

MS
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.