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

Using coded function objects in parallel

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 15, 2021, 07:32
Default Using coded function objects in parallel
  #1
New Member
 
Join Date: Dec 2021
Posts: 23
Rep Power: 4
MamboJambo is on a distinguished road
Hello,

I am learning how to use coded functionObjects and I would like to know the following:

When I run the code in parallel, OpenFOAM will compile the functionObject.


If I do the same with a boundary condition the code compilation will be made when I decompose the domain.

This may be too basic, but is it "safe" to compile the functionObject when I have already decomposed the domain? The log file of the solver will have a lot of text regarding the compilation of functionObject.



I have rerun the calculations after the dynamicCode folder was fully created and the results are exactly the same. The output of compilation will not appear in the log file (since it was already compiled).

Should I always run the case in single core to let everything compile, cancel the run and afterwards decompose the domain and run in parallel? Or I should disregard the text output from the compilation and just live with it?
MamboJambo is offline   Reply With Quote

Old   January 14, 2022, 13:13
Default
  #2
Member
 
Julio Pieri
Join Date: Sep 2017
Posts: 96
Rep Power: 8
JulioPieri is on a distinguished road
I'm pretty sure it is.

When decomposing the domain, each processor gets info about the BC (have a look at the processorN/constant folders), so it does some checks on the conditions and coding regarding BCs.

When using functionObject, it is ran from the solver itself, so you don't have to "pre compile" it in single processor before decomposing the domain. You can let it compile when running your parallel decomposed case
JulioPieri 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
Run function objects on final time b.simpson OpenFOAM Post-Processing 3 September 19, 2022 20:09
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 17:22
chtMultiRegionSimpleFoam: crash on parallel run student666 OpenFOAM Running, Solving & CFD 3 April 20, 2017 11:05
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 09:56
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 00:35


All times are GMT -4. The time now is 17:58.