I've never implemented periodic b.c. before and so I'm trying to figure out if I've done it correctly... especially since I find the documentation a bit confusing. In this case, I colorise the boundary of my square using the optional argument in GridGenerator and then try to build the periodicity constraints via
periodic_constraints.clear(); DoFTools::make_periodicity_constraints (dof_handler, 0, 1, periodic_constraints); DoFTools::make_periodicity_constraints (dof_handler, 2, 3, periodic_constraints); periodic_constraints.close(); Is this correct? My code runs so it seems to do *something* at least but due to the solution for my current test problem being pretty much zero on the boundary anyway, it is difficult to tell. Also, I'm wondering if someone can explain the meaning of 'direction' in the DoFTools::make_periodicity_constraints function since it's not clear to me what it does. Thanks! Stephen -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/d9a12de9-1b14-4f12-baa0-f200fddbf118%40googlegroups.com.