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

One question about reading data files

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 13, 2011, 02:07
Unhappy One question about reading data files
  #1
New Member
 
Join Date: Jan 2011
Posts: 6
Rep Power: 15
Spurny is on a distinguished road
Hi guys,

I am working on an unsteady case with particles. I am trying to use the data of flow field in the past as the initial condition/boundary condition for the particle tracking in the current time step, since the flow field is periodical.

I tried both scheme macros and UDF. Here are my questions:
1, For scheme macros, how to read a data file with a variable inside the name of the data file. I need to add a variable of current_time to locate the data file in the past.
2, For UDF, which one should I use, DEFINE_RW_FILE or fopen?

HELP!
Spurny
Spurny is offline   Reply With Quote

Old   February 13, 2011, 08:57
Default
  #2
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 23
Amir is on a distinguished road
Hi Spurny,
I did something similar with journal of FLUENT. you can develop a journal file with e.g. any compiler like FORTRAN,... .you can easily sort your commands there.
regards
Amir 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
Tecplot360 problem for reading OpenFOAM data maysmech OpenFOAM Post-Processing 5 April 13, 2011 16:37
Video from case and data files girino FLUENT 9 March 29, 2010 03:41
OpenFOAM15 paraFoam bug koen OpenFOAM Bugs 19 June 30, 2009 11:46
[Commercial meshers] TGridFluent mesh with internal by prism layer and internal face for diagnostic sponiar OpenFOAM Meshing & Mesh Conversion 2 March 30, 2009 16:02
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 18:27


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