Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 428

Accessing two parametric sweeps via MATLAB

$
0
0
I am changing the geometry of my problem (7 times), and for every new geometry I am running frequency domain sweep and also changing the coil current (all combinations).

From the solution within COMSOL, I can make a dataset for each of the geometries, which contains results as a function of frequency and current. This works fine.

I want to import these into MATLAB, so first I run the mphsolinfo command, for the first dataset (which corresponds to the first geometry):

info = mphsolinfo(model,'dataset','dset1')

info =

soltag: 'sol4'
study: 'std1'
size: 3882961
nummesh: 1
sizes: [2x1 double]
soltype: 'Parametric'
solpar: {2x1 cell}
sizesolvals: 80
solvals: [80x1 double]
paramsweepnames: {'BlockDepth'}
paramsweepvals: 1.0000e-003
batch: [1x1 struct]
dataset: {}


By looking at the size of "solpar", there are two parameters there (freq and coil current). I am having trouble accessing both of them. I am using the following but that only seems to give me access to one of the parameters:

mphinterp(model,'mf.Bx','dataset','dset1','coord',point_coords,'Complexout','on','Phase',0,'Recover','pprint')

Any ideas?

Thanks in advance for your time.

Viewing all articles
Browse latest Browse all 428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>