DEFINE_ADJUST to patch at each time step?
1 Attachment(s)
Hi all,
I have a problem with a udf (I'm not very expert). Problem: 2D problem with 2 fluids and one solid, as in the attached picture. Only energy is solved, no motion. Problem is transient: total time 7200 seconds, time step: 1 second I want to patch water at each time step with a temperature which is function of time (linear function, from 5 ˚C at time 0 s to 8 ˚C at time 7200 s). I think I should go with the DEFINE_ADJUST macro but I don't know how to assign temperature to water domain. Any help is appreciated. Thank you, Daniele |
Solved, if anyone else needs it:
Code:
#include "udf.h" |
All times are GMT -4. The time now is 21:40. |