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

single Variable storage UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 14, 2008, 09:25
Default single Variable storage UDF
  #1
bohis
Guest
 
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
  #2
zou jianfeng
Guest
 
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
  #3
max
Guest
 
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.

Max
  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
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 04:41
UDF: Checking Thread Storage Greg Perkins FLUENT 0 March 10, 2000 21:35


All times are GMT -4. The time now is 19:50.