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

fluent 12.1, batch mode in linux

Register Blogs Community New Posts Updated Threads Search

Like Tree7Likes
  • 1 Post By sakalido
  • 1 Post By dmoroian
  • 1 Post By sakalido
  • 1 Post By dmoroian
  • 1 Post By mbell10
  • 1 Post By alligngr8
  • 1 Post By Gwench

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2010, 13:17
Default fluent 12.1, batch mode in linux
  #1
Member
 
Sara S.
Join Date: May 2010
Location: NJ, USA
Posts: 41
Rep Power: 15
sakalido is on a distinguished road
Hi all,

I am trying to run fluent 12.1 in batch mode using linux, ubuntu 8.04 and I am using the following command:
fluent 3d -g -i fluent_jou.txt > pressure_outlet_tec.dat 2>&1 &

fluent opens with the start up window ( although I have specified no graphics !!! ) and doesn't do anything.
Even, buy dropping -g, fluent does not read my journal file using this command:
fluent 3d -i fluent_jou.txt

basically both above commands behave the same.
can anybody tell me what is wrong ?
thnx
sara
sakalido is offline   Reply With Quote

Old   May 3, 2010, 14:25
Default
  #2
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Use -gu, but you have to post the content of the fluent_jou.txt!
dmoroian is offline   Reply With Quote

Old   May 3, 2010, 14:55
Default
  #3
Member
 
Sara S.
Join Date: May 2010
Location: NJ, USA
Posts: 41
Rep Power: 15
sakalido is on a distinguished road
Thanks dmoroian for the reply.
I have used -gu as well but it does not work.
I don't think the problem is with my journal file because when I open fluent and read the journal file, It runs without any problem.
What does not work is the command I am typing in the terminal apparently.

I also uploaded the .jou file, it is a very simple one.

Thank you for your help
sara
Attached Files
File Type: txt fluent_jou.txt (11.7 KB, 633 views)
MARIANA LOQUITA likes this.
sakalido is offline   Reply With Quote

Old   May 3, 2010, 16:02
Default
  #4
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
I had a glimpse of your journal file, and is characteristic to a recorded macro from the gui. How do you expect it to work without a gui?
You have to rewrite it again using only tui commands.
dmoroian is offline   Reply With Quote

Old   May 3, 2010, 17:54
Default
  #5
Member
 
Sara S.
Join Date: May 2010
Location: NJ, USA
Posts: 41
Rep Power: 15
sakalido is on a distinguished road
I see. I am new to fluent and I might have very basic problems.
for TUI do I need to type the commands I am using in a text editor ?
There is no other way to create a TUI, right ?
I mean when I choose to "start a journal file" in fluent, it makes a GUI journal file by default, right ?

I already have the first problem that when I type "file>" and enter, there is no option to read the mesh. and "/file/read/mesh grid.msh" does not work either.

Thank you again for your help, I really appreciate it.
sakalido is offline   Reply With Quote

Old   May 4, 2010, 01:36
Default
  #6
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Yes, the most common way to generate a journal file is to use a text editor.
To read in just a mesh, try: "file read-case file.msh"
dmoroian is offline   Reply With Quote

Old   May 4, 2010, 13:09
Default problem with running TUI journal file in batch mode using linux
  #7
Member
 
Sara S.
Join Date: May 2010
Location: NJ, USA
Posts: 41
Rep Power: 15
sakalido is on a distinguished road
Dear dmoroian,

Thank you again for your help.
I made the TUI journal file, but again I have the same problem as before. When I open fluent and read my TUI journal file, it reads it without any problem. However, in termina when I use fluent 3d -g -i fluent_TUI.jou > pressure_outlet_tec.dat 2>&1 & it does not work. what can be the problem ?
As there were some problems with attachments, I copied my TUI journal file bellow.

sara

file read grid_jou.msh
mesh scale 0.001 0.001 0.001
mesh check
define models energy y y n
define models solver pressure-based y
define models steady
define models viscous ke-standard y
define boundary-conditions velocity-inlet inlet1 n n y y n 26 n 300 y n 1 n 1
define boundary-conditions velocity-inlet inlet2 n n y y n 26 n 300 y n 1 n 1
define boundary-conditions velocity-inlet inlet3 n n y y n 26 n 300 y n 1 n 1
define boundary-conditions velocity-inlet inlet4 n n y y n 26 n 300 y n 1 n 1
define boundary-conditions fluid body n n n y 0 0 0 0 0 1 n n n
define boundary-conditions pressure-outlet outlet n 0 n 300 n y y n 1 n 1 n n
define boundary-conditions wall shell 0 n 0 n n n 0 n n n n 0 n 0.5
define materials change-create air air y incompressible-ideal-gas n n n n n n
define operating-conditions reference-pressure-location 0 2.5 0
solve initialize compute-defaults all-zones
solve iterate 400
file write-case-data
file export tecplot 1 total-pressure q
sakalido is offline   Reply With Quote

Old   May 5, 2010, 10:51
Default
  #8
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Hi Sara,
At first glance, your script looks ok.
I'm guessing that you have an alias for fluent that overwrites your options. Try at the command prompt "alias", and see if it returns an alias for fluent.

Dragos
MARIANA LOQUITA likes this.
dmoroian is offline   Reply With Quote

Old   May 5, 2010, 12:00
Default alias ?
  #9
Member
 
Sara S.
Join Date: May 2010
Location: NJ, USA
Posts: 41
Rep Power: 15
sakalido is on a distinguished road
Hi Dragos,

I am not familiar with aliases. I read a little about them. I get the list bellow and I do not see anything related to the problem. can you give me a hint what is alias ? which one do you think is related to my problem and how I can fix it ?
here is the list:
bzif bznf bzic bznc bzi bzn lzif lzic lznf lznc lzi lzn lchdir chdir sync-chdir lls ls lpwd pwd cortex-pwd error source . alias it cwd wd wc rcd rd rc

Thank you veryyyy much for your help again
sara
MARIANA LOQUITA likes this.
sakalido is offline   Reply With Quote

Old   May 6, 2010, 03:37
Default
  #10
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Ok, your list doesn't make too much sense for me either.
Let recap, and do it from the beginning. Execute the following commands in a shell, and post the result here:
Code:
1. cat /etc/issue*
2. echo $SHELL
3. which fluent
4. fluent -h
5. fluent -r
MARIANA LOQUITA likes this.
dmoroian is offline   Reply With Quote

Old   June 16, 2010, 08:54
Default
  #11
New Member
 
Mark Bell
Join Date: Apr 2010
Location: Holywood
Posts: 12
Rep Power: 16
mbell10 is on a distinguished road
the -i switch is used for windows. you need the command..

fluent 3d -g < fluent_jou.txt > pressure_outlet_tec.dat 2>&1 &


also, there is an error, there is no command:
define models steady

in fluent 12.1.. at least, not on 12.1.4.
MARIANA LOQUITA likes this.
__________________
Mark Bell
http://www.markbell.me.uk
mbell10 is offline   Reply With Quote

Old   January 9, 2012, 12:39
Default Urgently Help required: Fluent Batch Mode reg
  #12
New Member
 
deewakar
Join Date: Dec 2011
Posts: 18
Rep Power: 14
alligngr8 is on a distinguished road
I am trying to run fluent in batch mode on windows platform. for that I have written batch file as

fluent -g -i case.jou

Howe ever when I run this batch file fluent starts its launcher, reads the journal file. Till that steps it works fine.But after that I need to manually press 'OK' to start fluent.
I have attached snap shot of what I am getting on running the batch file(also in image)

I have tried fluent 3d -g -i case.jou as well as
fluent 3d -gu -i case.jou but in both case same prob.

In fact when I write 3d or 3ddp in in front of -g and press "OK" to start running fluent it shows error that command 3ddp or 3d not recognized. So I intentionally have removed 3d.

But how to counter this.
I mean how to automate that I may not have to press "ok" again and again for multiple cases
Please guide its extremely urgent

Thanks
Attached Images
File Type: jpg Snapshot.JPG (57.3 KB, 152 views)
MARIANA LOQUITA likes this.
alligngr8 is offline   Reply With Quote

Old   May 3, 2016, 08:16
Default
  #13
New Member
 
TYMEN
Join Date: Aug 2015
Posts: 3
Rep Power: 10
Gwench is on a distinguished road
Hello everyone,

I have exactly the same problem.
In C-shell, my command is "fluent 3d -g < imput.jou > & output &".

But when I press ENTER, the Fluent Launcher appears, although it should not because I disable the GUI with -g.
Two options are then available : OK or CANCEL. When I press OK, Fluent appears in GUI mode... When I press CANCEL, the C-shell is back.

Does anyone have an answer ?

Thank you in advance.
MARIANA LOQUITA likes this.
Gwench is offline   Reply With Quote

Old   September 27, 2017, 08:55
Default Reading Gust profile
  #14
New Member
 
Ujwal Rajan
Join Date: Aug 2017
Posts: 10
Rep Power: 8
ujwal rajan is on a distinguished road
Hey guys,

I am using fluent and matlab to run a fluid structure interaction over an airfoil. I am making use of matlab to feed all the commands into fluent and perform the necessary actions.

I have to input the profile for a gust of wind at the inlet (which is a pressure-farfield) in my case.

i have used the following command in matlab to input the gust:
fprintf(fid,'(ti-menu-load-string "file interpolate read-transient-table " "
\\n")\n');

However, i do not know what to fill in after using the command read-transient table. Also, how do i specify on what zone the profile has to be used in??

Any help is massively appreciated!
Thank you!
ujwal rajan is offline   Reply With Quote

Reply

Tags
batch mode, fluent 12.1, linux


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
Running fluent with udf in batch mode zonexo Fluent UDF and Scheme Programming 2 March 10, 2012 07:50
Fluent 6.3.26 vs 12.1 and partition method Anorky FLUENT 0 April 27, 2010 10:55
Fluent 12.1 on Linux x64 Architecture Issue fivos FLUENT 5 April 24, 2010 15:19
Prosurf in batch mode Dhruv Siemens 1 September 19, 2005 18:02
Performance of fluent on win200 and linux Seb FLUENT 7 February 5, 2004 15:08


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