DFLUX subroutine help

Hi all,

I hope this is the correct place to post this question. I am working on a Simulation for research where I need to model a laser heating the surface of a plate. I have done this easily using the DFLUX subroutine and writing some simple code that will raster a laser at constant power over the surface of the plate. However, the simulation that I really need to run will change the power of the laser based on the max temperature on the surface of the plate. In real life I am running a laser with a pyrometer attached so that it can auto change the power output to hold the spot on the surface at a set temperature. I tried to write a loop into my subroutine that would do this for me but haven't had luck with it yet. My question is: When is the subroutine called for DFLUX? Is it every timestep or is it only called once which would make my loop useless? Also, if it is called every timestep is there a way to calculate what the maximum temperature would be so that so that I can change the laser power to hold the laser temp steady? or does anyone have a better approach to this problem? Thanks in advance!


Edu ​​​​​​​ SIMULIA