CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > FLOW-3D

How to? Flow3D commands from command line

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By pgopalak

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 2, 2009, 17:22
Default How to? Flow3D commands from command line
  #1
New Member
 
PG
Join Date: Apr 2009
Posts: 8
Rep Power: 17
pgopalak is on a distinguished road
I'm a newbee to modeling/engineering/fluid dynamics world.

I want to know how to run a Flow3D from command line and issue all commands from there to analyze/render some data file (I call it flsgrf.XXXX)

Someone showed me this on Windows OS (it is clickable). But, my task is to automate following steps that was done in Windows with some sort of script.

1. Start Flow3D
2. click on Analyze tab and Load the data file (flsgrf.XXXXX)
3. click on Test Output,
4. select options from data variables list (at least 4)
5. click on Mesh Block,
6. for each mesh block identify min & max for I,J,K valus,
7. Click on Render
8. click on custom tab to (going thru work around to o/p data for all mesh block into single file)
9. replace I,J,K values on the screen from step 5
10. click on Render
11. Then click on Text in the DisplayResult tab

This will result in some output files.

Please advise me how to OR Where to look for answers..

Thanks in advance.
-PG
zhouyu3092070 and 2697960712 like this.
pgopalak is offline   Reply With Quote

Old   April 3, 2009, 17:51
Default
  #2
H.C
Member
 
Join Date: Mar 2009
Posts: 40
Rep Power: 17
H.C is on a distinguished road
The following is based on the example mblock. Users may need to make appropriate changes in the steps.

1. when the simulation finishes running, a g_flsgrf file will be created. Open it in a text editor, searching for lines like below.

spat_var 18 spatial variables available for mesh block 1
name icomp nc xmn xmx ymn ymx zmn zmx description
dt 1 0 0 0 0 0 0 0 0 2 time-step size
gravx 0 0 0 0 0 0 0 0 0 4 x-component gravitational acceleration
gravy 0 0 0 0 0 0 0 0 0 4 y-component gravitational acceleration
gravz 0 0 0 0 0 0 0 0 0 4 z-component gravitational acceleration
omx 1 0 0 0 0 0 0 0 0 2 omx
omy 1 0 0 0 0 0 0 0 0 2 omy
omz 1 0 0 0 0 0 0 0 0 2 omz
f 0 1 3 2 12 2 3 2 53 2 fraction of fluid
p 0 1 3 2 12 2 3 2 53 2 pressure
prsitr 0 1 3 2 12 2 3 2 53 4 pressure iteration residual
nf 0 1 3 2 12 2 3 2 53 2 nf values
fsarea 0 1 3 2 12 2 3 2 53 2 fluid surface area
u 0 1 3 2 12 2 3 2 53 2 x-velocity
v 0 1 3 2 12 2 3 2 53 2 y-velocity
w 0 1 3 2 12 2 3 2 53 2 z-velocity
vbnd 0 1 0 0 0 0 0 0 0 2 boundary velocities
icstat 0 1 3 2 12 2 3 2 53 2 cell type
ijkmob 0 1 3 2 12 2 3 2 53 2 component number

From there, you can figure out the i/j/k limiters xmn/xmx/ymn/ymx/zmn/zmx in each block.

2. Create your own post-processor input file, flsinp.your_own, in the simulation directory. One way is to create flsinp.tmp by text outputing the data you are looking for, and rename it to flsinp.your_own.

3. Modify the icmp variable in flsinp.your_own to make sure you are looking at the right mesh block, and jmin/jmax to the values we found in the 1st step.

4. In the command line window, type in the following command to generate the output file.

guipost -2 flsgrf.dat flsinp.your_own

This command will create the flslnk.tmp file for text output request, or some plot file for 2d display, or some iso file for 3d display.

If the result file and the post-processor input file have the same extension, users can just type in

runpost <the extension>

This command will create the flslnk.<extension> file for text output request, or some plot file for 2d display, or some iso file for 3d display.

5. Save the flslnk file, repeat from step 3 if necessary.
H.C is offline   Reply With Quote

Old   April 7, 2009, 13:46
Default
  #3
New Member
 
PG
Join Date: Apr 2009
Posts: 8
Rep Power: 17
pgopalak is on a distinguished road
HC... Thank you.

I have one more question.

If I open the result file flsgrf.xxx file from Windows version of Flow3d (Analyze, custom) it generates g_flsgrf, t_flsgrf & c_flsgrf (including flslnk,flsplt & flsout) files.

But, how do I do this from command line? What command should I use?
pgopalak is offline   Reply With Quote

Old   April 7, 2009, 16:05
Default
  #4
H.C
Member
 
Join Date: Mar 2009
Posts: 40
Rep Power: 17
H.C is on a distinguished road
guipost -1 flsgrf.xxxx
H.C is offline   Reply With Quote

Old   April 7, 2009, 16:16
Default
  #5
New Member
 
PG
Join Date: Apr 2009
Posts: 8
Rep Power: 17
pgopalak is on a distinguished road
Dear HC.

Thanks again.
IT WORKS!!!
pgopalak is offline   Reply With Quote

Old   April 8, 2009, 14:12
Default
  #6
New Member
 
PG
Join Date: Apr 2009
Posts: 8
Rep Power: 17
pgopalak is on a distinguished road
Can you tell me which document should I look to get more help on these command line commands? Does it available anywhere on web?


pgopalak is offline   Reply With Quote

Old   April 16, 2009, 16:18
Default
  #7
New Member
 
PG
Join Date: Apr 2009
Posts: 8
Rep Power: 17
pgopalak is on a distinguished road
I have found solution to everything except one issue: While creating "flsinp.your_own" I want to know the how to get values for “iconv”, “icgs” ,“icgso”, “xea(001)”, “yea(001)” and “zea(001)”

What are these and How do I get that ?

------------------------------------------------
&contrl
iconv= 1729577892, icgs= 181707496, icgso= 1,
xea(001)=-1.00000E-11, yea(001)=-1.00000E-11, zea(001)=-1.00000E-11,
/
&pltreq
icmp= 3, omode=-1,
pvnam1='f',
xvnam(1)='p',
xvnam(2)='ijkmob',
xvnam(3)='vf',
jmin(1)=2, jmax(1)=4,
jmin(2)=2, jmax(2)=4,
jmin(3)=2, jmax(3)=5,
tmin=6.200202E+00, tmax=1.240040E+01,
ix=1, iy=2, iz=3,
title='printing f, p, ijkmob and vf'
/
&pltreq
pvnam1='))eof((',
/

------------------------------------------------
pgopalak is offline   Reply With Quote

Old   April 16, 2009, 16:56
Default
  #8
H.C
Member
 
Join Date: Mar 2009
Posts: 40
Rep Power: 17
H.C is on a distinguished road
iconv, icgs and icgso are units control. You can look them up in the manual.
xea, yea, and zea are not important if you only care for the text output.
H.C is offline   Reply With Quote

Reply


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
Anyone is using FLOW3D? Lee Main CFD Forum 12 December 23, 2010 06:41
Please explain this commands. sri31049 FLUENT 3 March 20, 2009 05:38
OpenFOAM14 for Mac OSX Darwin 104 gschaider OpenFOAM Installation 118 July 20, 2008 06:19
Report > Discrete Phase > Report > How to commands Francesco Micchetti FLUENT 1 January 23, 2008 07:10
input only by text commands Peter Kolb FLUENT 1 April 17, 2001 08:02


All times are GMT -4. The time now is 07:48.