SMath Studio Forum
»
SMath Studio
»
Questions
»
Solving differential equation Eurocode 1993-1-2 4.2.5 Steel temperature development
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: hanskl 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).
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 25/10/2017(UTC) Posts: 158 Was thanked: 7 time(s) in 5 post(s)
|
Originally Posted by: omorr Attach the file with the comments you mentioned. I hope we will figure out what was wrong 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).
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 25/10/2017(UTC) Posts: 158 Was thanked: 7 time(s) in 5 post(s)
|
Originally Posted by: Jean Giraud Originally Posted by: hanskl 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...
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 25/10/2017(UTC) Posts: 158 Was thanked: 7 time(s) in 5 post(s)
|
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: hanskl 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).
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 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 ?
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 25/10/2017(UTC) Posts: 158 Was thanked: 7 time(s) in 5 post(s)
|
Originally Posted by: Jean Giraud Originally Posted by: hanskl 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
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 25/10/2017(UTC) Posts: 158 Was thanked: 7 time(s) in 5 post(s)
|
Originally Posted by: Jean Giraud 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!
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: hanskl 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).
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: hanskl 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).
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 25/10/2017(UTC) Posts: 158 Was thanked: 7 time(s) in 5 post(s)
|
Originally Posted by: Jean Giraud Originally Posted by: hanskl 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.... 425specificheat-reply.sm (22kb) downloaded 18 time(s).
|
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 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!" |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 25/10/2017(UTC) Posts: 158 Was thanked: 7 time(s) in 5 post(s)
|
Originally Posted by: omorr 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,
|
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Originally Posted by: hanskl Originally Posted by: omorr 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!" |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 25/10/2017(UTC) Posts: 158 Was thanked: 7 time(s) in 5 post(s)
|
Originally Posted by: omorr Originally Posted by: hanskl Originally Posted by: omorr 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 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, Page 7-10 tables for theta.aEdit2: found another pdf which discusses the differential equation. It is apparently a Fourier equation, if that helps matters any. Page 12-16 Fourier equationEdited by user 27 October 2017 15:40:33(UTC)
| Reason: Not specified
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: hanskl 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).
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 25/10/2017(UTC) Posts: 158 Was thanked: 7 time(s) in 5 post(s)
|
Originally Posted by: Jean Giraud Originally Posted by: hanskl 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. 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
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: hanskl 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).
|
1 user thanked Jean Giraud for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 25/10/2017(UTC) Posts: 158 Was thanked: 7 time(s) in 5 post(s)
|
Originally Posted by: Jean Giraud Originally Posted by: hanskl 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! 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.
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
Solving differential equation Eurocode 1993-1-2 4.2.5 Steel temperature development
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.