UDF-reference to a different thread
Hi everybody,
I have to create a UDF for a wall: in particular the wall temperature must depend on the temperature of a point not next to the boundary (in this point there's a temperature sensor and the wall temperature changes thanks to a feedback) I don't now how to create the thread, in the UDF, referring to this point (so that I can use C_T function...) I should have, in the end, two threads in my UDF: the one belonging to the boundary (declared in DEFINE_PROFILE) and this new thread... Some suggestions? (excuse for my bad english) |
Quote:
you can easily separate your desired volume which encompasses the sensor with this procedure: 1) Adapt->region ..... (define your volume as small as possible which contains the sensor location) 2) grid ->separate-> cells ..... (separate the selected volume) 3) define-> boundary condition ..... (find its ID) 4) if this volume contains more than 1 cell, do proper consideration in UDF such as finding average of properties in this volume and then use it as sensor variable... 5) Enjoy! Bests, |
Thank you very much, Amir :)
I haven't tried your solution yet because I would prefer one independent on the mesh I have written this UDF, but it doesn't work Code:
wall temperature doesn't decrease even if trif>tlimit :( maybe in DEFINE_PROFILE trif isn't the one defined in the previuos function (DEFINE_ADJUST)? |
Yes; use global variable for "trif"
Bests, |
All times are GMT -4. The time now is 08:15. |