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

OpenFOAM Running error with multiple nodes

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 27, 2019, 04:34
Default OpenFOAM Running error with multiple nodes
  #1
Member
 
Dokeun, Hwang
Join Date: Apr 2010
Location: Korea, Republic of
Posts: 98
Rep Power: 16
dokeun is on a distinguished road
Dear foamers.

There is 2 nodes and each node has n processors.

The default ver is 2.4 and I wanted to dev-version.

When I use single node. I just typed ‘ofdev’ to change the version.

Whenever I change node, I have to type the command ‘ofdev’.

Now I’m trying to run my case with multiple nodes in a cluster which has several versions of OpenFOAM.

So, I command as below.

Code:
mpirun —hostfile machines -np 12 Solver(ex: InterFoam) > log &
I have machines file to fefine node and process as below

Code:
node1 cpu=6
node2 cpu=6
And the first line of the log file is
Code:
bash: of240: command not found
And just the node I’m in works.

I think it because the default ver is 2.4 and there was no change command for other node in my command for running openfoam with multiple nodes.

How can I fix this problem?

Last edited by dokeun; June 27, 2019 at 04:35. Reason: To specify the number of processors
dokeun is offline   Reply With Quote

Old   June 28, 2019, 01:04
Default Any one who helps me?
  #2
Member
 
Dokeun, Hwang
Join Date: Apr 2010
Location: Korea, Republic of
Posts: 98
Rep Power: 16
dokeun is on a distinguished road
I refered BPS script from https://www.hpc.dtu.dk/?page_id=1024#Parallel

There is a command as
Code:
# -- load OpenFOAM --
module load OpenFoam/2.3.0/gcc-4.8.3-openmpi
I could load openmpi with
Code:
module mpi/openmpi-x86_64
and then ompi201gsh and mpi/openmpi-x86_64 are listed when I type module list command.

But I have no idea how to load specific version of openfoam with module command.

Would someone give me a hint?

Thank you in advance.


—————————————
I knew I had to change my bashrc

I edit home/users/dokeun/.bashrc
I add the code
Code:
export FOAM_INST_DIR=/usr/local/OpenFOAM; . $FOAM_INST_DIR/OpenFOAM-dev/etc/bashrc
in the end of the file.
But the log is as below
Code:
————————————————————————————————————-
mpirun was unable to find the specified excutable file, and therefor did not launc the job. This error was first reported for process rank 0; it may have occurred for other processes as well.
NOTE: A common cause for this error is misspelling a mpirun command line paramter option (remember that mpirun interprets the first unrecognized command line token as the excutable).

Node:          Dnode1
Excutable: multiphaseInterFoam
————————————————————————————————————-
8 total processes failed to start
What i ran is
Code:
#!/bin/sh
#PBS -N log.PBS
#PBS -l walltime=24:00:00
#PBS -l nodes=2:ppn=12
#..
mpirun —hostfile nachines -np 16 multiphaseInterFoam -parallel > log.multiphaseInterFoam

Last edited by dokeun; June 28, 2019 at 03:36. Reason: More inform
dokeun 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
[Docker] Running OpenFoam 4.1 from script without user intervention fnellmeldin OpenFOAM Running, Solving & CFD 9 June 7, 2017 19:04
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 04:18
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 14:36
Kubuntu uses dash breaks All scripts in tutorials platopus OpenFOAM Bugs 8 April 15, 2008 08:52
CFX4.3 -build analysis form Chie Min CFX 5 July 13, 2001 00:19


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