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

Scripts to run fluent in Linux cluster via windows

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 19, 2018, 10:32
Default Scripts to run fluent in Linux cluster via windows
  #1
New Member
 
sanjay
Join Date: Jun 2018
Posts: 12
Rep Power: 8
sanjaykummar2810 is on a distinguished road
Hello all,
I am facing a problem while using linux cluster to run fluent via windows. In order to run fluent i have wrote two scripts,which you can see in the picture. when i try to run the job using qsub command `qsub fluent_example.job´
Then I got a message as my job has been submitted. But simulation did not start though no one is using the cluster at the moment.
when i have seen the output file i got error as $PBS_O_WORKDIR:undefined varible. Can anyone help me to resolve the error?

Thanks in advance

[ATTACH]65662
Attached Images
File Type: jpg 2.JPG (69.1 KB, 72 views)

Last edited by sanjaykummar2810; September 19, 2018 at 10:34. Reason: picture to keep
sanjaykummar2810 is offline   Reply With Quote

Old   September 19, 2018, 10:44
Default
  #2
Member
 
Join Date: Aug 2018
Posts: 77
Rep Power: 8
vesp is on a distinguished road
well, neither did you define the variable in question nor does it seem to be an exported (i.e. globally available) variable.
So go ahead and set it manually to the directory from which you want to execute from.
vesp is offline   Reply With Quote

Old   September 19, 2018, 11:02
Default
  #3
New Member
 
sanjay
Join Date: Jun 2018
Posts: 12
Rep Power: 8
sanjaykummar2810 is on a distinguished road
Hi Vesp,

The specified location below the $PBS_O_WORKDIR is the directory (/share/apps/ansys_inc/v162/fluent) from which I want to execute. So I am actualy manually setting it.

I am slightly new to linux, hence any help in this regard is much appreciated
sanjaykummar2810 is offline   Reply With Quote

Old   September 19, 2018, 11:07
Default
  #4
Member
 
Join Date: Aug 2018
Posts: 77
Rep Power: 8
vesp is on a distinguished road
just replace the line "cd $PBS_0_WORKDIR"
with
"cd /share/apps/ansys_inc/v162/fluent"

That should work!
vesp is offline   Reply With Quote

Old   September 19, 2018, 11:14
Default
  #5
New Member
 
sanjay
Join Date: Jun 2018
Posts: 12
Rep Power: 8
sanjaykummar2810 is on a distinguished road
Thanks for your fast reply.

I have replaced "cd $PBS_0_WORKDIR" with "cd
/share/apps/ansys_inc/v162/fluent" . Now im getting error as "too many arguments".
sanjaykummar2810 is offline   Reply With Quote

Old   September 19, 2018, 11:26
Default
  #6
Member
 
Join Date: Aug 2018
Posts: 77
Rep Power: 8
vesp is on a distinguished road
at which command? sounds like you have some typo
vesp is offline   Reply With Quote

Old   September 19, 2018, 11:40
Default
  #7
New Member
 
sanjay
Join Date: Jun 2018
Posts: 12
Rep Power: 8
sanjaykummar2810 is on a distinguished road
im getting error at cd

error message ´cd: Too many arguments´

what do you mean by typo?
sanjaykummar2810 is offline   Reply With Quote

Old   September 19, 2018, 11:48
Default
  #8
Member
 
Join Date: Aug 2018
Posts: 77
Rep Power: 8
vesp is on a distinguished road
Quote:
Originally Posted by sanjaykummar2810 View Post
im getting error at cd

error message ´cd: Too many arguments´

what do you mean by typo?
the input to the cd command is wrong, or an enter is missing.

What happens when you remove the line to execute fluent from the job script and just enter "cd XX" (without the "", and replace XX with the dir)
vesp is offline   Reply With Quote

Old   September 19, 2018, 11:55
Default
  #9
New Member
 
sanjay
Join Date: Jun 2018
Posts: 12
Rep Power: 8
sanjaykummar2810 is on a distinguished road
it is still showing cd:too many arguments
Attached Images
File Type: jpg Capture.JPG (17.4 KB, 22 views)
sanjaykummar2810 is offline   Reply With Quote

Old   September 19, 2018, 12:01
Default
  #10
Member
 
Join Date: Aug 2018
Posts: 77
Rep Power: 8
vesp is on a distinguished road
Quote:
Originally Posted by sanjaykummar2810 View Post
it is still showing cd:too many arguments
yes, of course, cd takes ONE argument only

you need two lines: one to change to the dir, the second to execute fluent.

as I said, just input "cd XX", where XX is the directory and nothing else
vesp is offline   Reply With Quote

Reply

Tags
cluster computing, fluent - parallel, linux server


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
How to run fluent in LINUX Selina FLUENT 26 December 4, 2019 18:25
how to use -ssh w/ Fluent on Linux cluster Bill FLUENT 4 April 2, 2014 01:04
Parallel run of OpenFOAM in linux and windows side by side m2montazari OpenFOAM Running, Solving & CFD 5 June 24, 2011 04:26
FLUENT in Windows Serial and Linux Parallel sham83 FLUENT 0 June 1, 2011 00:38
Is the fluent mesh generate in windows can be used in linux? panda60 OpenFOAM 7 October 19, 2009 12:51


All times are GMT -4. The time now is 11:36.