|
[Sponsors] |
April 2, 2009, 17:22 |
How to? Flow3D commands from command line
|
#1 |
New Member
PG
Join Date: Apr 2009
Posts: 8
Rep Power: 17 |
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 |
|
April 3, 2009, 17:51 |
|
#2 |
Member
Join Date: Mar 2009
Posts: 40
Rep Power: 17 |
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. |
|
April 7, 2009, 13:46 |
|
#3 |
New Member
PG
Join Date: Apr 2009
Posts: 8
Rep Power: 17 |
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? |
|
April 7, 2009, 16:05 |
|
#4 |
Member
Join Date: Mar 2009
Posts: 40
Rep Power: 17 |
guipost -1 flsgrf.xxxx
|
|
April 7, 2009, 16:16 |
|
#5 |
New Member
PG
Join Date: Apr 2009
Posts: 8
Rep Power: 17 |
Dear HC.
Thanks again. IT WORKS!!! |
|
April 8, 2009, 14:12 |
|
#6 |
New Member
PG
Join Date: Apr 2009
Posts: 8
Rep Power: 17 |
Can you tell me which document should I look to get more help on these command line commands? Does it available anywhere on web?
|
|
April 16, 2009, 16:18 |
|
#7 |
New Member
PG
Join Date: Apr 2009
Posts: 8
Rep Power: 17 |
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((', / ------------------------------------------------ |
|
April 16, 2009, 16:56 |
|
#8 |
Member
Join Date: Mar 2009
Posts: 40
Rep Power: 17 |
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. |
|
|
|
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 |