CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Overwrite Values each n-th time step (https://www.cfd-online.com/Forums/fluent-udf/174739-overwrite-values-each-n-th-time-step.html)

Student1989 July 18, 2016 10:59

Overwrite Values each n-th time step
 
Hey everyone,

Got a question:
Is it possible to overwrite a solution of a object each n-th time step?
More accurate, I have several objects in my calculation grid, and i want to "copy" the values of object 1 to object 2 and so on...

Thank you in advance,
Cheers

Bruno Machado July 20, 2016 04:09

Can you explain a bit more so we can try to help?

Student1989 July 20, 2016 05:44

Yes of course,

I want to model the warming of steel slabs as passing through a furnace. The steel slabs are therefore shifted every x seconds. So, the steel slab on position 1 moves to position 2 and so on.
So, when I am performing a transient simulation is it possible to copy all Information from one steel slap to another each x seconds. I know in transient simulations it is possible to write data with "Automatic Export", but is it possible with an udf, so i do not have to do it manually?

cheers

Bruno Machado July 20, 2016 06:48

Quote:

Originally Posted by Student1989 (Post 610406)
Yes of course,

I want to model the warming of steel slabs as passing through a furnace. The steel slabs are therefore shifted every x seconds. So, the steel slab on position 1 moves to position 2 and so on.
So, when I am performing a transient simulation is it possible to copy all Information from one steel slap to another each x seconds. I know in transient simulations it is possible to write data with "Automatic Export", but is it possible with an udf, so i do not have to do it manually?

cheers

You can use UDM to storage whatever the information you want. Use an DEFINE_EXECUTE_AT_END so at the end of each iteration (or time step if transient) it will storage the variable you want in a UDM. Later you can set the UDM value to the profile/variable you want.

Student1989 July 20, 2016 07:25

Thank you very much.
Maybe other questions arise later ;)

cheers

Student1989 October 11, 2016 04:48

Hello,

another question arised. The method with the UDM seems great, but in my case i have more than 500 cells, so the memory will be exceeded. Is there another possibility to transfer the data and maybe modify during the transfer?

Thanks in advance,

Cheers

pakk October 11, 2016 05:35

I use UDM with more than 40 million cells, so it is hard to believe that you run into problems with 500 cells...

Bruno Machado October 11, 2016 05:53

I'd say the same. I work with over 40 UDM and 1.2mi cells and had no problem at all. I think either there is a misunderstanding from your part or you are doing something wrong that is causing the loop not to stop running and is overloading your memory.

Student1989 October 11, 2016 06:02

Apparently I misunderstood something.
Thaks for your help

cheers


All times are GMT -4. The time now is 11:09.