Solving differential equation Eurocode 1993-1-2 4.2.5 Steel temperature development

Solving differential equation Eurocode 1993-1-2 4.2.5 Steel temperature development - Сообщения

#41 Опубликовано: 28.10.2017 04:57:45
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

I agree with Jean. Well done

BTW, the posed problem gives the difference equations not differential (as this given solution imposed). Actually, I think it does not matter and it might be more complicated that way (errors, time steps, singularity etc.), not sure.

Regarda,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#42 Опубликовано: 28.10.2017 06:02:18
hanskl

hanskl

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

Группа: User

Wrote

I agree with Jean. Well done

BTW, the posed problem gives the difference equations not differential (as this given solution imposed). Actually, I think it does not matter and it might be more complicated that way (errors, time steps, singularity etc.), not sure.

Regarda,
Radovan



Thank you

Does that mean that you think the last approach i did is the best way to solve the problem? The trick i think is to establish boundry conditions for ODE2,3,4 which is done by iteration till t.xy in the input box matches t.xy in the calculation after all the constants is established.

Thanks again for your help :d
2 пользователям понравился этот пост
sergio 28.10.2017 06:42:00, Radovan Omorjan 28.10.2017 08:06:00
#43 Опубликовано: 29.10.2017 19:45:31
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Does that mean that you think the last approach i did is the best way to solve the problem? The trick i think is to establish boundry conditions for ODE2,3,4 which is done by iteration till t.xy in the input box matches t.xy in the calculation after all the constants is established



Radovan is right: the functional relationship is in term of finite differences,
i.e: for pre-computer age. In fact you just need to integrate the RHS member.
You could think of the integrator operator, that would be a great mistake
on two counts: the operator is horribly slow and may be unusable wrt accuracy.
The "RK" integrator is hyperfast [probably from borrowed code] and accurate.

The other question is if RK supports conditional ... answer is YES

The attached confirms, unfortunately a single conditional.
I don't understand the conditional of your project.
@ 735 °C, steel is pink, visible in the dark, soft, not black smith works.
@ 900 °C, red hot for forging. Why is the conditional infinity @ 735 ?

Just observation(S) ...

Sorry, can't upload the work sheet at the moment

1 пользователям понравился этот пост
Radovan Omorjan 30.10.2017 03:27:00
#44 Опубликовано: 29.10.2017 21:04:05
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Sorry, can't upload the work sheet at the moment



ODE Aminohippuric MCD.sm (44 КиБ) скачан 57 раз(а).

1 пользователям понравился этот пост
Radovan Omorjan 30.10.2017 03:27:00
#45 Опубликовано: 30.10.2017 11:23:34
Jean Giraud

Jean Giraud

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

Группа: User

... finally, your project is completely correct as it looks.
Observe few modifications to get equally spaced data result,
1. re-arranged the number of points
2. submatrix to get rid of duplicates
3. spline "global"
4. discretise 1,2,3 ... or at will as you wish.

Saved in my personal file, thanks ... Jean

ODE Multiconditional [Steel fire].sm (37 КиБ) скачан 59 раз(а).
1 пользователям понравился этот пост
sergio 30.10.2017 11:47:00
#46 Опубликовано: 30.10.2017 14:15:47
Jean Giraud

Jean Giraud

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

Группа: User

... two pages of Engineer's stuff has been added [page: 3, 4]
The two solvers are fully automated, i.e: given Y on the red curve
they both solve for their respective values on the X axis.
The function 'θ(t)' does not have an explicit "inverse". No problem
for solving with the Smath solve bloc. We can solve both iteratively,
not offered ... just ask for ... will be pleased to provide.

Conserve preciously the "root" technique ... sometimes more involved.
This project could not have been done so neatly Mathcad 11.
Title, X, Y axes need some identifier(s).

ODE Multiconditional [Steel fire].sm (53 КиБ) скачан 55 раз(а).
1 пользователям понравился этот пост
sergio 30.10.2017 14:44:00
#47 Опубликовано: 30.10.2017 18:26:21
hanskl

hanskl

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

Группа: User

Wrote

... two pages of Engineer's stuff has been added [page: 3, 4]
The two solvers are fully automated, i.e: given Y on the red curve
they both solve for their respective values on the X axis.
The function 'θ(t)' does not have an explicit "inverse". No problem
for solving with the Smath solve bloc. We can solve both iteratively,
not offered ... just ask for ... will be pleased to provide.

Conserve preciously the "root" technique ... sometimes more involved.
This project could not have been done so neatly Mathcad 11.
Title, X, Y axes need some identifier(s).

ODE Multiconditional [Steel fire].sm (53 КиБ) скачан 55 раз(а).



Hi Jean!

Thanks for still working on this project. Interessering things you have done with it. I will have to study it to better understand it.

Just wanted to let you know (you probably already know) your approach still aquires the user to iterate the set of DE's to establish the correct initial conditions for DE2/3/4. If you change the input (ratio.Am_V and ratio.Am.b_V is the ones you will likely change), the DE's gets disconnected.

Regards,

Hans Kristian
#48 Опубликовано: 30.10.2017 18:56:24
CBG

CBG

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

Группа: User

A more compact calculation.

Testin4odeCompact.png

Testing4odeCompacto.sm (15 КиБ) скачан 48 раз(а).

Best Regards

Carlos
#49 Опубликовано: 30.10.2017 19:11:57
hanskl

hanskl

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

Группа: User

Wrote

A more compact calculation.

Testin4odeCompact.png

Testing4odeCompacto.sm (15 КиБ) скачан 48 раз(а).

Best Regards

Carlos



Interessting How do you "calibrate" the T-matrix when the input changes?

It's great to see all the attention this project has gotten, seeing as it is a highly relevant problem for engineers.

#50 Опубликовано: 30.10.2017 20:00:42
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

If you change the input (ratio.Am_V and ratio.Am.b_V is the ones you will likely change), the DE's gets disconnected.



You are right there ! The system is not homogeneous, it depends upon
those parameters you mention ... like a monkey business. You must recast
the system like you did wrt critical temperature ... Oh ! that's your
competence. That stuff is Chinese to me.
BTW: attached the discrete solvers. All in all a huge/interesting project.

Cheers, Jean

ODE Multiconditional [Steel fire].sm (63 КиБ) скачан 45 раз(а).

1 пользователям понравился этот пост
hanskl 31.10.2017 04:24:00
#51 Опубликовано: 30.10.2017 20:54:03
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Interessting How do you "calibrate" the T-matrix when the input changes?



Yes, but you don't get the same DE shape, not looking like the Excel snippet.
You can join the segments "bing/bang" technique. You still have to submatrix
to get rid of duplicates at junctions.
Good question: can we plug a vector of the start/end/number of points per segment
just to imitate my previous attachment ?

ODE Multiconditional [Carlos Compactum].sm (27 КиБ) скачан 40 раз(а).
#52 Опубликовано: 30.10.2017 21:43:56
Jean Giraud

Jean Giraud

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

Группа: User

... the ODE compactum has just been doctored.
The suite will be same as my previous attachment,
submatrix to remove duplicates, discretize for
regular spacing tabulation ... solvers.

Jean

ODE Multiconditional [Carlos Compactum].sm (19 КиБ) скачан 40 раз(а).
#53 Опубликовано: 30.10.2017 23:02:43
Jean Giraud

Jean Giraud

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

Группа: User

... all done up to the two solve/inverse.

ODE Multiconditional [Carlos Compactum].sm (25 КиБ) скачан 49 раз(а).
#54 Опубликовано: 31.10.2017 04:54:21
hanskl

hanskl

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

Группа: User

Wrote

Wrote

Interessting How do you "calibrate" the T-matrix when the input changes?



Yes, but you don't get the same DE shape, not looking like the Excel snippet.
You can join the segments "bing/bang" technique. You still have to submatrix
to get rid of duplicates at junctions.
Good question: can we plug a vector of the start/end/number of points per segment
just to imitate my previous attachment ?

ODE Multiconditional [Carlos Compactum].sm (27 КиБ) скачан 40 раз(а).



I haven't had much time to progress on this project during the weekend. I will work more on it this week (for instance stack all the solutions and submatrix the junctions like you showed us )

Is this what your were looking for regarding automating equal steps?

Best regards,
Hans Kristian

steps.PNG


Edit: Upon closer inspection, computational times using your method of stacking all the DE's increases dramcatically. To calculate temperature at a given time takes ~1,3sec using your method.

Using my method (granted much more primitive, and it does give some unatural results in the crossover between the DE's, the computational times are ~0.15sec.

time_temp.PNG
#55 Опубликовано: 31.10.2017 10:24:53
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Upon closer inspection, computational times using your method of stacking all the DE's increases dramcatically. To calculate temperature at a given time takes ~1,3sec using your method.

Using my method (granted much more primitive, and it does give some unatural results in the crossover between the DE's, the computational times are ~0.15sec.



You have several points in one remark:

1. The compactum method is not shorter in work sheet space. It is slower
because of the counter cumulative in "for loop" ... just interesting.

2. Your "steps*(,-,) computes more points 603 vs mine 491
thus slower up to the result. No interest as it produces the duplicates.

3. unatural results in the crossover between the DE's
You have put the finger in the wound !!!
There are very many more "splines" than Smath "ainterp [Akima], cinterp"
Of all the splines [lot] I'm familiar, NONE will accept duplicate
points ... worse: in this work, the duplicates are zombies , Ah !
So, you must strip for duplicates [submatrix does it well]. By same token,
once striped and stacked, the piecewise "ainterp" is completely useless.
As a remark, Smath "ainterp, cinterp" are hyperfast ... they spit 1000 data points
before it seems to have digested .
"cinterp" looks 1/1 universal vs others [Mathcad ...]
"Akima ainterp", I have not seen under the hood of it. From using, it reveals
very excellent in some works, but also pure scrap in other type applications.

4. After stripping, the f(x):=ainterp(X,Y,x) is passed in the reconstruct
discretiser to re-tabulate for equal points spacing as an export. For
interpolation, just spline over this data table.

Thanks Collab for this most interesting DE application.

Jean

ODE Multiconditional [Carlos Compactum] Copy.sm (26 КиБ) скачан 42 раз(а).

ODE Multiconditional [Steel fire] Copy.sm (64 КиБ) скачан 41 раз(а).

#56 Опубликовано: 31.10.2017 16:43:52
hanskl

hanskl

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

Группа: User

Wrote

... last version for my projects file.
Number of points is ~ immaterial wrt computation timing.
The offered is + than enough for spline

ODE Multiconditional [Steel fire] Copy.sm (53 КиБ) скачан 43 раз(а).



Cool stuff. The "discrete solver/inverser" takes approx 12 seconds to solve on my computer. None of the graphs start out at 20degC though, why is that?

Edit: Stupid question; what is the purpose of the "root" expression in your workbook? Couldn't the original theta.g expression be used in the solver instead?

Best regards,

solver.PNG
#57 Опубликовано: 01.11.2017 07:47:09
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Cool stuff. The "discrete solver/inverser" takes approx 12 seconds to solve on my computer. None of the graphs start out at 20degC though, why is that?

Edit: Stupid question; what is the purpose of the "root" expression in your workbook? Couldn't the original theta.g expression be used in the solver instead?



1. Copy/paste the last collapsed area in new sheet.
Both methods start plotting @ 20 °C as specified from "if/otherwise".

2. Often, "maple/solve" returns the inverse function.
This one though it looks simple does not, alternately "root" does.
and by same token result is the simplified expansion.

This refreshed version looks like nearly the "last brick in the wall".

Please: don't hesitate for more questions ... Jean

ODE Multiconditional [Steel fire].sm (64 КиБ) скачан 54 раз(а).
#58 Опубликовано: 02.11.2017 06:42:52
Jean Giraud

Jean Giraud

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

Группа: User

This project has been re-organised a bit for publishing.
Few things are missing: an abstract, identify the X,Y plot arguments.
The discrete solver/collector can be set incremental for finer tabulation.

Jean

Eurocode 1993.PNG

ODE Multiconditional [Steel fire] Copy.sm (67 КиБ) скачан 50 раз(а).
#59 Опубликовано: 02.11.2017 17:41:43
hanskl

hanskl

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

Группа: User

I have organized my worksheet somewhat now, and collected only the relevant parts for my specific problem at the top. The other stuff that although it displays the power of SMath - it's not relevant for this workbook, is gathered at the bottom.


I really appreciate all the help you have given med Jean!

Best regards,

Staltemperaturer ved brann.sm (286 КиБ) скачан 87 раз(а).
#60 Опубликовано: 02.11.2017 23:26:54
Jean Giraud

Jean Giraud

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

Группа: User

I have organized my worksheet somewhat now, and collected only the relevant parts for my specific problem at the top. The other stuff that although it displays the power of SMath - it's not relevant for this workbook, is gathered at the bottom.

Something mysterious, it does not download *.sm, only some sort of "Chrome" document.
Nothing to see, that's OK unless I can help more.

Cheers, Jean
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений