How to Couple Two Modules in COMSOL?

AI Thread Summary
The discussion revolves around the challenge of coupling two modules in COMSOL, specifically using the solution vector 'u' from Module 1 in the subdomain settings of Module 2. The user has successfully incorporated 'u' and '0.95*u' but encounters issues when adding a previously saved vector 'a' to the expression '0.95*u + a'. The user is advised to ensure that the addition is performed component by component, as both 'u' and 'a' are vectors of the same length. The conversation also touches on the version of COMSOL being used, which is 3.4, indicating that version-specific features or limitations may be relevant to the problem.
jig saw
Messages
2
Reaction score
0
Hi,

I want to couple two different modules of COMSOL. For example u is the solution of Module 1 and I want to give 0.95*u+a as subdomain settings parameter in module 2. Here a is a vector. I have succeeded with u and 0.95*u to use as subdomain settings parameter of module 2 but when I add a , it does not work.

Can anyone help me please?
 
Physics news on Phys.org
u is also a vector, try adding them component by component.

Which version are you running? I'll try to offer better advice once I get to my desk (don't have COMSOL on my laptop).
 
NeoDevin said:
u is also a vector, try adding them component by component.

Which version are you running? I'll try to offer better advice once I get to my desk (don't have COMSOL on my laptop).

I am using COMSOL 3.4.
Let me explain in detail,
I have saved a vector a previously. Then from current solution of module 1 is u
In the subdomain settings of module 2 I have written
a+0.95*u
As the length of each vector is same, it should add them component by component. But it does not work.
 
Back
Top