MATLAB: Changing Simscape Block Properties during simulation

convectionheat transfer constantr2011bSimscapesimulationsimulinkthermal

Hi MATLAB Community, I'm trying to build a thermal model using Simscape Blocks. During the simulation I'm constantly calculating the heat transfer constant (htc) and want to use this calculated constant for my convection blocks. I tried to export the htc as variable into Workspace and use this variable in the convection blocks but it seems like the block only queries the variables when the simulation starts.
Does someone know how I could solve this problem?
I'm using Simulink 2011b so unfortunately the thermal liquid library isn't available.
Thanks in advance Christian

Best Answer

Using the Custom Block worked well.
Thanks Christian