|
[Sponsors] |
July 29, 2022, 12:39 |
Allocate more RAM and CPU to run the case
|
#1 |
New Member
Ahmed Elsayed
Join Date: Sep 2017
Posts: 28
Rep Power: 9 |
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 |
|
July 29, 2022, 12:56 |
|
#2 |
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15 |
Hi
I'm not a Virtualbox user, but you should modify your VM settings to use more RAM or CPU. Regards |
|
July 29, 2022, 13:29 |
|
#3 |
New Member
Ahmed Elsayed
Join Date: Sep 2017
Posts: 28
Rep Power: 9 |
||
July 30, 2022, 04:23 |
|
#4 |
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15 |
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 Code:
foamJob pimpleFoam // one processor in background Code:
decomposePar // decompose your mesh and fields // to be used by the different processors foamJob -p pimpleFoam // parallel simulation to run your simulation? |
|
July 30, 2022, 06:44 |
|
#5 | |
New Member
Ahmed Elsayed
Join Date: Sep 2017
Posts: 28
Rep Power: 9 |
Quote:
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. |
||
July 30, 2022, 11:55 |
|
#6 |
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15 |
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. |
|
Tags |
openfoam, resources |
|
|
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 |