Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
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.
Matlab command for magnetic fields api
Posted 14.02.2012, 09:09 GMT-5 Low-Frequency Electromagnetics, Interfacing, Modeling Tools & Definitions, Parameters, Variables, & Functions Version 4.2, Version 4.2a 1 Reply
Please login with a confirmed email address before reporting spam
Hello all
what is the constructor name for the physics modual magnetic fields? Here is my code so far:
%Create Model
model = ModelUtil.create('Model');
model.baseSystem('ips');
%Create Geom
geom1 = model.geom.create('geom1',2);
imp1 = geom1.feature.create('imp1','Import');
imp1.set('filename',filename);
imp1.importData;
geom1.run;
%mphgeom(model,'geom1');
%Create Mesh
model.mesh.create('mesh1','geom1');
model.mesh('mesh1').run;
% Setup physics
model.physics.create('mf', 'Magnetic Fields', 'geom1');
Please help with the last line of code. There is no such physics as Magnetic Fields. What is it then??
Thanks,
Stephen
what is the constructor name for the physics modual magnetic fields? Here is my code so far:
%Create Model
model = ModelUtil.create('Model');
model.baseSystem('ips');
%Create Geom
geom1 = model.geom.create('geom1',2);
imp1 = geom1.feature.create('imp1','Import');
imp1.set('filename',filename);
imp1.importData;
geom1.run;
%mphgeom(model,'geom1');
%Create Mesh
model.mesh.create('mesh1','geom1');
model.mesh('mesh1').run;
% Setup physics
model.physics.create('mf', 'Magnetic Fields', 'geom1');
Please help with the last line of code. There is no such physics as Magnetic Fields. What is it then??
Thanks,
Stephen
1 Reply Last Post 14.02.2012, 11:41 GMT-5