CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Fluent journal file (https://www.cfd-online.com/Forums/fluent/41801-fluent-journal-file.html)

ahmet July 20, 2006 10:48

Fluent journal file
 
Dear all, I am trying to get Fluent run as a batch process on a SGI machine. However, my journal file is not working. Can anyone help me figure out the problem with my journal file and batch script? Also can someone post or send a sample journal file? I copied the batch script and journal file below?

Thank you all in advance. ahmet

****************BATCH*******************

#PBS -N ahmet1 #PBS -S /bin/tcsh #PBS -j oe #PBS -l cput=10:00:00 #PBS -l ncpus=4,mem=1gb

cd $TMPDIR

cp /scratch/a0u8545/060719/6inch-15-alt/6-15a-60-060717-00-fl.jou .

cp /scratch/a0u8545/060719/6inch-15-alt/6-15a-60-060706-00.cas .

module load fluent

fluent 3d -g < 6-15a-60-060717-00-fl.jou > outputfile

cp outputfile /scratch/a0u8545/060719/6inch-15-alt

cp 6-15a-60-060717-00 /scratch/a0u8545/060719/6inch-15-alt

cp 6-15a-60-060706-00.dat /scratch/a0u8545/060719/6inch-15-alt

qstat -f $PBS_JOBID

********************JOU FILE*************************

/file/rc 6-15a-60-060706-00.cas

/define/boundary-conditions/velocity-inlet

;(5ft-inlet)

;zone id/name [5ft-inlet] <RETURN>

;Velocity Specification Method: Magnitude and Direction [no]

<RETURN>

;Velocity Specification Method: Components [no]

<RETURN>

;Velocity Specification Method: Magnitude, Normal to Boundary [yes]

<RETURN>

;Reference Frame: Absolute [yes]

<RETURN>

;Use Profile for Velocity Magnitude? [no]

<RETURN>

;Velocity Magnitude (ft/s) [5.95]

6.80

;Coordinate System: Cartesian (X, Y, Z) [yes]

<RETURN>

;Turbulence Specification Method: K and Epsilon [yes]

<RETURN>

;Use Profile for Turb. Kinetic Energy? [no]

<RETURN>

;Turb. Kinetic Energy (ft2/s2) [10.764263]

<RETURN>

;Use Profile for Turb. Dissipation Rate? [no]

<RETURN>

;Turb. Dissipation Rate (ft2/s3) [10.764263]

<RETURN>

/solve/initialize/compute-defaults/velocity-inlet

;(5ft-inlet)

;zone id/name [5ft-inlet]

<RETURN>

/solve/iterate 50

file/export/ascii

;ASCII file name []

6-15a-60-060717-00

;Surfaces(1) [()]

point-7 point-8 point-9 point-10 point-11 point-12 point-13

;Surfaces(3) [()]

<RETURN>

;Write loads at boundaries? [no]

<RETURN>

;Delimiter/Comma?, if comma not chosen,

;space is assumed to be the delimiter [no]

<RETURN>

;ASCII scalar(1)>

pressure pressure-coefficient velocity-magnitude x-velocity turb-kinetic-energy turb-diss-rate

;ASCII scalar(7)>

q

;Location/Cell-Centered?,

;if Cell-Centered not chosen, node values of scalars are reported [no]

y

exit

y


PAD July 21, 2006 07:26

Re: Fluent journal file
 
I'm not sure about the bc settings in your journal file - I would write

/define/boundary-conditions/velocity-inlet 5ft-inlet n n y y n 6.80 y y n 10.764263 n 10.764263

ahmet August 1, 2006 14:21

Re: Fluent journal file
 
Thanks PAD, that worked just perfect.

However, I couldn't figure out how to enter scalar when exporting the data to an ascii file. I tried something like following but didn't work. I couldn't find it on the manual either. Can anyone help me with this? Thanksss!!! ahmet

file/export/ascii 6-15a-060731 '(point-8 point-9 point-10) n n ????pressure pressure-coefficient velocity-magnitude???? n

ahmet August 1, 2006 23:28

Re: Fluent journal file
 
Hi guys, I am running the following string in batch mode on a unix system. The script seems to be running fine except "file/export/ascii......" line. I am getting the following error message. Can anyone help me fix the problem? Thanks a lot in advance

ahmet

*****************Error message*********************

...
: iter continuity x-velocity y-velocity z-velocity k epsilon time/iter

1 1.0000e+00 1.5968e-03 4.5229e-04 4.6141e-04 2.5910e-04 1.7277e+01 0:02:31 2

2 1.0000e+00 3.8661e-02 2.0908e-02 2.0915e-02 2.9106e-03 5.4566e-01 0:01:15 1

3 2.1964e-01 5.9616e-02 4.4457e-02 4.2590e-02 1.7208e-01 8.7064e+01 0:00:00 0

> adapt/ file/ report/ define/ grid/ solve/ display/ parallel/ surface/ exit plot/ view/

> invalid command [ascii]

> invalid command [pressure-coefficient]

> invalid command [velocity-magnitude]

> adapt/ file/ report/ define/ grid/ solve/ display/ parallel/ surface/ exit plot/ view/

> Writing "6-15a-60-060706-00.dat"... Done.

********************Script************************ *

/file/rc 6-15a-60-060706-00.cas

/define/boundary-conditions/velocity-inlet 4 n n y y n 6.80 y y n 10.764263 n 10.764263

/solve/initialize/compute-defaults/velocity-inlet 5ft-inlet

/solve/initialize/initialize-flow

/solve/iterate 3

/file/export/ascii 6-15a-60-060731-00 (point-7 point-8) n n pressure pressure-coefficient velocity-magnitude x-velocity turb-kinetic-energy turb-diss-rate q n

wd 6-15a-60-060706-00.dat

exit y


ahmet August 1, 2006 23:29

Re: Fluent journal file *NM*
 

khairy August 6, 2006 14:53

Re: Fluent journal file
 
Dear ahmet u can do all u need to perform batch operation as follow 1-open a new journal file 2-from writting the commands like that file read-case "c:\mesh1.mesh"

and see the response of the program u can learn yourself simply 3-close the journal and select what u need to do than save that in a new journal

i hope this useful

khairy-Egypt


ahmet August 6, 2006 16:28

Re: Fluent journal file
 
Thanks Khairy, I will give it a try that way and post my response here. ahmet

OxIan July 6, 2010 05:00

Export
 
Ahmet, did you find a solution to your problem? I have the same one as well


All times are GMT -4. The time now is 23:46.