CFD Online Logo CFD Online URL
Home > Forums > FLUENT

single Variable storage UDF

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   November 14, 2008, 09:25
Default single Variable storage UDF
Posts: n/a
Hello everybody,

I have the following problem: I use this macro DEFINE_EXECUTE_AT_END and after finishing this only macro I want to store one number to, say, variable X so that I would be able to recall it back in next timestep. I am quite confused with this. Any suggestions? To write it to the file and read it again is the only idea I have. please, tell me? C++ is not my cup of tea

best regards!!!
  Reply With Quote

Old   November 16, 2008, 04:38
Default Re: single Variable storage UDF
zou jianfeng
Posts: n/a
A simple way to meet your need is writing/reading by a temporary file. Any more rapid way?
  Reply With Quote

Old   November 17, 2008, 10:34
Default Re: single Variable storage UDF
Posts: n/a
To have your value stored in the .dat file you may use C_UDM. This is quite an overkill for a single value as it will allocate storage for every cell but if memory on disk is not a big issue it will be the most convenient way.

  Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with storage.h Pifou74 FLUENT 0 February 25, 2005 10:48
Data Storage Tommaso Lucchini (Lucchini) OpenFOAM Running, Solving & CFD 1 January 25, 2005 11:17
Storage of Residuals Volker Phoenics 1 January 14, 2004 08:11
why i can not provide a storage for EP dong liu Phoenics 1 October 4, 2001 03:41
UDF: Checking Thread Storage Greg Perkins FLUENT 0 March 10, 2000 21:35

All times are GMT -4. The time now is 15:23.