CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

OpenFOAM computation time

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 30, 2021, 14:18
Default OpenFOAM computation time
  #1
New Member
 
Chris
Join Date: Mar 2021
Posts: 2
Rep Power: 0
spiers818 is on a distinguished road
Hello,
I am running an incompressible, steady state, internal flow model using the k-w turbulence model. I am running the simulation in parallel on 16 cores. In the middle of refining the mesh checking for mesh independence I noticed the run times seemed to be linearly increasing with the number of elements. This seems strange to me as the NS is a non-linear equation I assumed the run time would increase in an exponential manner as the number of elements increase. Can anyone inform me as to why this is?
spiers818 is offline   Reply With Quote

Old   March 31, 2021, 02:39
Default
  #2
Senior Member
 
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 355
Rep Power: 8
geth03 is on a distinguished road
what makes the NS non-linear is divergence(uu).
in openfoam this term is linearized -> divergence(u_old u_new),
while u_old is the velocity that ensures mass conservation from the old timestep, u_new is the velocity for the new timestep.
this way velocity transports itself.

for more information i suggest reading Jasak's dissertation.
geth03 is offline   Reply With Quote

Old   March 31, 2021, 11:39
Default
  #3
New Member
 
Chris
Join Date: Mar 2021
Posts: 2
Rep Power: 0
spiers818 is on a distinguished road
Hey geth03,
Thanks for the information that is very helpful in understanding this situation.
spiers818 is offline   Reply With Quote

Old   March 31, 2021, 17:16
Default
  #4
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
Just to add to geth03's answer, we aren't actually solving the linearized integral-differential equation directly. We are solving an implicit linear algebra problem that is linear itself

Ax=b

with A being the coefficient matrix (weighting values from the mesh and actual PDE), x being the implicit variable (like temperature or velocity), and b our explicit components. You're seeing the linear scaling because the problem size is growing linearly. Now, this has its limits since as problems grow, there are components in this process that become really difficult to scale linearly or maybe the Ax=b system is too large (or small) for our given number of processors and RAM. If you're interested in Ax=b math, Yousef Saad has a great set of books . His book helped me get started writing the CUDA solvers in OpenFOAM years ago.
chegdan 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
SU2 7.0.7 Built on CentOS 7, parallel computation pyscript mpi exit error? EternalSeekerX SU2 3 October 9, 2020 18:28
LES, Courant Number, Crash, Sudden Alhasan OpenFOAM Running, Solving & CFD 5 November 22, 2019 02:05
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 05:28
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 11 February 16, 2017 13:40
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 11:08


All times are GMT -4. The time now is 05:59.