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.

Imposing a constraint

Please login with a confirmed email address before reporting spam

Hi,

I am trying to impose a constraint that the average of the x-stress tensor be zero over the whole domain, but I couldnt. Can anyone suggest a way to impose this constraint on the system?

Thanks.


5 Replies Last Post 18.10.2011, 07:30 GMT-4
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 11.10.2011, 10:33 GMT-4
Hi

try to add a weak constraint on the variable and impose it to zero, rather by creating an new variable and make it piloted by the result to change your driving BC

PS it works smoother in the later versions ;)

--
Good luck
Ivar
Hi try to add a weak constraint on the variable and impose it to zero, rather by creating an new variable and make it piloted by the result to change your driving BC PS it works smoother in the later versions ;) -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 11.10.2011, 13:02 GMT-4
Hi Ivar,

Thank you very much for your reply. i did try to impose it as a week constraint but instead of the constraint being imposed, the Lagrange multiplier became zero. Is there a way to strictly enforce this condition?

Thanks.

Best
Lakshmi.
Hi Ivar, Thank you very much for your reply. i did try to impose it as a week constraint but instead of the constraint being imposed, the Lagrange multiplier became zero. Is there a way to strictly enforce this condition? Thanks. Best Lakshmi.

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 11.10.2011, 16:22 GMT-4
Hi

yes by defult it optimises to "0" so ou must move all items to the left side of the equation, if you want to impose "u = 3" you should write "u - 3" in the field entry, when COMSOl imposes "=0" you will end up with "u=3"

Check the doc, and turn on the "equation view" in the preferences, and see how COMSOL handles weak constraints

--
Good luck
Ivar
Hi yes by defult it optimises to "0" so ou must move all items to the left side of the equation, if you want to impose "u = 3" you should write "u - 3" in the field entry, when COMSOl imposes "=0" you will end up with "u=3" Check the doc, and turn on the "equation view" in the preferences, and see how COMSOL handles weak constraints -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 17.10.2011, 10:23 GMT-4
Hi Ivar,

Thanks for your reply. I upgraded to COMSOL 4.2 now. I understand that COMSOL optimises the constraint to zero. But when I try to impose this constraint, a non symmetric matrix is formed and then it returns with a singular matrix error. I have attached the file. Please have a look and let me know what you think.

Thanks for your time.

Best
Lakshmi.
Hi Ivar, Thanks for your reply. I upgraded to COMSOL 4.2 now. I understand that COMSOL optimises the constraint to zero. But when I try to impose this constraint, a non symmetric matrix is formed and then it returns with a singular matrix error. I have attached the file. Please have a look and let me know what you think. Thanks for your time. Best Lakshmi.


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 18.10.2011, 07:30 GMT-4
Hi

try to avoid point and edge constraints in 3D, you are making singular points, and the solver will anyhow have difficulties to finds its way, and your results will at least be locally very wrong

Cut your surface with a cylinder and apply loads on a boundary, and use pressure, then you are sure you are perpendicular to the surface. If you have large deformations, consider to turn the option on, it takes longer to solve and needs often more RAM, be aware

--
Good luck
Ivar
Hi try to avoid point and edge constraints in 3D, you are making singular points, and the solver will anyhow have difficulties to finds its way, and your results will at least be locally very wrong Cut your surface with a cylinder and apply loads on a boundary, and use pressure, then you are sure you are perpendicular to the surface. If you have large deformations, consider to turn the option on, it takes longer to solve and needs often more RAM, be aware -- Good luck Ivar

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.