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

PBS fluent: command not found

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 16, 2020, 04:28
Default PBS fluent: command not found
  #1
New Member
 
shenghui Gao
Join Date: Dec 2016
Posts: 4
Rep Power: 9
prandtl Gao is on a distinguished road
Hi CFDers,

I write a pbs script in order to run fluent in my computer server. My PBS:

## fluent environment##
export PATH=/usr/local/ansys_inc/v191/fluent/bin:$PATH

fluent 3d -g -t$NCPUS -cnf=pnodes -i XXX.jou > output.log 2>&1

where,
NCPUS='cat ${PBS_NODEFILE} | wc -l'
pnodes : cat $PBS_NODEFILE | sort > pnodes

when I qsub the script, the output.log wirte: flunet: command not found.

However, when paste the command in terminal, it runs OK.


Best Regards
prandtl Gao is offline   Reply With Quote

Old   April 16, 2020, 04:42
Default Full Path
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
The script as such does not seem to have any issue. To debug, you can try echoing the PATH variable. Secondly, you can use full path for the command instead of setting path.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 17, 2020, 03:59
Smile my script
  #3
New Member
 
shenghui Gao
Join Date: Dec 2016
Posts: 4
Rep Power: 9
prandtl Gao is on a distinguished road
Quote:
Originally Posted by vinerm View Post
The script as such does not seem to have any issue. To debug, you can try echoing the PATH variable. Secondly, you can use full path for the command instead of setting path.
Thanks Vinerm, that's helpful. I found a mistake using echo variables. Also, Full path instead of Path variables is adopted. But still it shows the message, fluent: command not found.

here is my scripts:
#!/bin/bash
#PBS -N Fluent-Ma2
#PBS -q intel
#PBS -l nodes=3pn=24
#PBS -S /bin/bash
#PBS -o pbs.log
#PBS -e pbs.err
NCPUS=`cat ${PBS_NODEFILE} | wc -l`

cd $PBS_O_WORKDIR

export PATH=/usr/local/ansys_inc/v191/fluent/bin:$PATH
fluent 3d -g -t${NCPUS} -cnf=${PBS_NODEFILE} -i xxx.jou > output.log 2>&1

Any comments will be appreciate!
prandtl Gao is offline   Reply With Quote

Old   April 17, 2020, 06:14
Default Modules
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
Do you load any modules for running simulation when you directly type the command in your terminal? If yes, then you also have to load the module in the PBS script. If not, then you should try with something else, such as, a simple bash script that prints Hello. If that also does not work, then there is problem with PBS.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 18, 2020, 02:05
Default Solved
  #5
New Member
 
shenghui Gao
Join Date: Dec 2016
Posts: 4
Rep Power: 9
prandtl Gao is on a distinguished road
Quote:
Originally Posted by vinerm View Post
Do you load any modules for running simulation when you directly type the command in your terminal? If yes, then you also have to load the module in the PBS script. If not, then you should try with something else, such as, a simple bash script that prints Hello. If that also does not work, then there is problem with PBS.
Yes, Vinerm. You are right. Finally, I found it is the problem of something else.
I noticed that when I ssh to the computaitonal nodes, I can't start fluent normally, which means the computational nodes' configuration has some errors. So I install the ansys software in the directory where the management node and the computational nodes can share each other. Then, it works.

Regards
prandtl Gao 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
Two phase flow in porous medium Milaad OpenFOAM 6 December 15, 2020 07:55
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21
OpenFOAM15 paraFoam bug koen OpenFOAM Bugs 19 June 30, 2009 10:46
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 04:41


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