CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   single Variable storage UDF (

bohis November 14, 2008 09:25

single Variable storage UDF
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!!!

zou jianfeng November 16, 2008 04:38

Re: single Variable storage UDF
A simple way to meet your need is writing/reading by a temporary file. Any more rapid way?

max November 17, 2008 10:34

Re: single Variable storage UDF
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.


All times are GMT -4. The time now is 04:24.