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

advanced output

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 7, 2001, 11:24
Default advanced output
  #1
huwei
Guest
 
Posts: n/a
now I can use the command " track record=on echo=on ... " record the data of x,y,z,and time of each particle tracked to scalar field (RSF file) in the type of Part_number of particle_x or y or z or time, such as part_1_x. then I have to use the function "advanced input/output" under the "file" menu in GUI of Tascflow to write the data I need (from part_1_x, ... to part_100_time) into 400 files respectivlly :--( then I use ftp transfer these files to my computer to calculate the blood damage.

maybe you have found that all these work are repeatly. I mean in the procedure of output the data I need, what I do is: step1, click "advanced input/output" under the "file" menu in GUI; step2: in the window of advanced input/ouput, select RSF in type, write in operation, give a file name in file, such as part1x.dat, up to the data I write, region don't need to give or change, write the scalar name in Data fields, such as part_1_x, then click OK button, then one file named part1x.dat incluing the data of part_1_x was stored. after this, I go back to step1 to output part_1_y into part1y.dat. what I change are only the scalar data name and file name.

so I think there maybe some method such as macro or sth like .bat file in dos or a little program in unix can operate the RSF data directly and do the repeatly job for me, but I am not familiar with the command line type of Tascflow and Unix command, so could you give me some idea about these.

thanks in advance!
  Reply With Quote

Old   March 21, 2001, 15:43
Default Re: advanced output
  #2
Tascflow User
Guest
 
Posts: n/a
If you go to the Macro Manager under the Tools menu in the GUI. You can then type in a set of repeated commands you want to use. I used the macro below to read in transient data from the rso and then write the data to a rsf file for each iteration of my solution. See chapter 8 in the user manual for the specifics on using macros

$1 = is the argument statement when executing the macro aa = the number of iterations in my solution ii = a count that is performed to end the while loop once all of the iterations have been read and written.

-- Macro write_transient_to_rsf define parameter activeregion=center_line define parameter aa=$1 define parameter ii=1

calc aa=$aa+1

while ($ii < $aa)

read rso iteration=$ii

write rsf rsf_fields="j t_solid" to /homedirectory/filename$ii.dat

echo Run $ii of $aa is complete

calc ii=$ii+1

endwhile
  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
Questions about data output aki_yafuji OpenFOAM Running, Solving & CFD 3 September 9, 2010 02:59
lift and drag on ship superstructures vaina74 OpenFOAM Running, Solving & CFD 3 June 8, 2010 13:30
[Other] Output Format of MetaMesh t42 OpenFOAM Meshing & Mesh Conversion 0 August 3, 2007 05:28
can "output control " output Nu in expression? prayskyer CFX 3 July 7, 2006 20:37
Help with DPM UDF for OUTPUT needed Zhengcai Ye FLUENT 0 January 5, 2004 17:58


All times are GMT -4. The time now is 10:29.