|
[Sponsors] |
September 8, 2012, 09:52 |
Simulation time vs. Simulation Cell Count
|
#1 |
New Member
Chris Turner
Join Date: Jun 2009
Location: Belfast
Posts: 12
Rep Power: 17 |
Hi Guys!
This may seen like a trivial question to be asking, but I am trying to find out what the relationship between the number of nodes in a simulation and the total simulation time. Assuming a steady flow simulation, where the physics is consistent between simulations, is the relationship between cell count and simulation time a linear or non linear relationship? If it is a non linear relationship, what kind of relationship should it be? X^2, exponential? Any information would be great! Regards, Chris Last edited by chrisoturner; September 8, 2012 at 10:25. Reason: Typo in the title |
|
September 8, 2012, 11:15 |
|
#2 |
Senior Member
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20 |
Ideally, a solver should scale as N^3 for 3d calculations and N^2 for 2.... but most solvers don't because of implementation and communication issues!
|
|
September 8, 2012, 11:41 |
|
#3 |
New Member
Chris Turner
Join Date: Jun 2009
Location: Belfast
Posts: 12
Rep Power: 17 |
Any ideas why a 3D mesh would appear to have a linear relationship between cell count and simulation time? Maybe the range of cell count is not large enough to show the N^3 relationship? Or are there likely to be underlying issues at work here that need investigated?
|
|
September 8, 2012, 12:48 |
|
#4 |
Senior Member
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20 |
Are we talking about a single core run, or a parallel run?
|
|
September 8, 2012, 12:57 |
|
#5 |
New Member
Chris Turner
Join Date: Jun 2009
Location: Belfast
Posts: 12
Rep Power: 17 |
Hi,
Thanks for the feedback by the way, I really appreciate it. I'm just a bit puzzled as to why I'm seeing this. It's a single core run. Mesh independence studies have been conducted and the final chosen mesh correlates well with experimental data, but when I plotted simulation time vs cell count from the independence studies the relationship came out near enough linear.The range of cell values is 1.5 - 2.5 million cells. Within the simulation there are three idential meshes overlaid, flow is passing between these three regions via a 1D model (UDF), could this perhaps be the cause of such a phenomenon? Thanks |
|
September 8, 2012, 13:01 |
|
#6 |
Senior Member
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20 |
hm, maybe I misunderstood you.... if you are considering the TOTAL amount of mesh cells / DOFs / nodes, then you would indeed expect a linear behavior - at least in a certain range...
when i mentioned the n^3 or n^2 behavior, I was referering to N being the number of cells in ONE grid direction only. linear scale up with total N is perfectly fine! |
|
September 8, 2012, 13:13 |
|
#7 |
New Member
Chris Turner
Join Date: Jun 2009
Location: Belfast
Posts: 12
Rep Power: 17 |
Yes, I am talking about totalcell count in the mesh. I'm glad someone agrees with me that the linear relationship is ok.
My thoughts on the matter were that the solution time per cell should remain fairly constant, so if the total mesh time increases, then the total solution time should increase relative to the increase in cell count. Thanks for your help. |
|
September 8, 2012, 18:46 |
|
#8 |
Senior Member
Join Date: Mar 2009
Posts: 157
Rep Power: 17 |
It is very much dependent on the type of solver you are using. Multigrid can scale linearly with the number of cells in the system. If you use one of the older techniques such as SOR then it will not (at least not for larger mesh sizes).
__________________
"Trying is the first step to failure." - Homer Simpson |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding heat source to chtMultiRegionFoam | maddalena | OpenFOAM Programming & Development | 61 | February 17, 2018 09:33 |
FvMatrix coefficients | shrina | OpenFOAM Running, Solving & CFD | 10 | October 3, 2013 15:38 |
Change cell zone index/thread during simulation | neilduffy1024 | FLUENT | 0 | January 17, 2011 10:40 |
Can Fluent start a simulation from a negative time | Ted Chu | FLUENT | 10 | November 26, 2008 22:06 |
Warning 097- | AB | Siemens | 6 | November 15, 2004 05:41 |