CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

How to Solve System of Partial Differential Equations

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2019, 08:25
Default How to Solve System of Partial Differential Equations
  #1
Member
 
Khan
Join Date: Jul 2018
Posts: 45
Rep Power: 8
HumanistEngineer is on a distinguished road
Hi Guys,

Can any of you help me how to solve these three 1D heat balance equations simultaneously via finite difference method? The physical description is that this is an insulated pipe underground so the superscripts w, i, and g refer to the water, insulation, and ground while h is the heat transfer coefficient between the mediums (i.e. wi refers to water to insulation). T^u is a scalar value for the undisturbed ground temperature and delta_x is the pipe length.

The aim here is to obtain the temperature change of water medium through the pipe length over time (as well as the insulation, and the ground).



Ref: Pálsson, Hálldór - Methods for planning and operating decentralized combined heat and power plants - link

Thanks in advance.
HumanistEngineer is offline   Reply With Quote

Old   May 14, 2019, 09:45
Default convergence problem
  #2
New Member
 
feride
Join Date: Dec 2018
Posts: 3
Rep Power: 7
feride is on a distinguished road
hi everybody,
I'm working on thermal hydrualic analysis of a nuclear reactor we can think fuel as heated cylindirical tubes which has bc with heat flux. There are 69 fuel rods ,heat flux is given as udf. working fluid temp is 300 K, The cooling mechanism is natural convection so ı try both boussienesq approx. tempereture dependent features with polynomial eq. in material box. The Ra number order is 10^13, I use k-e model for turbulent modeling, there are inlet pipe which is velocity inlet, outlet pipe which is out flow bc Btw fluid is water. I have tried many ways to converge continuity. but they didnt work. It would be much appreciated if you could share with me your opinions regards to this problem.

All the best
Attached Images
File Type: png trg.png (40.4 KB, 15 views)
feride is offline   Reply With Quote

Old   May 14, 2019, 10:59
Default
  #3
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by HumanistEngineer View Post
Hi Guys,

Can any of you help me how to solve these three 1D heat balance equations simultaneously via finite difference method? The physical description is that this is an insulated pipe underground so the superscripts w, i, and g refer to the water, insulation, and ground while h is the heat transfer coefficient between the mediums (i.e. wi refers to water to insulation). T^u is a scalar value for the undisturbed ground temperature and delta_x is the pipe length.

The aim here is to obtain the temperature change of water medium through the pipe length over time (as well as the insulation, and the ground).



Ref: Pálsson, Hálldór - Methods for planning and operating decentralized combined heat and power plants - link

Thanks in advance.



This appears a system of hyperbolic-like equations for the temperature with source terms. You can find a lot of methods for solving numerically these equations using FD. I suggest start using an explicit time-marching method.

Here is a textbook http://sgpwe.izt.uam.mx/files/users/...tos/Morton.pdf
FMDenaro is offline   Reply With Quote

Old   May 14, 2019, 11:28
Default
  #4
Member
 
Khan
Join Date: Jul 2018
Posts: 45
Rep Power: 8
HumanistEngineer is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
This appears a system of hyperbolic-like equations for the temperature with source terms. You can find a lot of methods for solving numerically these equations using FD. I suggest start using an explicit time-marching method.

Here is a textbook http://sgpwe.izt.uam.mx/files/users/...tos/Morton.pdf
Thank you a lot again FMDenaro.

I kindly ask you to check if these FD approximations seem to be correct:

HumanistEngineer is offline   Reply With Quote

Old   May 14, 2019, 11:36
Default
  #5
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by HumanistEngineer View Post
Thank you a lot again FMDenaro.

I kindly ask you to check if these FD approximations seem to be correct:




No, FTCS scheme for hyperbolic equation is a very bad choice. Have a look to the chapter dedicated and check the consequences in terms of numerical stability properties.
FMDenaro is offline   Reply With Quote

Old   June 5, 2019, 07:01
Default
  #6
Member
 
Khan
Join Date: Jul 2018
Posts: 45
Rep Power: 8
HumanistEngineer is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
No, FTCS scheme for hyperbolic equation is a very bad choice. Have a look to the chapter dedicated and check the consequences in terms of numerical stability properties.
Thank you FMDenaro.
HumanistEngineer is offline   Reply With Quote

Old   June 6, 2019, 22:59
Default
  #7
Member
 
CFD USER
Join Date: May 2019
Posts: 40
Rep Power: 7
CFD_10 is on a distinguished road
What about MacCormack scheme?
CFD_10 is offline   Reply With Quote

Old   June 7, 2019, 05:41
Default
  #8
Member
 
Khan
Join Date: Jul 2018
Posts: 45
Rep Power: 8
HumanistEngineer is on a distinguished road
Quote:
Originally Posted by CFD_10 View Post
What about MacCormack scheme?
I used the implicit finite difference approximations given in the rereference:

HumanistEngineer is offline   Reply With Quote

Old   June 7, 2019, 05:55
Default
  #9
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by HumanistEngineer View Post
I used the implicit finite difference approximations given in the rereference:




Be careful, implicit schemes for hyperbolic equations are not generally used for some issue in the BCs. First of all, I suggest starting with the FTUS scheme, it is only first order accurate but provide you the first indication. Then the second order accurate scheme in time and space I suggest to try is the Lax-Wendroff scheme.

Be also careful that, according to the Godunov's theorem, using high order scheme you can have presence of spurious numerical oscillations
FMDenaro is offline   Reply With Quote

Old   June 7, 2019, 20:39
Default
  #10
Member
 
CFD USER
Join Date: May 2019
Posts: 40
Rep Power: 7
CFD_10 is on a distinguished road
Both Lax-Wendroff and MacCormack schemes are second order accurate. But MacCormack scheme is very user friendly. it uses only two steps (predictor-corrector). The Lax-Wendroff is very tedious it requires you to express second order derivatives.
CFD_10 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Integration of Partial Differential Equations m_ridzon Main CFD Forum 4 September 11, 2017 15:26
Low Reynolds K Epsilon Launder Sharma Model Functions Doubt... Ruonin Main CFD Forum 17 February 17, 2014 10:52
partial equations solving with c++ Tobi Main CFD Forum 1 October 18, 2013 11:54
differential equations cosine CFX 1 May 31, 2010 08:22
Good library to solve huge linear system Ricardo Bonon Main CFD Forum 3 May 19, 2000 07:24


All times are GMT -4. The time now is 04:09.