Hi Daniel,
On 06/12/2014 10:44 PM, Daniel Wheeler wrote:
Hi,
I'm trying to figure out how to apply a periodic boundary condition with a displacement (or a displaced periodic boundary condition). For example I'd like to have a periodic boundary condition linking the left side of the domain with the right side of the domain so that
x_left = x_right + displacement
A regular periodic boundary condition would just be "x_left = x_right". Is it as simple as modifying
PeriodicBC('periodic_y', [region_up, region_down], {'u.all' :
'u.all'}, match='match_x_line')
in some way?
Unfortunately no - this feature is not implemented. Also the more general linear combination conditions can be homogeneous only. The non-zero displacement would mean modifying the right-hand side.
It seems like a useful feature to have, though - could you create a new issue? Do you (or anyone here) have some references on how other codes implement that?
r.