1 function output = comsol_ThermalBlock3D_operators_output(model,model_data)
2 %
function output = comsol_ThermalBlock3D_operators_output(model,model_data)
4 % This
function returns the output data (components and coefficients)
for
5 % the comsol 3D Thermal Block model.
6 % Since
this is a compliant
case model, the output functional is equal to
7 % the rhs (
this has to be scaled with the flux vector of the bottom
8 % boundary, in
case it is not = 1 !
10 % Oliver Zeeb, 08/2013
14 %%% LINEAR COMPLIANT CASE --> output = f;
16 switch model.decomp_mode
18 disp(
' in comsol_ThermalBlock3D_operators_output: decomp_mode 0 not yet implemented!')
22 flux_factor = str2double(model_data.comsol_model.physics('c').feature('flux1').getString('g'));
23 if model.comsol_get_eliminated_data %cut the matrices --> return eliminated matrices!
24 output = {model_data.operators.f_comp_eliminated{1} ./ flux_factor};
26 output = {model_data.operators.f_comp_full{1} ./ flux_factor};
34 switch model.decomp_mode
36 disp(
' in comsol_ThermalBlock3D_operators_output: decomp_mode 0 not yet implemented!')
40 if model.comsol_get_eliminated_data %cut the matrices --> return eliminated matrices!
41 output = model_data.operators.output_comp_eliminated;
43 output = model_data.operators.output_comp_full;