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
Posted Feb 14, 2024, 5:05 a.m. EST Structural & Acoustics, Equation-Based Modeling, Physics Interfaces 11 Replies
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?
Please login with a confirmed email address before reporting spam
Even though it is not clear to me what you want to achieve, here is a way of doing it:
- Add an average coupling operator to that boundary, say aveop1
- Create a variable for the average displacement, like u_a set to aveop1(u)
- 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
Please login with a confirmed email address before reporting spam
Even though it is not clear to me what you want to achieve, here is a way of doing it:
- Add an average coupling operator to that boundary, say aveop1
- Create a variable for the average displacement, like u_a set to aveop1(u)
- 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
Please login with a confirmed email address before reporting spam
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
Please login with a confirmed email address before reporting spam
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
Please login with a confirmed email address before reporting spam
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
Please login with a confirmed email address before reporting spam
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
Please login with a confirmed email address before reporting spam
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
Please login with a confirmed email address before reporting spam
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
Please login with a confirmed email address before reporting spam
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
Please login with a confirmed email address before reporting spam
That sounds correct. Can you upload the model file?
-------------------Henrik Sönnerlind
COMSOL
Please login with a confirmed email address before reporting spam
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.