How to get the numerical value from Matlab - comsol server?

6 views (last 30 days)
I connected Matlab to COMSOL server and created a model. The model describes flow past hot cylinder in a rectangular channel..I wrote a code for created model and attached that code to this question.
The code is written as a function of radius(R). and its output is Nusselt no. (Nu). I found Nu by different means.
In that code generated from COMSOL model, he below code is used for finding Nusselt no.
%Nusselt no.
Unable to resolve the name model.result.dataset.
model.result.dataset('dset1').set('geom', 'geom1');
model.result.numerical.create('av1', 'AvLine');
model.result.dataset('dset1').set('geom', 'geom1');
model.result.numerical.create('av1', 'AvLine');
model.result.numerical('av1').set('intsurface', true);
model.result.numerical('av1').selection.set([5 6 7 8]);
model.result.numerical('av1').set('expr', {'2*Rc*ht.dfluxMag/K'});
model.result.numerical('av1').set('descr', {'Conductive heat flux magnitude'});
how to get that value in matlab? and which commands I've to use for that numerical value?
Thank you

Answers (0)

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!