Reverted to symmetrization [u,v,w](x,-y,z) -> [-u,v,-w](x,y,z)

This commit is contained in:
Michael Stumpf 2021-07-31 11:54:50 +02:00
parent 3da3169aa4
commit d197683edc
1 changed files with 5 additions and 2 deletions

View File

@ -521,7 +521,7 @@ class PPP:
return
def set_noslip_bc(self,axis,wall):
'''Applies symmetry: [u,v,w](x,-y,z) -> [-u,-v,-w](x,y,z)
'''Applies symmetry: [u,v,w](x,-y,z) -> [-u,v,-w](x,y,z)
The boundary conditions are only applied to fields which have already been loaded!'''
if self.periodicity[axis]:
return
@ -536,7 +536,10 @@ class PPP:
sl = [1,1,1]
sl[axis] = iwall
sl = tuple(sl)
self.symmetries[key][sl] = -1
if key==keyu[axis]:
self.symmetries[key][sl] = 1
else:
self.symmetries[key][sl] = -1
self.impose_boundary_conditions(key)
return