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

[cfMesh] on single core

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 19, 2016, 06:28
Default on single core
  #1
Member
 
benoit paillard
Join Date: Mar 2010
Posts: 96
Rep Power: 16
bennn is on a distinguished road
Hi all,

I'm trying to use cfMesh for automatic optimization, but unfortunately, it automatically uses all the cores on my machine. Do you know if there is a way to force it to use only one core ?

Apart from that it is really working great even on crazy geometries !
Attached Images
File Type: jpg Screenshot from 2016-10-19 12:27:57.jpg (174.9 KB, 41 views)
bennn is offline   Reply With Quote

Old   October 25, 2016, 17:38
Default
  #2
Senior Member
 
Franjo Juretic
Join Date: Aug 2011
Location: Velika Gorica, Croatia
Posts: 124
Rep Power: 16
franjo_j is on a distinguished road
Send a message via Skype™ to franjo_j
Quote:
Originally Posted by bennn View Post
Hi all,

I'm trying to use cfMesh for automatic optimization, but unfortunately, it automatically uses all the cores on my machine. Do you know if there is a way to force it to use only one core ?

Apart from that it is really working great even on crazy geometries !
Hello,

The number of active cores is controlled by the OMP_NUM_THREADS variable. If you set export OMP_NUM_THREADS=1, the mesher will use only one core.
__________________
Principal Developer of cfMesh and CF-MESH+
www.cfmesh.com
Social media: LinkedIn, Twitter, YouTube, Facebook, Pinterest, Instagram
franjo_j is offline   Reply With Quote

Old   June 16, 2021, 03:58
Default
  #3
New Member
 
Daniyal Altaf Baloch
Join Date: May 2021
Location: Milan
Posts: 2
Rep Power: 0
daniyalaltaf is on a distinguished road
Quote:
Originally Posted by franjo_j View Post
Hello,

The number of active cores is controlled by the OMP_NUM_THREADS variable. If you set export OMP_NUM_THREADS=1, the mesher will use only one core.
Hi Franjo,

My query is actually the opposite. I ran "cartesianMesh" on my 4 core 17-7700HQ and openFoam 7 and it used all 4 physical cores and that's great for me.

Now I am using the same command on a workstation PC with a 32 core AMD ryzen Threadripper 2990WX-32 and openFoam 18.10. But this time it is only using 1 core.

Since you mentioned setting OMP_NUM_THREADS, Could you please explicitly explain where and in what sequence to write the commands that are needed to enable multicore usage with cfMesh command "cartesianMesh"

Thanks.
daniyalaltaf 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
Case works on Single Core, but not Multi Core Verse OpenFOAM 0 August 29, 2016 09:44
solving a conduction problem in FLUENT using UDF Avin2407 Fluent UDF and Scheme Programming 1 March 13, 2015 02:02
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36
error when running in parallel, but succeed in a single core. sharonyue OpenFOAM Running, Solving & CFD 1 December 12, 2014 13:24
Single Core vs. Multi Core Issue Traction FLUENT 2 May 14, 2014 13:52


All times are GMT -4. The time now is 08:34.