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

where to open the file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2004, 13:19
Default where to open the file
  #1
jx
Guest
 
Posts: n/a
Hi, dear Fluent users,

I have a UDF doing some calculations. I can output them to FLUENT console fine (as FLUENT automatically links the file pointer to console when I use Message() macro and printf() function).

But I wish to ouput some certain results to a file (because fluent console contains too much other information, like iteration residual, etc). The problem is that my writing functions are in the DEFINE_EXECUTE_AT_END() macro (i.e., I want the results at every iteration).

So my question is, should I open the file in which function/macro? If I open the file in DEFINE_EXCUTE_AT_END() macro, wouldn't that mean I open the file every time I try to write data in? I understand I may find a way to open the file in an appended mode, but it would be better if I can open it once and keep it open till the end of my computations.

This sounds like a C question but it is related to how fluent dealing with functions/macros in a UDF.

Thanks for suggestions,
  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
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 19:00
paraview installation woes vex OpenFOAM Installation 15 January 30, 2011 08:11
Installation of OpenFOAM-1.6 on Ubuntu 9.10 marval OpenFOAM Installation 2 March 17, 2010 09:33
Compiling OpenFOAM13 on AMD64 with Redhat Enterprise mbeaudoin OpenFOAM Installation 20 June 17, 2008 07:43
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 13:30.