This is my code for the heatflux at the moment. Right now i am just working with an average heatflux, but i would like to use a time-dependent formula.
y_dach = 600;
heat = y_dach*sin(2*pi*n*t+pi/2);
heatflux_percentage = 0.35;
Positive = heat >0;
heatflux = heat/ V_cyl; ,
This is my solver:
tfinal = 50;
tlist = 0:2:tfinal;
thermalModelT.SolverOptions.ReportStatistics = 'on';
result = solve(thermalModelT,tlist);
T = result.Temperature;
I know that i somehow have to use a function handle with state.time, but i dont know how to use it.
Many thanks in advance!