MATLAB: How to apply external heat flux to a surface with specified “emissivity” boundary conditions in MATLAB R2018 PDE Toolbox

bcemissivityheatfluxMATLABpde

I am modelling thermal behaviour of lunar surface, thus it is necessary to specify both heat flux from incident solar radiation and thermal radiation of the lunar surface.
Unfortunately, one of these is ignored, when declared as follows:
thermalBC(thermalmodelT,'Edge',2,'HeatFlux',@SolRad_hf);
thermalmodelT.StefanBoltzmannConstant = 5.670373E-8;
thermalBC(thermalmodelT,'edge',2,'Emissivity',0.98,'AmbientTemperature',3);

Best Answer

You can specify all heat fluxes on that BC with a single function call, like:
thermalBC(thermalmodelT,'Edge',2,'HeatFlux',@SolRad_hf,'Emissivity',0.98,'AmbientTemperature',3);
Regards,
Ravi