Skip to content

Commit

Permalink
Using absorption length
Browse files Browse the repository at this point in the history
Signed-off-by: Umberto Zerbinati <[email protected]>
  • Loading branch information
Umberto Zerbinati committed May 29, 2024
1 parent 239247a commit 184975b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ngsPETSc/utils/firedrake/pml.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ def adiabatic_layer(self, k, deg_absorb=2):
absk = fd.assemble(fd.interpolate(fd.Constant(0), self.V))
for dalet in self.dalets:
absk += fd.assemble(fd.interpolate(
self.alpha*k*sigma0*(fd.real(dalet)**deg_absorb)-(sigma0*fd.real(dalet))**2,
self.alpha*k*sigma0*(fd.real(d_absorb*dalet)**deg_absorb)
-(sigma0*fd.real(d_absorb*dalet))**2,
self.V))
fd.File("absk.pvd").write(absk)
return absk

0 comments on commit 184975b

Please sign in to comment.