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

Simulation time vs. Simulation Cell Count

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By cfdnewbie

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 8, 2012, 09:52
Default Simulation time vs. Simulation Cell Count
  #1
New Member
 
Chris Turner
Join Date: Jun 2009
Location: Belfast
Posts: 12
Rep Power: 17
chrisoturner is on a distinguished road
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
chrisoturner is offline   Reply With Quote

Old   September 8, 2012, 11:15
Default
  #2
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
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!
cfdnewbie is offline   Reply With Quote

Old   September 8, 2012, 11:41
Default
  #3
New Member
 
Chris Turner
Join Date: Jun 2009
Location: Belfast
Posts: 12
Rep Power: 17
chrisoturner is on a distinguished road
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?
chrisoturner is offline   Reply With Quote

Old   September 8, 2012, 12:48
Default
  #4
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
Are we talking about a single core run, or a parallel run?
cfdnewbie is offline   Reply With Quote

Old   September 8, 2012, 12:57
Default
  #5
New Member
 
Chris Turner
Join Date: Jun 2009
Location: Belfast
Posts: 12
Rep Power: 17
chrisoturner is on a distinguished road
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
chrisoturner is offline   Reply With Quote

Old   September 8, 2012, 13:01
Default
  #6
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
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!
chrisoturner likes this.
cfdnewbie is offline   Reply With Quote

Old   September 8, 2012, 13:13
Default
  #7
New Member
 
Chris Turner
Join Date: Jun 2009
Location: Belfast
Posts: 12
Rep Power: 17
chrisoturner is on a distinguished road
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.
chrisoturner is offline   Reply With Quote

Old   September 8, 2012, 18:46
Default
  #8
Senior Member
 
Ford Prefect's Avatar
 
Join Date: Mar 2009
Posts: 157
Rep Power: 17
Ford Prefect is on a distinguished road
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
Ford Prefect 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
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


All times are GMT -4. The time now is 01:43.