Magnus Ringh
                                                                                                                                                    COMSOL Employee
                                                         
                            
                                                                                                                                                
                         
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                5 years ago                            
                            
                                09.10.2020, 06:49 GMT-4                            
                        
                        
                                                    Hi,
There are some different ways to do this:
- 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.
- You can use the predefined domvariable that evaluates to the domain number. Enter a value like50*(dom==1)+100*(dom==2), which will be evaluated to 50 in domain 1 and 100 in domain 2.
- 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