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

Allocate more RAM and CPU to run the case

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 29, 2022, 12:39
Post Allocate more RAM and CPU to run the case
  #1
New Member
 
Ahmed Elsayed
Join Date: Sep 2017
Posts: 28
Rep Power: 9
bolbol is on a distinguished road
Currently I'm using openfoam6 on Ubuntu 16 / virtualbox
The dedicated ram for the system is 12GB and when I tried to run a study case using pimpleFoam, only 1 GB is consumed along with 1 core from the CPU.
Is there a way to increase the resources used to speed up the process?
>> attached the resources consumption
Attached Images
File Type: png Capture.PNG (15.5 KB, 12 views)
bolbol is offline   Reply With Quote

Old   July 29, 2022, 12:56
Default
  #2
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15
agustinvo is on a distinguished road
Hi


I'm not a Virtualbox user, but you should modify your VM settings to use more RAM or CPU.



Regards
agustinvo is offline   Reply With Quote

Old   July 29, 2022, 13:29
Default
  #3
New Member
 
Ahmed Elsayed
Join Date: Sep 2017
Posts: 28
Rep Power: 9
bolbol is on a distinguished road
Quote:
Originally Posted by agustinvo View Post
Hi


I'm not a Virtualbox user, but you should modify your VM settings to use more RAM or CPU.



Regards

I did that already, you can check the attachment above.
There are 5 cores and 11GB ram not used
bolbol is offline   Reply With Quote

Old   July 30, 2022, 04:23
Default
  #4
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15
agustinvo is on a distinguished road
Hi, I was using my smartphone and I didn't check properly.


The RAM usage is linked to the needed memory to allocate mesh, fields... It is what it is. About the CPU... are you using:
Code:
pimpleFoam // one processor in terminal
or

Code:
foamJob pimpleFoam // one processor in background
or
Code:
 decomposePar // decompose your mesh and fields
              // to be used by the different processors
 
 foamJob -p pimpleFoam // parallel simulation

to run your simulation?
agustinvo is offline   Reply With Quote

Old   July 30, 2022, 06:44
Default
  #5
New Member
 
Ahmed Elsayed
Join Date: Sep 2017
Posts: 28
Rep Power: 9
bolbol is on a distinguished road
Quote:
Originally Posted by agustinvo View Post
Hi, I was using my smartphone and I didn't check properly.


The RAM usage is linked to the needed memory to allocate mesh, fields... It is what it is. About the CPU... are you using:
Code:
pimpleFoam // one processor in terminal
or

Code:
foamJob pimpleFoam // one processor in background
or
Code:
 decomposePar // decompose your mesh and fields
              // to be used by the different processors
 
 foamJob -p pimpleFoam // parallel simulation
to run your simulation?

I compiled my own solver actually but it's based on pimpleFoam
And I just write pimpleParticleFoam.

Is all I have to do is writing "foamJob -p pimpleParticleFoam" or there are some setup required before?

=======


I tried that command and it worked already.
"mpirun -np 4 simpleFoam -parallel"


Thank you for you hints

Last edited by bolbol; July 30, 2022 at 07:59.
bolbol is offline   Reply With Quote

Old   July 30, 2022, 11:55
Default
  #6
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15
agustinvo is on a distinguished road
Just remember to decompose your simulation before running. In the corresponding decomposeParDict you can select the number of processors and the decomposition method.

After that you can use mpi or foamJob.
agustinvo is offline   Reply With Quote

Reply

Tags
openfoam, resources


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
General recommendations for CFD hardware [WIP] flotus1 Hardware 19 June 23, 2024 19:02
CPU & RAM for STAR-CCM+ EpicFruit Hardware 4 June 6, 2018 05:18
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
New workstation for different usage scenarios - CPU and RAM natem Hardware 6 August 7, 2013 03:47
Increasing RAM decreases CPU time!!! Melih GULEREN FLUENT 2 April 5, 2004 07:21


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