CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

Discretizer: How to run a case in parallel?

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   January 22, 2011, 17:12
Default Discretizer: How to run a case in parallel?
Senior Member
Join Date: Mar 2009
Posts: 119
Rep Power: 10
klausb is on a distinguished road

does anyone use Discretizer and knows how to set it up to run a case in parallel on a 4 core processor?


klausb is offline   Reply With Quote

Old   January 23, 2011, 13:21
New Member
Join Date: May 2009
Posts: 12
Rep Power: 10
ggruber is on a distinguished road
Hello Klaus,

i compiled OpenFOAM an my machine.
Starting Discretizer with this shell script

. /home/username/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc
starts Discretizer with this massage:

username@machine:~$ ./
Building on 2 cores

That's why i think the Solver (OpenFOAM) works on two cores.

Nothing special to do in Discretizer.
ggruber is offline   Reply With Quote

Old   January 23, 2011, 15:12
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,123
Blog Entries: 39
Rep Power: 110
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
Greetings to all!

OK, let me start off by saying that the best place for questions about Discretizer in this forum is here:
I say this because Björn Bergqvist, the author of Discretizer, can more easily keep track of feedback here in the forum if questions are made there. The other possibility is to send him directly an email with your questions. And I say ask him directly, because documentation is still limited, so only the author can be 90 to 100% sure of what works and doesn't.

Now, as far as I know, Discretizer still is far from completion. Currently it can act as training wheels and get you started, but it will only get you up to a certain point. So for things like launching simulations in multi-core/parallel simulations, you'll have to roll up your sleeves and get to the terminal and do things directly from there and with the help of your favourite text editor, acting as your faithful assistant.
Nonetheless, if the menu item "Solver->decomposeParDict" is enabled - after you've be setting up your simulation case and running with the settings you have defined - then that's the place where you can define how many sub-domains you can divide the mesh and what method should be used for the division procedure. And even then, if there is such an option to run in parallel, it should appear when you click on the menu item "Run->Run Simulation".

@ggruber: If it says:
Building on 2 cores
It applies only to building/compiling the code, not launching simulations or executing solvers in parallel
The capability to build in multiple cores is also very important, because in slow machines (1.0-2.0Ghz) machines, building the whole OpenFOAM toolbox with a single core, can take up-to 6 hours or more!! While with a state-of-the-art Intel i7 9xx 3.x GHz, or an AMD 1xxxT 3.x GHz machine, it can take only 30 minutes or even less!

Best regards and good luck!
wyldckat is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reconstruction after parallel run with dynamic mesh refinement sebonator OpenFOAM 8 August 11, 2011 03:56
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
How to run airFoil2D exapmle in parallel on 4 cores? klausb OpenFOAM 2 January 9, 2011 03:45
Unable to run OF in parallel on a multiple-node cluster quartzian OpenFOAM 3 November 24, 2009 14:37
serial run fine, but parallel run diverged phsieh2005 OpenFOAM Running, Solving & CFD 2 October 6, 2009 08:33

All times are GMT -4. The time now is 22:51.