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

running PitzDaily parallel

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 24, 2021, 07:42
Default running PitzDaily parallel
  #1
Senior Member
 
qutadah
Join Date: Jun 2021
Location: USA
Posts: 101
Rep Power: 5
qutadah.r is on a distinguished road
Hi everyone i am running pitzDaily tutorial on my universities Workstation and i am using scotch method with 4 processors. I have decomposed the mesh and have the folders for the processors, however when i run the simulation following error occurs...


I am using OpenFoam 6 version....


here are my cpu specs running lscpu command


rababqjt@ws18:/storage/rababqjt/tutorials/incompressible/simpleFoam/pitzDaily/system> lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 39 bits physical, 48 bits virtual
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 2
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 60
Model name: Intel(R) Xeon(R) CPU E3-1271 v3 @ 3.60GHz
Stepping: 3
CPU MHz: 3592.177
CPU max MHz: 4000.0000
CPU min MHz: 800.0000
BogoMIPS: 7183.95
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 8192K
NUMA node0 CPU(s): 0-7



Can anyone help me?


Terminal:

"""

rababqjt@ws18:/storage/rababqjt/tutorials/incompressible/simpleFoam/pitzDaily> simpleFoam -parallel
--------------------------------------------------------------------------
[[24535,1],0]: A high-performance Open MPI point-to-point messaging module
was unable to find any relevant network interfaces:

Module: OpenFabrics (openib)
Host: ws18

Another transport will be used instead, although this may result in
lower performance.

NOTE: You can disable this warning by setting the MCA parameter
btl_base_warn_component_unused to 0.
--------------------------------------------------------------------------


--> FOAM FATAL ERROR:
bool IPstream::init(int& argc, char**& argv) : attempt to run parallel on 1 processor

From function static bool Foam::UPstream::init(int&, char**&, bool)
in file UPstream.C at line 112.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::UPstream::init(int&, char**&, bool) at ??:?
#3 Foam::argList::argList(int&, char**&, bool, bool, bool) at ??:?
#4 ? at ??:?
#5 __libc_start_main in "/lib64/libc.so.6"
#6 ? at /home/abuild/rpmbuild/BUILD/glibc-2.27/csu/../sysdeps/x86_64/start.S:122
[ws18:14780] *** Process received signal ***
[ws18:14780] Signal: Aborted (6)
[ws18:14780] Signal code: (-6)
[ws18:14780] [ 0] /lib64/libc.so.6(+0x394a0)[0x7f2d620c54a0]
[ws18:14780] [ 1] /lib64/libc.so.6(gsignal+0x110)[0x7f2d620c5420]
[ws18:14780] [ 2] /lib64/libc.so.6(abort+0x151)[0x7f2d620c6a01]
[ws18:14780] [ 3] /opt/net/OpenFOAM/OpenFOAM-6/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam5error5abortEv+0x116)[0x7f2d6328d326]
[ws18:14780] [ 4] /opt/net/OpenFOAM/OpenFOAM-6/platforms/linux64GccDPInt32Opt/lib/openmpi-system/libPstream.so(_ZN4Foam8UPstream4initERiRPPcb+0x3cc )[0x7f2d61e8221c]
[ws18:14780] [ 5] /opt/net/OpenFOAM/OpenFOAM-6/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam7argListC1ERiRPPcbbb+0x7e7)[0x7f2d632b3927]
[ws18:14780] [ 6] simpleFoam[0x4261e4]
[ws18:14780] [ 7] /lib64/libc.so.6(__libc_start_main+0xea)[0x7f2d620b034a]
[ws18:14780] [ 8] simpleFoam[0x429c2a]
[ws18:14780] *** End of error message ***
Aborted (core dumped)

"""


Thanks!
qutadah.r is offline   Reply With Quote

Old   September 25, 2021, 20:21
Default
  #2
New Member
 
erickmartinez's Avatar
 
Erick D. Martinez
Join Date: Oct 2020
Location: Texas
Posts: 29
Rep Power: 6
erickmartinez is on a distinguished road
With OpenFOAM you have to run the solver using mpirun

In your case with 4 processors using simpleFoam it would be:

mpirun -np 4 simpleFoam -parallel

Test that out!
erickmartinez is offline   Reply With Quote

Old   September 27, 2021, 05:43
Default
  #3
Senior Member
 
qutadah
Join Date: Jun 2021
Location: USA
Posts: 101
Rep Power: 5
qutadah.r is on a distinguished road
Quote:
Originally Posted by erickmartinez View Post
With OpenFOAM you have to run the solver using mpirun

In your case with 4 processors using simpleFoam it would be:

mpirun -np 4 simpleFoam -parallel

Test that out!
Why would i need an mpi? Or the better question „when do i need an mpi“ i ran alot of parallel simulations without mpi on my laptop. This is the universities workstation (pc).. thanks!
qutadah.r is offline   Reply With Quote

Old   September 27, 2021, 05:47
Default
  #4
New Member
 
erickmartinez's Avatar
 
Erick D. Martinez
Join Date: Oct 2020
Location: Texas
Posts: 29
Rep Power: 6
erickmartinez is on a distinguished road
OpenFOAM in parallel works using OpenMPI. I have used the mpirun to run parallel jobs for all my simulations in the past years. Unless anybody else has any other idea, but as far as I know you always start parallel jobs with mpirun
erickmartinez is offline   Reply With Quote

Old   September 27, 2021, 06:30
Default
  #5
Senior Member
 
qutadah
Join Date: Jun 2021
Location: USA
Posts: 101
Rep Power: 5
qutadah.r is on a distinguished road
i believe I had made a mistake thinking when i decompose and just run simple command it will just solve it parallely without any extra command !


Thanks alot it works now!
qutadah.r is offline   Reply With Quote

Reply

Tags
mpi, openfoam 6, openmpi


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
Error running simpleFoam in parallel Yuby OpenFOAM Running, Solving & CFD 14 October 7, 2021 05:38
[Other] blueCFD-Core-2016 user compiled solvers not running in parallel sbence OpenFOAM Installation 10 December 5, 2018 09:44
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 19:45
Is there a bug when running createBaffles in parallel??? zfaraday OpenFOAM Pre-Processing 1 May 12, 2015 14:32
Fluent 14.0 file not running in parallel mode in cluster tejakalva FLUENT 0 February 4, 2015 08:02


All times are GMT -4. The time now is 20:39.