Re: [deal.II] simple application of anti-periodic boundary conditions

2022-04-21 Thread Daniel Arndt
Paras, You can also use add_periodicity with regular Triangulation objects, see https://www.dealii.org/current/doxygen/deal.II/classTriangulation.html#adbf04756b28dae69194870812acaf941. This should make sure that periodic neighbors differ at most by one refinement. Best, Daniel On Wed, Apr 20,

Re: [deal.II] simple application of anti-periodic boundary conditions

2022-04-19 Thread Wolfgang Bangerth
On 4/19/22 13:17, Paras Kumar wrote: One follow-up question: The mesh (which is initially periodic at the boundaries)  is refined adaptively during the simulation and it cannot be guaranteed if both the left and the right boundary faces would be refined at the same time. Will

Re: [deal.II] simple application of anti-periodic boundary conditions

2022-04-19 Thread Paras Kumar
Dear Wolfgang, Thank you for the hints. The second approach seems easy to start with. One follow-up question: The mesh (which is initially periodic at the boundaries) is refined adaptively during the simulation and it cannot be guaranteed if both the left and the right boundary faces would be

Re: [deal.II] simple application of anti-periodic boundary conditions

2022-04-14 Thread Wolfgang Bangerth
Paras, I don't think there is a way that's already implemented, but if you look at the function that implements the periodic boundary conditions, you should be able to clone it in your project and add the negative sign where necessary. Alternatively, you can let the existing function create

[deal.II] simple application of anti-periodic boundary conditions

2022-04-14 Thread Paras Kumar
Dear dealii Community, I am working on a solid mechanics related problem involving anti-periodic constraints, i.e. u_leftFace = - u_RightFace, where u is the unknown field (a component of the dim-dimensional displacement field). One possible solution, I am aware of, involves marking the