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.

Average displacement boundary condition

John Smith Certified Consultant

Please login with a confirmed email address before reporting spam

COMSOL v4.2a

I would like to specify the average displacement of a boundary.

In the solid mechanics module, I have used the prescribed displacement boundary condition but as I understand it this requires every point of the boundary to have the specified displacement value. How can I define the average displacement of a boundary.

Can this be achieved with a weak contribution/constraint?


11 Replies Last Post 22.02.2024, 11:45 GMT-5
Henrik Sönnerlind COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 9 months ago 14.02.2024, 10:14 GMT-5

Even though it is not clear to me what you want to achieve, here is a way of doing it:

  1. Add an average coupling operator to that boundary, say aveop1
  2. Create a variable for the average displacement, like u_a set to aveop1(u)
  3. Use a global constraint to set the value, using something like u_a – 0.2[mm]

The solution that you get will have a displacement distribution on the boundary that fulfills the average displacement criterion, while minimizing the elastic energy in the structure.

Out of curiosity, can you describe the application where you need this?

-------------------
Henrik Sönnerlind
COMSOL
Even though it is not clear to me what you want to achieve, here is a way of doing it: 1. Add an average coupling operator to that boundary, say *aveop1* 2. Create a variable for the average displacement, like *u\_a* set to *aveop1(u)* 3. Use a global constraint to set the value, using something like *u\_a – 0.2[mm]* The solution that you get will have a displacement distribution on the boundary that fulfills the average displacement criterion, while minimizing the elastic energy in the structure. Out of curiosity, can you describe the application where you need this?

John Smith Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 9 months ago 15.02.2024, 07:34 GMT-5

Even though it is not clear to me what you want to achieve, here is a way of doing it:

  1. Add an average coupling operator to that boundary, say aveop1
  2. Create a variable for the average displacement, like u_a set to aveop1(u)
  3. Use a global constraint to set the value, using something like u_a – 0.2[mm]

The solution that you get will have a displacement distribution on the boundary that fulfills the average displacement criterion, while minimizing the elastic energy in the structure.

Out of curiosity, can you describe the application where you need this?

Hi Henrik,

Thank you very much for your reply. I realise now that it was a bit of a silly question. My motivation was that I was trying to mimic a piezoelectric transducer actuating a resonator. This was described in a research paper where the authors set an average displacement boundary condition. I now see that for this the authors defined an "envelope function" for the boundary condition where the average of the function must have been the desired displacement value. How I can achieve this myself, I am not sure.

Thanks, John

>Even though it is not clear to me what you want to achieve, here is a way of doing it: > >1. Add an average coupling operator to that boundary, say *aveop1* >2. Create a variable for the average displacement, like *u\_a* set to *aveop1(u)* >3. Use a global constraint to set the value, using something like *u\_a – 0.2[mm]* > >The solution that you get will have a displacement distribution on the boundary that fulfills the average displacement criterion, while minimizing the elastic energy in the structure. > >Out of curiosity, can you describe the application where you need this? Hi Henrik, Thank you very much for your reply. I realise now that it was a bit of a silly question. My motivation was that I was trying to mimic a piezoelectric transducer actuating a resonator. This was described in a research paper where the authors set an average displacement boundary condition. I now see that for this the authors defined an "envelope function" for the boundary condition where the average of the function must have been the desired displacement value. How I can achieve this myself, I am not sure. Thanks, John

Acculution ApS Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 9 months ago 15.02.2024, 08:14 GMT-5

Probably something like a Gaussian distribution spatially across the boundary, scaled to achieve a particular average value. You can do that in COMSOL.

-------------------
René Christensen, PhD
Acculution ApS
www.acculution.com
info@acculution.com
Probably something like a Gaussian distribution spatially across the boundary, scaled to achieve a particular average value. You can do that in COMSOL.

John Smith Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 9 months ago 15.02.2024, 08:36 GMT-5
Updated: 9 months ago 15.02.2024, 08:38 GMT-5

Probably something like a Gaussian distribution spatially across the boundary, scaled to achieve a particular average value. You can do that in COMSOL.

Hi René,

Sorry, I am relatively new to COMSOL and am not sure how I would implement the Gaussian distribution as a boundary condition.

The paper that I was trying to reproduce was: https://journals.aps.org/prapplied/abstract/10.1103/PhysRevApplied.8.024020, but in 2 dimensions for simplicity. The function they used as a boundary condtion was

where was the desired average displacement and are the lengths of the surfaces in the x and y directions.

Probably too complicated for me.

Thanks, John

>Probably something like a Gaussian distribution spatially across the boundary, scaled to achieve a particular average value. You can do that in COMSOL. Hi René, Sorry, I am relatively new to COMSOL and am not sure how I would implement the Gaussian distribution as a boundary condition. The paper that I was trying to reproduce was: https://journals.aps.org/prapplied/abstract/10.1103/PhysRevApplied.8.024020, but in 2 dimensions for simplicity. The function they used as a boundary condtion was \int_0^{L_p,x/2} \frac{2}{L_{p,x}}dx \int_0^{L_{p,y}/2} \frac{2}{L_{p,y}}dy (u_z-d_0)(-\tanh \bigg(\frac{x-\frac{1}{2}L_p}{\Delta L_p} \bigg)) where d_0 was the desired average displacement and L_{p,x}, L_{p,y} are the lengths of the surfaces in the x and y directions. Probably too complicated for me. Thanks, John

Acculution ApS Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 9 months ago 15.02.2024, 08:53 GMT-5
Updated: 9 months ago 16.02.2024, 02:19 GMT-5

Okay, that is not what I expected. Henrik can probably help better here, as I would say this is not uniquely defined as a boundary conditions, but his first answer also described a way of inputting an average that I would not have thought to be proper one.

-------------------
René Christensen, PhD
Acculution ApS
www.acculution.com
info@acculution.com
Okay, that is not what I expected. Henrik can probably help better here, as I would say this is not uniquely defined as a boundary conditions, but his first answer also described a way of inputting an average that I would not have thought to be proper one.

Henrik Sönnerlind COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 9 months ago 19.02.2024, 05:21 GMT-5
Updated: 9 months ago 19.02.2024, 05:22 GMT-5

I assume that the intended expression is

If so, it differs from my original answer only by the tanh() weighting function. So instead of an average coupling operator, you need to use an integration coupling operator. The right hand side is obtained by using the form

-------------------
Henrik Sönnerlind
COMSOL
I assume that the intended expression is \frac{2}{L_{p,x}} \frac{2}{L_{p,y}} \int_0^{L_p,x/2} \int_0^{L_{p,y}/2} (u_z-d_0)(-\tanh \bigg(\frac{x-\frac{1}{2}L_p}{\Delta L_p} \bigg)) dydx = 0 If so, it differs from my original answer only by the tanh() weighting function. So instead of an average coupling operator, you need to use an integration coupling operator. The right hand side is obtained by using the form \int_0^{L_p,x/2} \int_0^{L_{p,y}/2} u_z(-\tanh \bigg(\frac{x-\frac{1}{2}L_p}{\Delta L_p} \bigg)) dydx = d_0 \int_0^{L_p,x/2} \int_0^{L_{p,y}/2} (-\tanh \bigg(\frac{x-\frac{1}{2}L_p}{\Delta L_p} \bigg)) dydx

John Smith Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 9 months ago 19.02.2024, 07:02 GMT-5

I assume that the intended expression is

\frac{2}{L_{p,x}} \frac{2}{L_{p,y}} \int_0^{L_p,x/2} \int_0^{L_{p,y}/2} (u_z-d_0)(-\tanh \bigg(\frac{x-\frac{1}{2}L_p}{\Delta L_p} \bigg)) dydx = 0

If so, it differs from my original answer only by the tanh() weighting function. So instead of an average coupling operator, you need to use an integration coupling operator. The right hand side is obtained by using the form

\int_0^{L_p,x/2} \int_0^{L_{p,y}/2} u_z(-\tanh \bigg(\frac{x-\frac{1}{2}L_p}{\Delta L_p} \bigg)) dydx = d_0 \int_0^{L_p,x/2} \int_0^{L_{p,y}/2} (-\tanh \bigg(\frac{x-\frac{1}{2}L_p}{\Delta L_p} \bigg)) dydx

Thank you for this reply, Henrik. I followed the steps you outlined in your previous comment, but wondered if a global constrain (u_a-0.2[mm]) in step 3 is correct as this doesn't seem to produce any displacement in a frequency study. Should this be a weak constraint on the boundary?

Thanks, John

>I assume that the intended expression is > > \frac{2}{L_{p,x}} \frac{2}{L_{p,y}} \int_0^{L_p,x/2} \int_0^{L_{p,y}/2} (u_z-d_0)(-\tanh \bigg(\frac{x-\frac{1}{2}L_p}{\Delta L_p} \bigg)) dydx = 0 > >If so, it differs from my original answer only by the tanh() weighting function. So instead of an average coupling operator, you need to use an integration coupling operator. The right hand side is obtained by using the form > >\int_0^{L_p,x/2} \int_0^{L_{p,y}/2} u_z(-\tanh \bigg(\frac{x-\frac{1}{2}L_p}{\Delta L_p} \bigg)) dydx = d_0 \int_0^{L_p,x/2} \int_0^{L_{p,y}/2} (-\tanh \bigg(\frac{x-\frac{1}{2}L_p}{\Delta L_p} \bigg)) dydx Thank you for this reply, Henrik. I followed the steps you outlined in your previous comment, but wondered if a global constrain (u_a-0.2[mm]) in step 3 is correct as this doesn't seem to produce any displacement in a frequency study. Should this be a weak constraint on the boundary? Thanks, John

Henrik Sönnerlind COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 9 months ago 20.02.2024, 11:19 GMT-5
Updated: 9 months ago 20.02.2024, 11:21 GMT-5

There should not be a problem with prescribing the displacement in a frequency domain study in the suggested way (as long as it is direct frequncy domain, not mode superposition).

If the distribution of the prescribed displacement is allowed to vary as freely as suggested by the integral expression, then there is only one number to fix, thus the global constraint. In some sense, this is a (very) weak way of prescribing the displacement. Any displacement distribution that fulfills the value of the integral is allowable. As I indicated above, something more is needed to determine the exact distribution. That, I think, will lead to some kind of smooth distribution based on energy minimization.

In a classical FE context, the integral will essentially be interpreted as a 'multipoint constraint'.

where the summation index i ranges over all nodes on the boundary. This resembles what is sometimes termed an RBE3 coupling, in which you prescribe the value of the 'master' DOF.

A true 'weak constraint' prescribes the displacement distribution. It is just another method of prescribing the value everywhere when compared to a pointwise constraint. Rather than directly setting the value of a dof, an extra equaton (containing the Lagrange multiplier) is added.

-------------------
Henrik Sönnerlind
COMSOL
There should not be a problem with prescribing the displacement in a frequency domain study in the suggested way (as long as it is direct frequncy domain, not mode superposition). If the distribution of the prescribed displacement is allowed to vary as freely as suggested by the integral expression, then there is only one number to fix, thus the global constraint. In some sense, this is a (very) weak way of prescribing the displacement. Any displacement distribution that fulfills the value of the integral is allowable. As I indicated above, something more is needed to determine the exact distribution. That, I think, will lead to some kind of smooth distribution based on energy minimization. In a classical FE context, the integral will essentially be interpreted as a 'multipoint constraint'. \sum_i \alpha_i u_i = u_{prescribed} where the summation index *i* ranges over all nodes on the boundary. This resembles what is sometimes termed an RBE3 coupling, in which you prescribe the value of the 'master' DOF. A true 'weak constraint' prescribes the displacement distribution. It is just another method of prescribing the value everywhere when compared to a pointwise constraint. Rather than directly setting the value of a dof, an extra equaton (containing the Lagrange multiplier) is added.

John Smith Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 9 months ago 21.02.2024, 05:49 GMT-5
Updated: 9 months ago 21.02.2024, 08:40 GMT-5

There should not be a problem with prescribing the displacement in a frequency domain study in the suggested way (as long as it is direct frequncy domain, not mode superposition).

If the distribution of the prescribed displacement is allowed to vary as freely as suggested by the integral expression, then there is only one number to fix, thus the global constraint. In some sense, this is a (very) weak way of prescribing the displacement. Any displacement distribution that fulfills the value of the integral is allowable. As I indicated above, something more is needed to determine the exact distribution. That, I think, will lead to some kind of smooth distribution based on energy minimization.

In a classical FE context, the integral will essentially be interpreted as a 'multipoint constraint'.

\sum_i \alpha_i u_i = u_{prescribed}

where the summation index i ranges over all nodes on the boundary. This resembles what is sometimes termed an RBE3 coupling, in which you prescribe the value of the 'master' DOF.

A true 'weak constraint' prescribes the displacement distribution. It is just another method of prescribing the value everywhere when compared to a pointwise constraint. Rather than directly setting the value of a dof, an extra equaton (containing the Lagrange multiplier) is added.

Thanks for the reply, Henrik.

I must be going wrong somewhere.
I have:
1. Defined a global parameter d0 (prescribed displacement)
2. Defined an average coupling operator aveop1 at the boundary to be displaced
3. Defined a variable u_a (aveop1(v))
4. In the physics interface defined a global constraint u_a-d0
5. Run a frequency study

but the resultant displacement field is 0 over the entire domain.
If there is anything you think I have missed or done incorrectly please let me know. Otherewise, thank you for all of your advice.

Thanks, John

>There should not be a problem with prescribing the displacement in a frequency domain study in the suggested way (as long as it is direct frequncy domain, not mode superposition). > >If the distribution of the prescribed displacement is allowed to vary as freely as suggested by the integral expression, then there is only one number to fix, thus the global constraint. In some sense, this is a (very) weak way of prescribing the displacement. Any displacement distribution that fulfills the value of the integral is allowable. As I indicated above, something more is needed to determine the exact distribution. That, I think, will lead to some kind of smooth distribution based on energy minimization. > >In a classical FE context, the integral will essentially be interpreted as a 'multipoint constraint'. > > \sum_i \alpha_i u_i = u_{prescribed} > >where the summation index *i* ranges over all nodes on the boundary. This resembles what is sometimes termed an RBE3 coupling, in which you prescribe the value of the 'master' DOF. > >A true 'weak constraint' prescribes the displacement distribution. It is just another method of prescribing the value everywhere when compared to a pointwise constraint. Rather than directly setting the value of a dof, an extra equaton (containing the Lagrange multiplier) is added. Thanks for the reply, Henrik. I must be going wrong somewhere. I have: 1. Defined a global parameter d0 (prescribed displacement) 2. Defined an average coupling operator aveop1 at the boundary to be displaced 3. Defined a variable u_a (aveop1(v)) 4. In the physics interface defined a global constraint u_a-d0 5. Run a frequency study but the resultant displacement field is 0 over the entire domain. If there is anything you think I have missed or done incorrectly please let me know. Otherewise, thank you for all of your advice. Thanks, John

Henrik Sönnerlind COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 9 months ago 21.02.2024, 11:10 GMT-5
Updated: 9 months ago 21.02.2024, 11:10 GMT-5

That sounds correct. Can you upload the model file?

-------------------
Henrik Sönnerlind
COMSOL
That sounds correct. Can you upload the model file?

John Smith Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 9 months ago 22.02.2024, 11:45 GMT-5

That sounds correct. Can you upload the model file?

Hello Henrik,

I think I have achieved what I wanted. Instead of the global constraint I set a pointwise constraint (u_a-d0) on the boundary to have the average displacement. Upon running the frequency study I have a non-zero displacement field and an average probe on the boundary-in-question shows that it has the desired average displacement value.

Thanks for all of your help and patience.

John

>That sounds correct. Can you upload the model file? Hello Henrik, I think I have achieved what I wanted. Instead of the global constraint I set a pointwise constraint (u_a-d0) on the boundary to have the average displacement. Upon running the frequency study I have a non-zero displacement field and an average probe on the boundary-in-question shows that it has the desired average displacement value. Thanks for all of your help and patience. John

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.