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.

Problem with defining subdomain expressions

Please login with a confirmed email address before reporting spam

Hi!

I am working on the project where I am trying to revive old simulations done in Comsol 3. Unfortunetely, some features of the program are very different now. The problem I am currently facing in that in the old version it was possible to define expressions which were directly assigned to the specific domain (please check the attachement) - subdomain expressions, but according to my best knowledge it is not possible in Comsol 5.3. Is there any way to do it in the same manner? Can you suggest any other solution that I can apply?

Thank you for help in advance!



4 Replies Last Post 24.05.2018, 07:44 GMT-4
Sergei Yushanov Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 23.05.2018, 11:18 GMT-4

Mateus,

You can use Component/Definition/Variables to assign subromain expressions, as shown in the attached image.

Regards,

Sergei

Mateus, You can use Component/Definition/Variables to assign subromain expressions, as shown in the attached image. Regards, Sergei


Please login with a confirmed email address before reporting spam

Posted: 7 years ago 23.05.2018, 12:27 GMT-4
Updated: 7 years ago 23.05.2018, 14:10 GMT-4

Thanks!

Thanks!

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 23.05.2018, 14:09 GMT-4

Mateus,

You can use Component/Definition/Variables to assign subromain expressions, as shown in the attached image.

Regards,

Sergei

Thanks!

One more question though, do you have any idea how I can refer to the temperature of the domain in this expression? I would like to put in there the following equation: flc1hs(T-5,0.1), where T is the temperature of the selected domain.

Thank you in advance!

>Mateus, > >You can use Component/Definition/Variables to assign subromain expressions, as shown in the attached image. > >Regards, > >Sergei Thanks! One more question though, do you have any idea how I can refer to the temperature of the domain in this expression? I would like to put in there the following equation: flc1hs(T-5,0.1), where T is the temperature of the selected domain. Thank you in advance!

Sergei Yushanov Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 24.05.2018, 07:44 GMT-4

Mateusz,

Not sure I understand yous question. If T is dependent variable you are solving for, then it is derectly available in any domain and you can define your variable at the selected domain as var1=flc1hs(T-5,0.1).

Regards,

Sergei

Mateusz, Not sure I understand yous question. If T is dependent variable you are solving for, then it is derectly available in any domain and you can define your variable at the selected domain as var1=flc1hs(T-5,0.1). Regards, Sergei

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.