|
[Sponsors] |
November 14, 2008, 09:25 |
single Variable storage UDF
|
#1 |
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!!! |
|
November 16, 2008, 04:38 |
Re: single Variable storage UDF
|
#2 |
Guest
Posts: n/a
|
A simple way to meet your need is writing/reading by a temporary file. Any more rapid way?
|
|
November 17, 2008, 10:34 |
Re: single Variable storage UDF
|
#3 |
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 |
|
|
|
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 |