CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Scripts to run fluent in Linux cluster via windows (https://www.cfd-online.com/Forums/fluent/206937-scripts-run-fluent-linux-cluster-via-windows.html)

sanjaykummar2810 September 19, 2018 09:32

Scripts to run fluent in Linux cluster via windows
 
1 Attachment(s)
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

vesp September 19, 2018 09:44

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.

sanjaykummar2810 September 19, 2018 10:02

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

vesp September 19, 2018 10:07

just replace the line "cd $PBS_0_WORKDIR"
with
"cd /share/apps/ansys_inc/v162/fluent"

That should work!

sanjaykummar2810 September 19, 2018 10:14

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".

vesp September 19, 2018 10:26

at which command? sounds like you have some typo

sanjaykummar2810 September 19, 2018 10:40

im getting error at cd

error message ´cd: Too many arguments´

what do you mean by typo?

vesp September 19, 2018 10:48

Quote:

Originally Posted by sanjaykummar2810 (Post 706818)
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)

sanjaykummar2810 September 19, 2018 10:55

1 Attachment(s)
it is still showing cd:too many arguments

vesp September 19, 2018 11:01

Quote:

Originally Posted by sanjaykummar2810 (Post 706823)
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


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