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.
[Solved] Livelink for Matlab material definition issue
Posted 26 avr. 2013, 11:19 UTC−4 RF & Microwave Engineering, Interfacing Version 4.3a 3 Replies
Please login with a confirmed email address before reporting spam
My problem is the following:
I am defining a RF model:
[...]
model.physics().create('rfw1', 'ElectromagneticWaves', 'geom1');
model.study().create('study1');
s1 = model.study('study1');
s1.feature().create('struct','ModeAnalysis');
[...]
This physics/study requires to define the relative permittivity, permeability and electrical conductivity.
To define my material from Matlab, I use without success with version 4.3a:
[...]
mat1 = model.material.create(['mat' num2str(I)]);
mat1.materialmodel('def').set('mur','1');
[...]
or
[...]
mat1 = model.material.create(['mat' num2str(I)]);
mat1.materialmodel('def').set('Relative permeability','1');
[...]
When I look at it within the GUI, I see that the requested field is not filled but there is another with the same property name (equal to the Name property) see attachement. Of course, the computation failed since the required field is not propoerly filled.
Where is my mistake?
Thank you all,
Denis
Attachments:
Hello Pierre Sillard
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.