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

nproc number in decomposeParDict or Allrun for checkMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 5, 2021, 11:54
Default nproc number in decomposeParDict or Allrun for checkMesh
  #1
Member
 
Join Date: Apr 2021
Posts: 41
Rep Power: 5
AlxB is on a distinguished road
dear foamers,

how to set one time only the number of processor ($nproc) which will be used in:

. decomposeParDict
Code:
numberOfSubdomains $nproc;
. Allrun in the checkMesh command
Code:
runApplication -np $nproc checkMesh –parallel
should I write it in decomposeParDict first,
but then what is the command line in Allrun to get it ?

or should I do the contrary,
but then what is the command line in decomposeParDict to get it ?


I have also another question:
how to check the boundary layer coverage with checkMesh ?


thanks if someone could help me on this topic
AlxB is offline   Reply With Quote

Old   May 7, 2021, 08:28
Default
  #2
Member
 
Lorenzo
Join Date: Apr 2020
Location: Italy
Posts: 44
Rep Power: 6
Lorenzo210 is on a distinguished road
Hi,
When you want to run an application in parallel you should write "runParallel".
Example in an Allrun:

runApplication blockMesh
runApplication decomposePar

runParallel $(getApplication)

runApplication reconstructPar

You can see many examples in tutorials, for example in tutorials/multiphase/interFoam/laminar/damBreak.
For what concerns decomposeParDict, you should write there the number of cores, and then runParallel will see that information.

The second question is not so clear to me, sorry.

Cheers,
Lorenzo
Lorenzo210 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
SimpleFoam & Theater jipai OpenFOAM Running, Solving & CFD 3 June 18, 2019 10:11
[OpenFOAM.org] OF2.3.1 + OS13.2 - Trying to use the dummy Pstream library aylalisa OpenFOAM Installation 23 June 15, 2015 14:49
Cluster ID's not contiguous in compute-nodes domain. ??? Shogan FLUENT 1 May 28, 2014 15:03
DecomposePar unequal number of shared faces maka OpenFOAM Pre-Processing 6 August 12, 2010 09:01
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 07:36


All times are GMT -4. The time now is 21:10.