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

Notification

Icon
Error

Login


6 Pages<1234>»
Options
Go to last post Go to first unread
Offline Jean Giraud  
#21 Posted : 26 October 2017 20:43:56(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: hanskl Go to Quoted Post
It is simply a matter of symbolically reversing a equation with respect to a variable.


Part of the answer in red [attached]
Will be back later on. Inversing a function
is sometimes difficult, but always possible.

Cheers, Jean 4.2.5 Steel temperature development.sm (26kb) downloaded 41 time(s).
Offline hanskl  
#22 Posted : 26 October 2017 20:46:13(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: omorr Go to Quoted Post
Attach the file with the comments you mentioned. I hope we will figure out what was wrong Good

Regards,
Radovan

P.S. By the way, Martin Kraska prepared the Portable version with quite a lot of plugins included.
Try it if you find this way more appropriate for you/


Thanks!

Attached is the workbook in a compressed format (deleted/removed a lot of irrelevant stuff).

I have written some comments here and there, and added pictures of examples i am using to verify the DE.

425specificheat.sm (764kb) downloaded 33 time(s).
Offline hanskl  
#23 Posted : 26 October 2017 20:50:46(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: hanskl Go to Quoted Post
It is simply a matter of symbolically reversing a equation with respect to a variable.


Part of the answer in red [attached]
Will be back later on. Inversing a function
is sometimes difficult, but always possible.

Cheers, Jean 4.2.5 Steel temperature development.sm (26kb) downloaded 41 time(s).


Thank you for helping me.

I just added the Maple plugin. It now tells me the input format is not valid...
Offline Jean Giraud  
#24 Posted : 26 October 2017 21:40:37(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
... solving for muo is almost constant, still puzzling ?
Will be back tonight.

4.2.5 Steel temperature development.sm (35kb) downloaded 26 time(s).
Offline hanskl  
#25 Posted : 26 October 2017 22:07:33(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
... solving for muo is almost constant, still puzzling ?
Will be back tonight.

4.2.5 Steel temperature development.sm (35kb) downloaded 26 time(s).


This is the result I get.. I don't understand.. Huh

maple.PNG
Offline Jean Giraud  
#26 Posted : 27 October 2017 00:25:00(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: hanskl Go to Quoted Post
This is the result I get.. I don't understand..


Ah ! Your attempt is incorrect, why ?
Power function X^Y is devil to maths. It involves ln(x) & exp(x),
Thus too reflexive for any symbolic solver, you must generalize.
See attached all, correct now.

Cheers, Jean

4.2.5 Steel temperature development.sm (42kb) downloaded 26 time(s).
Offline Jean Giraud  
#27 Posted : 27 October 2017 00:44:52(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Problem 1: How can I solve the differential equation 4.25 with respect to
θa(t)? I want to be able to calculate the development of temperature
in a steel member as a function of time.

Not sure I understand, θa(t) does not appear in 4.25 ?
Offline hanskl  
#28 Posted : 27 October 2017 00:52:22(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: hanskl Go to Quoted Post
This is the result I get.. I don't understand..


Ah ! Your attempt is incorrect, why ?
Power function X^Y is devil to maths. It involves ln(x) & exp(x),
Thus too reflexive for any symbolic solver, you must generalize.
See attached all, correct now.

Cheers, Jean

4.2.5 Steel temperature development.sm (42kb) downloaded 26 time(s).


I'm sorry, but I really don't understand your approach to solving the equation 4.22 for my.0. But the results in the Check-matrix are indeed correct. Can you please explain what you did there?

Thanks

problem 2.PNG
Offline hanskl  
#29 Posted : 27 October 2017 00:56:38(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Problem 1: How can I solve the differential equation 4.25 with respect to
θa(t)? I want to be able to calculate the development of temperature
in a steel member as a function of time.

Not sure I understand, θa(t) does not appear in 4.25 ?


You are correct. θa is not included in 4.25.

Please have a look at the latest workbook from post #22. Radovan has helped me arrange all the expressions into a ODE solver, however, there is still one problem.

I appreciate all your help! Yes
Offline Jean Giraud  
#30 Posted : 27 October 2017 05:23:15(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: hanskl Go to Quoted Post
I'm sorry, but I really don't understand your approach to solving the equation 4.22 for my.0. But the results in the Check-matrix are indeed correct. Can you please explain what you did there?


By inspection, if μ is < 1, we know in advance the result will be complex.
The "check" was to confirm this assumption. When you say solve for μ,
you are correct in your own words. In fact the matter is to inverse the roles.
From the explicit f(x):= ... where 'x' is given on range, now you want the
inverse of the procedure, i.e: given f(x) solve for 'x'. The procedure is
called "inversing". The Maple solution is the InverseFunction.
On that, Smath/Maple companions are far superior to Mathcad 11/Maple.

Please, read more on the revisited work sheet.
I will look at Radovan.

Cheers, Jean

4.2.5 Steel temperature development.sm (39kb) downloaded 24 time(s).
Offline Jean Giraud  
#31 Posted : 27 October 2017 06:42:17(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: hanskl Go to Quoted Post
Attached is the workbook in a compressed format (deleted/removed a lot of irrelevant stuff).

I have written some comments here and there, and added pictures of examples i am using to verify the DE.


You are solving for θ.a wrt c.a which in turn depends upon θ.a itself
That's too "circular". You can solve iteratively within a loop for
some predefined "c.a" around the peak 735

425specificheat.sm (773kb) downloaded 29 time(s).
Offline hanskl  
#32 Posted : 27 October 2017 10:33:23(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: hanskl Go to Quoted Post
Attached is the workbook in a compressed format (deleted/removed a lot of irrelevant stuff).

I have written some comments here and there, and added pictures of examples i am using to verify the DE.


You are solving for θ.a wrt c.a which in turn depends upon θ.a itself
That's too "circular". You can solve iteratively within a loop for
some predefined "c.a" around the peak 735

425specificheat.sm (773kb) downloaded 29 time(s).


But how is that done in the Excel Spreadsheets the examples refers to?

Wouldn't it be possible to have 4 ODE's, one for θ.a≤600, one for 600≤θ.a≤735, one for 735≤θ.a≤900 and for 900≤θ.a?

I have tried to illustrate my approach in the attachment, but alas - it does not work.... Crazy


425specificheat-reply.sm (22kb) downloaded 18 time(s).
Offline omorr  
#33 Posted : 27 October 2017 10:55:05(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Try this one with another solver - dn_GearsBDF (it will escape from the critical regions - possible division by zero). Actually, it will work for all the four c.a() but not if you put them in the condition statement.

425specificheat-2-corr.sm (739kb) downloaded 24 time(s).

Regards,
Radovan


When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline hanskl  
#34 Posted : 27 October 2017 11:16:28(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: omorr Go to Quoted Post
Try this one with another solver - dn_GearsBDF (it will escape from the critical regions - possible division by zero). Actually, it will work for all the four c.a() but not if you put them in the condition statement.

425specificheat-2-corr.sm (739kb) downloaded 24 time(s).

Regards,
Radovan





Hi Radovan,

Forgive me my ignorance, but it still seems to me your result does not consider c.a as θ.a develops.

Is this completely impossible using SMath?

Best,
Offline omorr  
#35 Posted : 27 October 2017 11:41:49(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Originally Posted by: hanskl Go to Quoted Post
Originally Posted by: omorr Go to Quoted Post
Try this one with another solver - dn_GearsBDF (it will escape from the critical regions - possible division by zero). Actually, it will work for all the four c.a() but not if you put them in the condition statement.

425specificheat-2-corr.sm (739kb) downloaded 24 time(s).

Regards,
Radovan





Hi Radovan,

Forgive me my ignorance, but it still seems to me your result does not consider c.a as θ.a develops.

Is this completely impossible using SMath?

Best,


Your differential equation is dθ.a/dt = D(t,θ.a) = f(t,θ.a,c(θ.a)). Your goal is to find θ.a(t) by solving this initial problem in the range t[0,150] provided the initial condition θ.a(0)=20 finding θ.a(0+..150). I do not know how else to explain this to you, sorry.

Regards,
Radovan

P.S. The main problem here IMHO is why the solvers can not accept conditional statements for c(θ.a) taking into account the numerical nature of the solving this problem but, on the other hand, the individual c(θ.a) causes no problem.
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline hanskl  
#36 Posted : 27 October 2017 11:56:24(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: omorr Go to Quoted Post
Originally Posted by: hanskl Go to Quoted Post
Originally Posted by: omorr Go to Quoted Post
Try this one with another solver - dn_GearsBDF (it will escape from the critical regions - possible division by zero). Actually, it will work for all the four c.a() but not if you put them in the condition statement.

425specificheat-2-corr.sm (739kb) downloaded 24 time(s).

Regards,
Radovan





Hi Radovan,

Forgive me my ignorance, but it still seems to me your result does not consider c.a as θ.a develops.

Is this completely impossible using SMath?

Best,


Your differential equation is dθ.a/dt = D(t,θ.a) = f(t,θ.a,c(θ.a)). Your goal is to find θ.a(t) by solving this initial problem in the range t[0,150] provided the initial condition θ.a(0)=20 finding θ.a(0+..150). I do not know how else to explain this to you, sorry.

Regards,
Radovan

P.S. The main problem here IMHO is why the solvers can not accept conditional statements for c(θ.a) taking into account the numerical nature of the solving this problem but, on the other hand, the individual c(θ.a) causes no problem.


I understand this part I think. It makes sense Yes


What I don't understand is whether or not SMath is able to solve this. If it is able to do so, how do you formulate/structure the equation/solution?

If SMath is not able to solve this, what other approaches is viable to solve this problem?

I am sure this is a rather common problem in the world of chemistry and chemical engineering?

Best regards,


Edit: found a pdf which have tabulated θ.a(t) for different values of k.sh*A.m/V (=0.9V/A.m,Cool

Page 7-10

tables for theta.a


Edit2: found another pdf which discusses the differential equation. It is apparently a Fourier equation, if that helps matters any.

Page 12-16

Fourier equation

fourier.PNG

Edited by user 27 October 2017 15:40:33(UTC)  | Reason: Not specified

Offline Jean Giraud  
#37 Posted : 27 October 2017 18:19:06(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: hanskl Go to Quoted Post
What I don't understand is whether or not SMath is able to solve this. If it is able to do so, how do you formulate/structure the equation/solution?

Yes, Smath solves but there are few points to understand.
The conditional 'ca' shows simply the system has 4 different DE solutions that depend
upon θ ... in other words the DE is not consistent. In Mathcad 11 Tom G. did a setup
for ordinary RK to take conditional. Not sure if I can retrieve, not sure either if
possible to code Smath ... from recollection, the system was consistent, i.e: a single
solution. Say otherwise, in there is like solving for different "phase phenomenon'

Excel is just given the data table to get a plot. Ordinary people understand Excel
because it's not a math tool, they understand like a grocery list. Any and all standards
are tabulated, thus instead of using tabulation from Peter, Bill, Arthur ,,, Excel
is convenient to get the hard copy.

The sol900 does not survive very far !

Cheers, Jean

425specificheat-2-corr [Piecewise].sm (773kb) downloaded 26 time(s).
Offline hanskl  
#38 Posted : 27 October 2017 19:07:37(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: hanskl Go to Quoted Post
What I don't understand is whether or not SMath is able to solve this. If it is able to do so, how do you formulate/structure the equation/solution?

Yes, Smath solves but there are few points to understand.
The conditional 'ca' shows simply the system has 4 different DE solutions that depend
upon θ ... in other words the DE is not consistent. In Mathcad 11 Tom G. did a setup
for ordinary RK to take conditional. Not sure if I can retrieve, not sure either if
possible to code Smath ... from recollection, the system was consistent, i.e: a single
solution. Say otherwise, in there is like solving for different "phase phenomenon'

Excel is just given the data table to get a plot. Ordinary people understand Excel
because it's not a math tool, they understand like a grocery list. Any and all standards
are tabulated, thus instead of using tabulation from Peter, Bill, Arthur ,,, Excel
is convenient to get the hard copy.

The sol900 does not survive very far !

Cheers, Jean

425specificheat-2-corr [Piecewise].sm (773kb) downloaded 26 time(s).


I have to admit, I am not sure I understand what you mean. A lot of this goes way above my head. Umnik

I have fiddeled a bit more.. I have taken a iterative approach, however it is manual.. Not automated like I would have wanted it to be.
Do you think I am onto something here?


Edit: I have cleaned up the workbook a bit.

testing 4 ode v3.sm (31kb) downloaded 21 time(s).

Edited by user 27 October 2017 21:03:13(UTC)  | Reason: Not specified

Offline Jean Giraud  
#39 Posted : 27 October 2017 21:59:32(UTC)
Jean Giraud

Rank: Guest

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

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: hanskl Go to Quoted Post
Do you think I am onto something here?


Well done ! just add some of the EuroCode equations number ...

Cheers, Jean

testing 4 ode [Gorgeous].sm (25kb) downloaded 33 time(s).


thanks 1 user thanked Jean Giraud for this useful post.
on 28/10/2017(UTC)
Offline hanskl  
#40 Posted : 27 October 2017 22:52:29(UTC)
hanskl


Rank: Advanced Member

Groups: Registered
Joined: 25/10/2017(UTC)
Posts: 158
Norway

Was thanked: 7 time(s) in 5 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: hanskl Go to Quoted Post
Do you think I am onto something here?


Well done ! just add some of the EuroCode equations number ...

Cheers, Jean

testing 4 ode [Gorgeous].sm (25kb) downloaded 33 time(s).




Thank you for your compliment!

This would not have been possible without the help from you and Radovan! Good

BTW, I think I uploaded a later version than the one you editen. My latest version is v3, which includes two expressions that returns temperature and time for any given point, across the 4 ODE's.
Users browsing this topic
Guest
6 Pages<1234>»
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.