Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Comparison between integration in COMSOL and MATLAB
Posted 06.06.2018, 14:54 GMT-4 Structural & Acoustics, Heat Transfer Version 5.3a 1 Reply
Please login with a confirmed email address before reporting spam
I have an expresion I need to integrate. I have been integrating this expression in MATLAB. However I find that when I integrate the same expression in COMSOL I get a slightly different value (see image).
In COMSOL I calculate
FF = solid.freq*2*pi/2/(solid.Ws_tot)/solid.rho*d(solid.Ws,T), and
Cii = volume integral of { solid.rho*solid.freq*2*pi/2/(solid.Ws_tot)/solid.rho*d(solid.Ws,T)*solid.freq*2*pi/2/(solid.Ws_tot)/solid.rho*d(solid.Ws,T) }
and in MATLAB I calculate
Cii(i) = sum ( rho * meshvol .* FF(:,i) .* FF(:,i) );
where meshvol, rho and FF are those exported from COMSOL and i indexes eigenmodes.
Is there a method to get identical results?
Attachments: