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

PythonFOAM parallel run

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By pbevington

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 24, 2023, 11:15
Default PythonFOAM parallel run
  #1
New Member
 
Nasrin Sahranavardfard
Join Date: May 2023
Posts: 2
Rep Power: 0
Nasrin Fard is on a distinguished road
Hi all,
I am using Python and numpy libraries inside OpenFOAM, and I use a Python module to calculate density instead of rho = thermo.rho() whatever we have that in reactingFoam solver. I had to define objects and arguments to make the module readable. for running an OpenFOAM code in parallel, I use the following command "mpirun -np 2 reactingFoam -parallel", but it doesn't work for the PythonFOAM case. and I see the following error,
"mpirun noticed that process rank 0 with PID 0 on node BOOK-SK5J7CQPFM exited on signal 11 (Segmentation fault)."
did you have any experience with parallel running?
Nasrin Fard is offline   Reply With Quote

Old   May 30, 2023, 18:17
Default
  #2
New Member
 
Peter Bevington
Join Date: May 2023
Posts: 10
Rep Power: 3
pbevington is on a distinguished road
Have you tried running in serial? Does it only fail when running in parallel?

What does your parallel setup look like? Do you have a decomposeParDict?
Nasrin Fard likes this.
pbevington is offline   Reply With Quote

Old   May 30, 2023, 18:23
Default
  #3
New Member
 
Nasrin Sahranavardfard
Join Date: May 2023
Posts: 2
Rep Power: 0
Nasrin Fard is on a distinguished road
Thanks pbevington for your reply. I can run it in serial without any problem. For parallel running I do decomposePar first and after that mpirn...but it doesn't work. Maybe it is related to the ranks, but I don't kmow what should I do exactly.
Nasrin Fard 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
The problem when i use parallel computation for mesh deforming. Hiroaki Sumikawa OpenFOAM Running, Solving & CFD 0 November 20, 2018 03:58
chtMultiRegionSimpleFoam: crash on parallel run student666 OpenFOAM Running, Solving & CFD 3 April 20, 2017 12:05
User fortran to input/output file in a parallel run doublestrong CFX 5 March 31, 2017 09:15
parallel Grief: BoundaryFields ok in single CPU but NOT in Parallel JR22 OpenFOAM Running, Solving & CFD 2 April 19, 2013 17:49
Parallel Run on dynamically mounted partition braennstroem OpenFOAM Running, Solving & CFD 14 October 5, 2010 15:43


All times are GMT -4. The time now is 09:33.