|
[Sponsors] |
December 15, 2021, 08:32 |
Using coded function objects in parallel
|
#1 |
New Member
Join Date: Dec 2021
Posts: 23
Rep Power: 4 |
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? |
|
January 14, 2022, 14:13 |
|
#2 |
Senior Member
Julio Pieri
Join Date: Sep 2017
Posts: 107
Rep Power: 9 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Run function objects on final time | b.simpson | OpenFOAM Post-Processing | 3 | September 19, 2022 21:09 |
[Other] mesh airfoil NACA0012 | anand_30 | OpenFOAM Meshing & Mesh Conversion | 13 | March 7, 2022 18:22 |
chtMultiRegionSimpleFoam: crash on parallel run | student666 | OpenFOAM Running, Solving & CFD | 3 | April 20, 2017 12:05 |
[blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 10:56 |
Error with Wmake | skabilan | OpenFOAM Installation | 3 | July 28, 2009 01:35 |