|
[Sponsors] |
October 26, 2012, 05:49 |
Second order upwind problem
|
#1 |
New Member
Alireza Shardi
Join Date: Oct 2012
Posts: 20
Rep Power: 14 |
Dear friends,
I am simulating the laminar convection, conjugate heat transfer in a microchannel and I am a new user of the Cadalyzer software. I have deep doubts about the method that I am using now. I have done a simulation with upwind scheme for all parameters and with 1000 iterations I got a good convergence for all parameters. However I have noticed first order upwind scheme is not really trustable in convection heat tranfer(right??!) and I changed my enthalpy scheme to second order and pooof! the computational cost increased to 100 hours! which is really high. what should I do!? stick with upwind or do sth like coarser mesh, less iteration,..to decrease the calcualtion time!? Please help me I am a beginner and need your kind help, Info: Mesh grid : 1.3 million relaxation: slow convergence for enthalpy , rather fast for flow |
|
October 26, 2012, 13:23 |
|
#2 |
Senior Member
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 414
Rep Power: 18 |
First order methods do generally converge better than higher order methods for several reasons (more dissipative, higher order terms tend to bounce around between iterations, etc). If you want an accurate solution you should use a second order method.
Some things to address though. Does your mesh need to be 1.3 million elements? You should always start with a coarse mesh and refine until you see the solution isn't changing much. Also, energy equations can sometimes take longer to converge because they involve longer timescales. I don't know about the software you are using, but does it use a time step or some type of under-relaxation to progress from iteration to iteration? Either way you should play with those parameters to see if you can accelerate convergence. If it uses time stepping, you can probably try increasing it to speed up convergence as long as the solution is still stable (doesn't diverge). |
|
October 29, 2012, 04:28 |
|
#3 |
New Member
Alireza Shardi
Join Date: Oct 2012
Posts: 20
Rep Power: 14 |
Dear Cdegroot,
Thanks for the reply. My software uses under relaxation parameters and I can get a faster convergence by changing the relaxation parameteres specially for the energy equation but I wonder if it affects my results since I curb the solver to small changes in every iteration. Moreover, what you mean by "If you want an accurate solution you should use a second order method." is that I should use the second order for all parameters (P,T,H,..) or just for the enthalpy? I think using second order for all parameters will increase the computational time to one week or so! , I am not 100% sure! but I think what you mean by making the mesh finer gradually and see the changes in the results, is that I have to start the simulation from the beginning for each refined mesh grid to investigate the independence. Am I right? Sorry for being a naive! and again thank you. |
|
October 29, 2012, 07:47 |
|
#4 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,428
Rep Power: 49 |
Normally, higher order methods should not increase the computational cost drastically. If this happens in your simulation, these are rather stability issues.
Changing the under relaxation factors should not alter the final solution, provided that the solution is converged. And yes, checking for mesh independency is usually done starting from a coarse grid. |
|
October 29, 2012, 08:02 |
|
#5 | |
Senior Member
Join Date: Mar 2009
Posts: 157
Rep Power: 17 |
Quote:
__________________
"Trying is the first step to failure." - Homer Simpson |
||
October 29, 2012, 08:25 |
|
#6 | |
New Member
Alireza Shardi
Join Date: Oct 2012
Posts: 20
Rep Power: 14 |
Quote:
It does happen in my simulation and if this very huge difference in computational time between first order and second order is not normal, what steps would you suggest me to find the problem in my simulation? it is a steady state, conjugated heat transfer(fluid/solid in a microchannel), laminar convection. Merci. |
||
October 29, 2012, 08:31 |
|
#7 |
New Member
Alireza Shardi
Join Date: Oct 2012
Posts: 20
Rep Power: 14 |
[QUOTE=Ford Prefect;389066]The converged results should be similar regardless of your under-relaxation parameter. However it might need (a lot) more iterations to reach the same residual level.
That is a good point to know. Thankx. |
|
October 29, 2012, 08:45 |
|
#8 | |
Senior Member
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 414
Rep Power: 18 |
Quote:
With regards to the long computational time: you are using a pretty big grid without having shown that it is necessary. One of the first steps in running CFD calculations is a grid sensitivity study. Basically, start with a coarse grid and run through the full calculation. Then (approximately) double the number of control volumes until you are satisfied that the grid density is not affecting the results. To be honest, I think your problem does not sound overly complex, so I think your grid is most likely much finer than it needs to be. On the topic of grids, make sure your grid has decent quality because this can impact convergence as well. |
||
October 29, 2012, 09:01 |
|
#9 |
New Member
Alireza Shardi
Join Date: Oct 2012
Posts: 20
Rep Power: 14 |
Basically, start with a coarse grid and run through the full calculation. Then (approximately) double the number of control volumes until you are satisfied that the grid density is not affecting the results.
that was so helpful. I will try what you said and hopefully this resolves my problem. I dont have access to the software now but I will surely update you ASAP. Thank you buddy. Still eager to hear other's ideas. Ali |
|
October 29, 2012, 09:03 |
|
#10 | |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,428
Rep Power: 49 |
Quote:
The point with mesh quality already mentioned here is also important. If it is low, higher order schemes are more likely to cause stability problems. |
||
October 29, 2012, 09:24 |
|
#11 | |
New Member
Alireza Shardi
Join Date: Oct 2012
Posts: 20
Rep Power: 14 |
Quote:
1-is this as accurate as the second order scheme? (when you use it from the beginning) 2-would it be possible to get divergence in the second part of your calculation (using the second order after first order) after reaching the convergence in the first part!? 3- would it be the case that the second part of calculation does not change your results much? ( not much of increase in the accuracy) Thank you for the info, |
||
October 29, 2012, 09:37 |
|
#12 |
Senior Member
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 414
Rep Power: 18 |
There should be practically no difference between running a second order calculation from the beginning versus using first order data as an initial guess. You are just giving it a better initial guess.
Divergence could still occur. You'll have to play with the relaxation factors to make sure it doesn't. If the second order corrections are small, the result won't change much. That depends on both the grid and your flow field. In general though I think the changes should be noticeable. |
|
October 29, 2012, 10:31 |
|
#13 | |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,428
Rep Power: 49 |
Quote:
2) Divergence can still occur. with the method described, you only improve the initial conditions, which improves stability. There can still be other issues (e.g. mesh quality) that cause the solution to diverge. 3) Dont understand the question exactly |
||
October 31, 2012, 05:53 |
|
#14 | |
New Member
Alireza Shardi
Join Date: Oct 2012
Posts: 20
Rep Power: 14 |
Quote:
Ali |
||
November 8, 2012, 23:22 |
microchannel
|
#15 |
New Member
Ayoub
Join Date: Nov 2012
Posts: 9
Rep Power: 14 |
Hi
I am studying roughness in microchannel, but I have problem for thermall fully developed. would you pleas help me? |
|
November 8, 2012, 23:41 |
|
#16 |
Senior Member
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 414
Rep Power: 18 |
Start a new thread and state a more specific question and I'm sure you will get some help.
|
|
November 8, 2012, 23:56 |
fully developed
|
#17 |
New Member
Ayoub
Join Date: Nov 2012
Posts: 9
Rep Power: 14 |
Thank you
I want to study roughness in microchannel 2D D=100microchannel,L=1mm,working fluid is water,q for wall is constant,Tin=293 I can not reach to fully develop(thermally) would you pleas help me? |
|
November 9, 2012, 00:01 |
|
#18 |
Senior Member
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 414
Rep Power: 18 |
This has nothing to do with second order upwind schemes. Start a new discussion.
|
|
November 9, 2012, 04:04 |
|
#19 | |
New Member
Alireza Shardi
Join Date: Oct 2012
Posts: 20
Rep Power: 14 |
Quote:
I ran my simulation with upwind and compared to those of second order. I saw no sizable differences in my results and considering the very long computational time, I've decided to continue with the first order scheme. I deeply appreciate your answers that helped me a lot. Success. Ali |
||
Tags |
computational time, conjugate heat transfer, microchannel, second order upwind |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Formula for 2nd order upwind scheme for non-uniform grids? | quarkz | Main CFD Forum | 2 | August 30, 2012 18:25 |
Quasi Second Order Upwind (QSOU) Scheme | Orco | Main CFD Forum | 0 | November 20, 2007 12:07 |
weno upwind 5th order 1 d code | Chi | Main CFD Forum | 1 | March 11, 2007 23:44 |
First order upwind | leung | FLUENT | 2 | June 13, 2004 09:09 |
First Order Upwind | Giovanni Ieria | FLUENT | 3 | November 30, 1999 19:43 |