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

Problems of running the parallel computations

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 5, 2007, 07:05
Default Problems of running the parallel computations
  #1
lorraine
Guest
 
Posts: n/a
Hi, has anyone done the parallel computations before? Can you give me some examples of the batch and journal files of running the fluent on the clusters?

I am using the clusters to run my fluent cases. But I got problems.

I used the batch file and the journal file. But always got errors.

Batch files ################################################# #PBS -N test_job #PBS -q cpu1 #PBS -l mem=3gb #PBS -l walltime=30:00 #PBS -m bea #PBS -M l.bai@swansea.ac.uk

fluent 2ddp -g -i /civeng/cvcluster09/cgpolynk/temp/temp > /civeng/cvcluster09/cgpolynk/tempexample.out #################################################

Journal file ################################################# rcd /civeng/cvcluster09/cgpolynk/temp/tube_pn=0n=1.cas it 500 wcd /civeng/cvcluster09/cgpolynk/temp/tube_pn=0n=1_%i.cas exit #################################################

Can you have a look on my procedure and give some suggestions how to solve this?

Any suggestion are appreciated.

Cheers.

  Reply With Quote

Old   July 5, 2007, 09:51
Default Re: Problems of running the parallel computations
  #2
Bogdan
Guest
 
Posts: n/a
could you please specify what is the problem? what error do you get? I'm using the following script and journal file:

#!/bin/bash

#PBS -l walltime=18:00:00

#PBS -l nodes=2pn=4

#PBS -M bogdan.nichita@epfl.ch

#PBS -m bae

#PBS -V

#

cd $PBS_O_WORKDIR

time fluent 3ddp -pnet -t8 -cnf=$PBS_NODEFILE -gu

< fluent_unsteady > microchannel_05_20.txt

#

rcd microchannel_05_20_2bubbles.cas.gz

solve set time-step 0.000001

solve dual-time-iterate

12000

20

exit

y

  Reply With Quote

Old   July 5, 2007, 10:00
Default Re: Problems of running the parallel computations
  #3
lorraine
Guest
 
Posts: n/a
Thank you for sharing files.

My problem is that:

I can start the fluent using script, but it can not find the journal file in the batch command. I qsubed the job under my working directory, and the script and journal are in the same fold. But it can not recognize the journal.

I use qsub in my working directory. So I dont think I should include the full path in the script and journal file.

Is that batch command right?

cd /civeng/cvcluster09/cgpolynk/temp fluent 2ddp -g < temp >& results.txt &

or should I ignore the cd command?

  Reply With Quote

Old   July 5, 2007, 10:07
Default Re: Problems of running the parallel computations
  #4
Bogdan
Guest
 
Posts: n/a
there are some variables available within PBS, one of them is $PBS_O_WORKDIR which contains the path to your working directory, so before writing the fluent command just put

" cd $PBS_O_WORKDIR"

when you submit a job from your working directory, and the job starts, you are in your home directory and not in your working directory.
  Reply With Quote

Old   July 5, 2007, 10:26
Default Re: Problems of running the parallel computations
  #5
lorraine
Guest
 
Posts: n/a
I am trying to using this script:

#!/bin/bash

#PBS -N test_job

#PBS -q cpu1

#PBS -l mem=3gb

#PBS -l walltime=30:00

#PBS -m bea

#PBS -M l.bai@swansea.ac.uk

#PBS -V

cd $PBS_O_WORKDIR

fluent 2ddp -g < jou > result.txt

the errors are

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

stty: standard input: Invalid argument
:
: No such file or directory

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Reply With Quote

Old   July 5, 2007, 11:31
Default Re: Problems of running the parallel computations
  #6
lorraine
Guest
 
Posts: n/a
Hi, I combined the script and journal file into one script file, and ran it. It launched fluent, but it didnt recognize the commands like rcd, it, wcd.

#PBS -N test_job

#PBS -q cpu1

#PBS -l mem=3gb

#PBS -l walltime=30:00

#PBS -m bea

#PBS -M l.bai@swan.ac.uk

fluent 2ddp -g > temp1.out

rcd

tube_pn=0n=1.cas

it

500

wcd

tube_pn=0n=1_%i.cas

exit

yes

The output file is: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

stty: standard input: Invalid argument stty: standard input: Invalid argument

: Command not found. /civeng/cvcluster09/cgpolynk/Fluent.Inc/fluent6.2.16/cortex/lnamd64/cortex.3.6.6 -f fluent -g (fluent "2ddp -path/civeng/cvcluster09/cgpolynk/Fluent.Inc") Starting exec /civeng/cvcluster09/cgpolynk/Fluent.Inc/fluent6.2.16/lnamd64/2ddp/fluent.6.2.16 -cx node8:33218:33219

Welcome to Fluent 6.2.16

Copyright 2005 Fluent Inc.

All Rights Reserved

Loading "/civeng/cvcluster09/cgpolynk/Fluent.Inc/fluent6.2.16/lib/flprim.dmp.1119-64" Done.

rcd
: Command not found. tube_pn=0n=1.cas
: Command not found. it
: Command not found. 500
: Command not found. wcd
: Command not found. tube_pn=0n=1_%i.cas
: Command not found. exit
: Command not found. yes
: Command not found.

  Reply With Quote

Old   July 5, 2007, 14:11
Default Re: Problems of running the parallel computations
  #7
ledeomb
Guest
 
Posts: n/a
are you running on Linux?
  Reply With Quote

Old   July 6, 2007, 01:25
Default Re: Problems of running the parallel computations
  #8
mAx
Guest
 
Posts: n/a
did you try running one calculation on your cluster without batch? For starting the parallel process you should type a specific arguments which depends on your architecture. for example> fluent 3ddp -pnet
  Reply With Quote

Old   July 6, 2007, 03:10
Default Re: Problems of running the parallel computations
  #9
Bogdan
Guest
 
Posts: n/a
try like this:

#PBS -N test_job

#PBS -q cpu1

#PBS -l mem=3gb

#PBS -l walltime=30:00

#PBS -m bea

#PBS -M l.bai@swan.ac.uk

fluent 2ddp -g <<__EOF__> temp1.out

rcd

tube_pn=0n=1.cas

it

500

wcd

tube_pn=0n=1_%i.cas

exit

yes

__EOF__
  Reply With Quote

Old   July 6, 2007, 04:46
Default Re: Problems of running the parallel computations
  #10
lorraine
Guest
 
Posts: n/a
yes, linux on clusters
  Reply With Quote

Old   July 6, 2007, 04:49
Default Re: Problems of running the parallel computations
  #11
lorraine
Guest
 
Posts: n/a
yes, I tried, it works. I started it using

fluent 2ddp -g rec ?????.cas it 500 wcd ?????.cas yes exit

These command succeeded in the SSH by typing these commands.
  Reply With Quote

Old   July 6, 2007, 05:36
Default Re: Problems of running the parallel computations
  #12
mAx
Guest
 
Posts: n/a
are you sure you are running with parallel process? the -g argument means only that fluent won't execute the gui interface (ie: just in background) How many CPU do you have in your cluster? (check the number of partitions in your cas file. this number should be the same as the spawned nodes)

  Reply With Quote

Old   July 6, 2007, 06:34
Default Re: Problems of running the parallel computations
  #13
lorraine
Guest
 
Posts: n/a
yes, I am using SSH secure shell to log onto the Linux system, and running the parallel fluent on clusters.

It seems the parallel fluent doesnot know the command 'rcd', so I change to use this '/file/rcd'. It seems running now.

Thank you for your suggestions.
  Reply With Quote

Old   July 6, 2007, 06:54
Default Re: Problems of running the parallel computations
  #14
lorraine
Guest
 
Posts: n/a
No, it still crashed. Not know the command /file/rcd.
  Reply With Quote

Old   July 6, 2007, 07:27
Default Re: Problems of running the parallel computations
  #15
mAx
Guest
 
Posts: n/a
I am also running parallel computation under linux cluster (RSH). can you copy and paste all the lines wich appears in your fluent window when you start fluent with your command, till it crashes.
  Reply With Quote

Old   July 6, 2007, 07:37
Default Re: Problems of running the parallel computations
  #16
lorraine
Guest
 
Posts: n/a
#PBS -N test_job

#PBS -q cpu1

#PBS -l mem=3gb

#PBS -l walltime=30:00

#PBS -m bea

#PBS -M l.bai@swansea.ac.uk

fluent 2ddp -g > temp1.out

/file/rcd tube_pn=0n=1.cas

/file/autosave/data-frequency

1000

/solve/set/variable-time-stepping

yes # variable time stepping #

2 # global courant number #

0.009

# Truncation Error Tolerance [0.0099999998] #

1000 # Ending Time (s) [1000] #

0.0001 # Minimum Time Step (s) [9.9999997e-05] #

10 # Maximum Time Step (s) [10] #

0.5 # Minimum Step Change Factor [0.5]#

5 # Maximum Step Change Factor [5] #

1 # Number of Fixed Time Steps [1] #

/file/wcd tube_pn=0n=1_%i.cas

/exit

y

  Reply With Quote

Old   July 6, 2007, 07:37
Default Re: Problems of running the parallel computations
  #17
lorraine
Guest
 
Posts: n/a
stty: standard input: Invalid argument stty: standard input: Invalid argument

: Command not found. /civeng/cvcluster09/cgpolynk/Fluent.Inc/fluent6.2.16/cortex/lnamd64/cortex.3.6.6 -f fluent -g (fluent "2ddp -path/civeng/cvcluster09/cgpolynk/Fluent.Inc") Starting exec /civeng/cvcluster09/cgpolynk/Fluent.Inc/fluent6.2.16/lnamd64/2ddp/fluent.6.2.16 -cx node8:33335:33336

Welcome to Fluent 6.2.16

Copyright 2005 Fluent Inc.

All Rights Reserved

Loading "/civeng/cvcluster09/cgpolynk/Fluent.Inc/fluent6.2.16/lib/flprim.dmp.1119-64" Done. /file/rcd: Command not found. /file/autosave/data-frequency
: Command not found. 1000
: Command not found. /solve/set/variable-time-stepping: Command not found. yes: standard output: No space left on device yes: write error 2: Command not found. 0.009: Command not found. 1000: Command not found. 0.0001: Command not found. 10: Command not found. 0.5: Command not found. 5: Command not found. 1: Command not found. /file/wcd: Command not found. /exit
: Command not found. y
: Command not found.

: Command not found.

: Command not found.

: Command not found.

: Command not found.
  Reply With Quote

Old   July 6, 2007, 08:08
Default Re: Problems of running the parallel computations
  #18
mAx
Guest
 
Posts: n/a
sorry for insisting, but are you sure you are running parallel version of fluent?

*start fluent on your cluster WITHOUT the -g argument and WITHOUT your journal file. you will see fluent GUI loading. Then go and check your nodes spawned in your cluster (Parallel>Network>Configure ) if you your nodes in the spawned nodes colums, then ok fluent parallel is running

*file/read/journal and load your journal file. this is an alternative for running batch.

do you still have error?
  Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird problems running unsteady braennstroem OpenFOAM Running, Solving & CFD 5 June 8, 2011 20:38
Running in parallel Rasmus Gjesing (Gjesing) OpenFOAM 35 March 31, 2011 18:21
Error while running in PARALLEL Ravi Duggirala FLUENT 4 August 3, 2010 10:01
User fortran error when running CFX-10 in parallel CFDworker CFX 2 October 26, 2007 16:01
Problems in Parallel PHOENICS Zeng Phoenics 3 February 27, 2001 14:28


All times are GMT -4. The time now is 15:47.