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.

Are constraints always global?

Please login with a confirmed email address before reporting spam

Here's a strange problem...

For a supposed one-way coupling model, variable Hz from Module1 is used as the input for Module2. There should be no backward coupling. In Module2 I have a constraint for dependent variable of Module2 on boundary including Hz. When solving the model in two steps, even I only solve Module1 by sequence, the results are influenced by the constraint in Module2, that is, the constraint is seen as global and solved as well.

To get rid of the influence of the constraint on Hz, I turned off the constraint when solving the first step. In the second step I turn it on and solve only Module2. Surprisingly, the results of Hz from the first step solution is even changed by the second step...

Now that the constraint is global, is there any way I can realize a constraint locally in Module2?

Thanks a lot!

3 Replies Last Post 2012/03/03 11:31 GMT-5

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2012/03/03 7:48 GMT-5
I guess what COMSOL does for coupled problems is first assembling all equations. For my case, I would like to solve only one dependent variable from one module. COMSOL looks around the equations for this variable, and solves equations including the variable with other dependent variables set to either zero or current solution. Since the variable appears in a constraint, the constraint is considered. The problem is the preassigned values of other dependent variables don't make the constraint a dummy one, thus having influence on the results.
I guess what COMSOL does for coupled problems is first assembling all equations. For my case, I would like to solve only one dependent variable from one module. COMSOL looks around the equations for this variable, and solves equations including the variable with other dependent variables set to either zero or current solution. Since the variable appears in a constraint, the constraint is considered. The problem is the preassigned values of other dependent variables don't make the constraint a dummy one, thus having influence on the results.

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 2012/03/03 7:58 GMT-5
Hi

are you sure you have decoupled the solver, one for each and that he solvers are not in fact solving both physics without you noticing it ?

Havent used 3.5 for too long, cannot remember where you set whch solver acts on which physics, but there should be a matrix entry somewhere

--
Good luck
Ivar
Hi are you sure you have decoupled the solver, one for each and that he solvers are not in fact solving both physics without you noticing it ? Havent used 3.5 for too long, cannot remember where you set whch solver acts on which physics, but there should be a matrix entry somewhere -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2012/03/03 11:31 GMT-5
Thanks for ur reply!

I think I did the right thing to decouple modules. I set specific dependent variables in "Solve For" tab of "Solver Manager", and used "Values of variables not solved for and linearization point" to assign values for other dependent variables not solved for.

According to my thoughts, I can understand most things here, except one thing: The second step of solving even alters the value of the dependent variable I didn't specify as "Solved For".
Thanks for ur reply! I think I did the right thing to decouple modules. I set specific dependent variables in "Solve For" tab of "Solver Manager", and used "Values of variables not solved for and linearization point" to assign values for other dependent variables not solved for. According to my thoughts, I can understand most things here, except one thing: The second step of solving even alters the value of the dependent variable I didn't specify as "Solved For".

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.