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.

How to call the sound speed in material?

Please login with a confirmed email address before reporting spam

Hi all,

I would like to define the wavenumber (2*pi*freq / sound_speed) as a variable. I tried to call the sound speed as root.mod1.mat1.c, but it doesn't work. How can I call the value in the material library?

Thanks in advance for your help.

Best regards,
S.K.

3 Replies Last Post 2010/12/19 14:23 GMT-5
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2010/12/19 4:00 GMT-5
Hi

if yi remeber right from the several treads passing on material naming (so far Ihave never had to use them myself) I seem to remember that there is a name segment more before the ".c"

root.mod1.mat1._a_name_is_missing_here.c

check the sucsection under which the sound of speed is labelled in the material section, its a hsortcut of the subsection identity

Or do a search on the forum for "mat1."

It's the week-end and I do not have COMSOL at home ;)

--
Good luck
Ivar
Hi if yi remeber right from the several treads passing on material naming (so far Ihave never had to use them myself) I seem to remember that there is a name segment more before the ".c" root.mod1.mat1._a_name_is_missing_here.c check the sucsection under which the sound of speed is labelled in the material section, its a hsortcut of the subsection identity Or do a search on the forum for "mat1." It's the week-end and I do not have COMSOL at home ;) -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2010/12/19 12:30 GMT-5
Thanks for your prompt response!!!

I set "root.mod1.mat1.def.c"; however, it does not work.

Best regards,
S.K.
Thanks for your prompt response!!! I set "root.mod1.mat1.def.c"; however, it does not work. Best regards, S.K.

Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2010/12/19 14:23 GMT-5
Hi

you are accessing an internal naming there so it might be mat2 or mat3 if you have several materials or if you have defined a few materials, and then deleted some. Check the dentifiers and "tags" names, and then check in the equations or try to find a place where you variable is called and look at the convention used by COMSOL in the "equation sub-tab.

Unfortunately I do not have access to my COMSOL from home ;)

--
Good luck
Ivar
Hi you are accessing an internal naming there so it might be mat2 or mat3 if you have several materials or if you have defined a few materials, and then deleted some. Check the dentifiers and "tags" names, and then check in the equations or try to find a place where you variable is called and look at the convention used by COMSOL in the "equation sub-tab. Unfortunately I do not have access to my COMSOL from home ;) -- Good luck Ivar

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.