Space- and time-dependant heat flux via UDF
Hi there,
I am currently trying to simulate a laser beam moving along the surface of a flat plate. For this purpose, the heat flux at the boundary has to be a function of time and space. As a first try, I would like to set up a quasi-2-dimensional test case. Thus the heat flux should follow the equation I=I_0*[step(x-x_0-t*v)-step(x-x_0-b-t*v)] I_0: intensity of the beam x: direction of the movement of the laser beam x_0: starting point of the laser beam t: simulation time v: speed at which the beam is moved across the surface b: width of the laser beam I found a few examples of UDFs varying a variable in time OR space, but not both at the same time. Since I am new to UDF programming I would really appreciate your help. |
Really? No ideas or suggestions?
|
For those who might be searching for something similar:
Some of the signs in my equation were wrong, the UDF now looks like this: Code:
#include "udf.h" |
The UDF in my last post does what I need.
But thanks a lot for your offer. |
Hi Flotus1,
i want to model a heat transfer process in which the heat flux of the wall varies with time. do you have any example? i am new in udf. thanks in advance. |
All times are GMT -4. The time now is 21:28. |