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.
Integral Constraint
Posted 10 sept. 2012, 14:16 UTC−4 Geometry 3 Replies
Please login with a confirmed email address before reporting spam
Hey there,
I want to impliment an integral constraint: the subdomain integral of one variable (say A) shall be constant. In the COMSOL guide on page 274 it is told to define the integration coupling variable (I call it int_A), with a random point outside my geometry as destination, and then to set its value at "equation system->point settings". There I choose "constr" and type in the field for example "int_A-1" if I want the integral to be 1. (Actually, I define a constant A0, make an integration coupling varialbe "int_A0" and then type in that constr. field "int_A-int_A0", but this should not make the difference I think.) This does not give me an error, but the solution does not fulfill the constraint! What is my mistake? I also tried the recommendations in this thread (www.comsol.com/community/forums/general/thread/11/), but also without succes.
This constraint is surely not a rare thing to want, so if you know how to do it please let me know. :)
I want to impliment an integral constraint: the subdomain integral of one variable (say A) shall be constant. In the COMSOL guide on page 274 it is told to define the integration coupling variable (I call it int_A), with a random point outside my geometry as destination, and then to set its value at "equation system->point settings". There I choose "constr" and type in the field for example "int_A-1" if I want the integral to be 1. (Actually, I define a constant A0, make an integration coupling varialbe "int_A0" and then type in that constr. field "int_A-int_A0", but this should not make the difference I think.) This does not give me an error, but the solution does not fulfill the constraint! What is my mistake? I also tried the recommendations in this thread (www.comsol.com/community/forums/general/thread/11/), but also without succes.
This constraint is surely not a rare thing to want, so if you know how to do it please let me know. :)
3 Replies Last Post 15 juin 2014, 16:18 UTC−4