diff --git a/Material/Electromagnetics/TPZPlanarWgScatt.cpp b/Material/Electromagnetics/TPZPlanarWgScatt.cpp index 1e46741d1..50bfc5051 100644 --- a/Material/Electromagnetics/TPZPlanarWgScatt.cpp +++ b/Material/Electromagnetics/TPZPlanarWgScatt.cpp @@ -87,6 +87,23 @@ void TPZPlanarWgScatt::ContributeBC(const TPZMaterialDataT &data, case 1: ///PMC condition just adds zero to both matrices. nothing to do here.... break; + case 2:{ ///impedance boundary condition + const STATE k0 = fScaleFactor * 2*M_PI/fLambda; + TPZFNMatrix<9,CSTATE> er,ur; + GetPermittivity(data.x,er); + GetPermeability(data.x,ur); + const CSTATE eta = sqrt(ur.GetVal(0,0)/er.GetVal(0,0)); + const CSTATE coeff = 1i*(k0 / eta); + const int nshape=phi.Rows(); + for(int i = 0 ; i