|
[Sponsors] |
April 17, 2017, 13:13 |
How to accelerate transient simulations
|
#1 |
Member
Audrius
Join Date: Apr 2015
Location: Kaunas
Posts: 30
Rep Power: 11 |
Dear colleagues,
I need Your advices. I try to repeat experiment in which were investigated natural convection. For simulations, I use ANSYS Fluent 17.2 version and high performance computing cluster (SGI cluster with 240 parallel licences). I have high quality mesh, which consist of ~800'000 cells. For simulations, I use VOF explicit model. The time step size is variable (0.007-0.017 sec) and I need to simulate ~14400 sec. Even with this cluster and 240 parallel licences it is impregnable task. I tried to use NITA method, but then I use NITA residuals starts to diverge. The task running four days and at this moment is solved 1100 sec. What are Your advises? Thanks. |
|
April 17, 2017, 17:56 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
None. You have small time-steps and want a large simulation time. There are various ways to shave off some computational time here and then, like NITA, but what you need is a 10x-100x reduction.
|
|
April 17, 2017, 20:59 |
|
#3 |
Member
Audrius
Join Date: Apr 2015
Location: Kaunas
Posts: 30
Rep Power: 11 |
Dear LuckyTran,
could You explain that is 10x-100x reduction? |
|
April 18, 2017, 01:42 |
|
#4 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
Your problem is that you have small time-steps and need to solve a large time, so you need many time-steps. You need one or more orders of magnitude reduction in this problem. Other tricks will not give you this type of reduction. For example, your cell count is already low and doesn't receive much benefit from running on more parallel cores.
|
|
April 18, 2017, 03:29 |
|
#5 |
Member
Audrius
Join Date: Apr 2015
Location: Kaunas
Posts: 30
Rep Power: 11 |
Thank You.
|
|
April 18, 2017, 09:51 |
|
#6 |
Member
Audrius
Join Date: Apr 2015
Location: Kaunas
Posts: 30
Rep Power: 11 |
By the way, "I need one or more orders of magnitude reduction in this problem" You mean, that I must to set Spatial Discretization of pressure, momentum and etc. from First Order Upwind to higher order, for expample to Second Order Upwind? Or I must to do simplifications in my task? Thank You.
|
|
April 18, 2017, 11:33 |
|
#7 |
Senior Member
|
Sorry, but the only way you can overcome this issue is using an implicit approach. However, the implicit approach adds spurious modes. I would try to solve the problem from a dimensionaless approach. Therefore, you will not be attached to the exact domain size and instead you can solve a smaller model based on similarity approach.
|
|
April 18, 2017, 11:46 |
|
#8 |
Member
Audrius
Join Date: Apr 2015
Location: Kaunas
Posts: 30
Rep Power: 11 |
When I use implicit approach, I do not get convergence (10^-4), while in explicit approach everything is perfect at the same conditions. Here is domain: the box (height - 650 mm, width - 300 mm and lenght - 60 mm. Water level is 400 mm from the bottom, in the top of the part there is air (top wall - pressure outlet). In the bottom of the domain there is heater rod. And I need to analyze the phenomenon of natural convection. There is no possibility to make a simplifications in this domain.
|
|
April 18, 2017, 13:20 |
|
#9 | ||
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
Quote:
Quote:
You need to find a way to take bigger time-steps & a way to simulate less time. Going to a coarser grid can help, because you can take larger time-steps. Why do you need such a long simulation time? Whatever the reason for that is, reduce it! Stubbornness won't get you anywhere! If you want to be stubborn and say I refuse to simplify my problem, then I say you are stuck with a long simulation. |
|||
April 18, 2017, 14:01 |
|
#10 |
Member
Audrius
Join Date: Apr 2015
Location: Kaunas
Posts: 30
Rep Power: 11 |
I need to simulate ~14400 sec because the experiment takes all this time period. The thermal power of the heater rod is small and water from low temperatures until boiling point increasing very slowly. Also I need to simulate water level changes in the pool, air moving above water, boiling and etc. And to compare my CFD results with experimental results from ISI publication.
I'm not stubborned, I thought about simplifications, also there is one possibility - to use Boussinesq case and don't use VOF model, but then the results will be far from reality. It just my opinion. Last edited by Audrius; April 18, 2017 at 15:05. |
|
April 18, 2017, 17:36 |
|
#11 |
Senior Member
|
Sorry lucky train but I disagree with you. You can solve a smaller scale of the problem as long as you respect the dimensionless parameter such as Reynolds, Raleigh and so forth. However, the computational cost will be somehow similiae because the explicit formulation. Is restricted to the size of the smallest cell. If you want to reduce your domain and keep the same spect ratio then delta t will have the same order of magnitude. Increasing the size of the cell will help you but it will also depend on the turbulence model. Why don't you solve it using the steady state approach instead of the time dependent? My guess is that there are different options that you have to explore. Write taking a final decision.
|
|
April 19, 2017, 04:32 |
|
#12 |
Member
Audrius
Join Date: Apr 2015
Location: Kaunas
Posts: 30
Rep Power: 11 |
Dear juliom, in this case, I can't to solve steady-state, because I need to see how changing processes in this domain. For example, in the beginning, water temperature is 32 C, heater rod power 600 W, there is no heat losses through the walls except the top wall, which is pressure-outlet. In this case there is no heat balance and it means, that in steate-steat calculations I will see empty pool, because water will be evaporated. I still thinking that to do... I trying again to use Implicit solver. Also, I will to reduce size of cells near the heater rod.
|
|
April 19, 2017, 08:34 |
|
#13 |
Senior Member
|
I see, then It means that you are facing a very demanding computational problem. Your problem is more related to computation than fluid dynamics. My recommendation (again) is to reduce the magnitude of your problem. You said that you are using parallel computing and that is good. I usually write my own codes using MPI and OpenMP, because without parallel computing CFD is constrained to the computational resources.
|
|
April 19, 2017, 10:30 |
|
#14 |
Member
Audrius
Join Date: Apr 2015
Location: Kaunas
Posts: 30
Rep Power: 11 |
My high performance computing cluster make fast iterating, but the main problem is small time step.
|
|
April 20, 2017, 03:53 |
|
#15 |
Senior Member
SinaJ
Join Date: Nov 2009
Posts: 136
Rep Power: 17 |
I agree with LuckyTran, You don't receive any benefit of having high number of cores. The communication time between cores will adversely affect it. If you don't believe it, decrease the core numbers to 80 or even 60, and compare it!
About scaling the problem, you should consider the fact that dimensionless scaling will result in losing some details anyway, unless you have time/tools for calibration. I would reduce the cell number to half of what it is now. BTW, if you submit jobs using qsub, consider having less nodes, and higher ppn. That will give you higher speed! Why? because less communication between nodes! So for example if you wanna stick to 240 cores, go with something like Code:
nodes=12:ppn=20 Code:
nodes=240:ppn=1 |
|
April 20, 2017, 04:51 |
|
#16 |
Member
Audrius
Join Date: Apr 2015
Location: Kaunas
Posts: 30
Rep Power: 11 |
Colleagues,
the problem isn't how many cores I use.. I can use 1, 12, 24 or 240... The problem is small time step, not number of cores used in this modelling. You are right, I will try to reduce number of cells and if it not works, then I try to scale and so small domain. Thanks for the advices. |
|
April 25, 2017, 05:51 |
|
#17 |
Member
Audrius
Join Date: Apr 2015
Location: Kaunas
Posts: 30
Rep Power: 11 |
So, the one way in this speed-up transient calculations is to reduce number of cells. Because time step is calculated by the smallest cell size.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Transient simulations: how to tell its converged (I've read the FAQ & user guides!) | JuPa | CFX | 12 | March 27, 2020 18:24 |
Using RANS in transient simulations | driu | CFX | 5 | October 14, 2015 08:50 |
Transient Simulations | saisanthoshm88 | CFX | 7 | July 13, 2013 07:57 |
Transient simulations with translational periodic flow | kriver | FLUENT | 11 | April 18, 2012 06:56 |
Momentum conservation in transient simulations | Latslosh | CFX | 0 | June 18, 2008 10:43 |