Re: [deal.II] Inhomogeneous periodic boundary constraints

2021-05-05 Thread Jean-Paul Pelteret
Hi Alex, I’m sorry that I didn’t find the time to contribute any further to our discussion. But I’m really glad to hear that you carried on experimenting and ultimately found a solution to the problem that you were facing. Thank you for sharing the solution with us. When I next have some time,

Re: [deal.II] Inhomogeneous periodic boundary constraints

2021-05-04 Thread Alex Cumberworth
I ended up getting it working, so in case anyone else is interested in doing something similar, I have attached updated versions of the previous scripts. I further modified set_periodicity_constraints so that it can take a function to set the inhomogeneity based on the values of the two support

Re: [deal.II] Inhomogeneous periodic boundary constraints

2021-03-03 Thread Alex Cumberworth
Hi Jean-Paul, Thanks for the response. I realize I should have specified that the values of the inhomogeneities that I would like to use are the differences in the two points that are being glued together. This means that when I set the inhomogeneity for a degree of freedom, I actually need

Re: [deal.II] Inhomogeneous periodic boundary constraints

2021-02-26 Thread Jean-Paul Pelteret
Hi Alex, I can only give you a very brief answer right now: Using the AffineConstraints::set_inhomgeneity() method, you can add the inhomogeneity after constructing the homogeneous

[deal.II] Inhomogeneous periodic boundary constraints

2021-02-25 Thread Alex Cumberworth
I need to implement periodic boundary constraints with inhomogeneities. >From reading through the documentation and source code of the library, it seems that to do this I will need to modify the set_periodicity_constraints function in the dof_tools_constraints.cc file to also add an