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.

Assignment of material properties in each domain in General coefficient form PDE

Please login with a confirmed email address before reporting spam

Hi,

I build a model which includes 2 parts, each has a specific constant material property. For example, part/domain 1 has the absorptions coefficient a=50 and the other part/domain of the model will be a=100. Now I use the general coefficient form PDE and want to assign those absorptions coefficients in the PDE dialog. How can I do this?

Thank You, Chironjeet


1 Reply Last Post 9 ott 2020, 06:49 GMT-4
Magnus Ringh COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 4 years ago 9 ott 2020, 06:49 GMT-4

Hi,

There are some different ways to do this:

  1. You can add another Coefficent Form PDE node under the main Coefficent Form PDE interface node and assign it to the other domain and use the same values for the PDE coefficients except for the a coefficient.
  2. You can use the predefined dom variable that evaluates to the domain number. Enter a value like 50*(dom==1)+100*(dom==2), which will be evaluated to 50 in domain 1 and 100 in domain 2.
  3. Add two Variables nodes under Component>Definitions and define them as valid in domains, the first one in domain 1 and the second one in domain 2. In both Variables tables, add a variable with the same name and with the value of 50 for the one defined in domain 1 and 100 in the one defined in domain 2. Then enter that variable name as the value for a in the Coefficient Form PDE interface.

Best regards, Magnus Ringh

Hi, There are some different ways to do this: 1. You can add another **Coefficent Form PDE** node under the main **Coefficent Form PDE** interface node and assign it to the other domain and use the same values for the PDE coefficients except for the *a* coefficient. 2. You can use the predefined `dom` variable that evaluates to the domain number. Enter a value like `50*(dom==1)+100*(dom==2)`, which will be evaluated to 50 in domain 1 and 100 in domain 2. 3. Add two **Variables** nodes under **Component>Definitions** and define them as valid in domains, the first one in domain 1 and the second one in domain 2. In both **Variables** tables, add a variable with the same name and with the value of 50 for the one defined in domain 1 and 100 in the one defined in domain 2. Then enter that variable name as the value for *a* in the Coefficient Form PDE interface. Best regards, Magnus Ringh

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.