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.
Accessing two parametric sweeps via MATLAB
Posted Nov 7, 2014, 7:23 p.m. EST Interfacing, Results & Visualization 1 Reply
Please login with a confirmed email address before reporting spam
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.
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.
1 Reply Last Post Nov 11, 2014, 10:56 a.m. EST