We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accuracy of FDFD and PWEM solutions can be improved by dielectric averaging
Resources
The text was updated successfully, but these errors were encountered:
Could signed distance functions be a fast way to implement this smoothing?
Such as in this example for blurred rectangles
Sorry, something went wrong.
A simple example can be used:
for m=1:Nx # grid length of x-axis for n=1:Ny # grid length of y-axis index=(n-1)*Nx+m # flag function: Determine whether the lattice is medium or air, if medium return 1, else return 0 flag1 = flag((m-1)*deltax, (n-1)*deltay) flag2 = flag((m-1)*deltax, (n)*deltay) flag3 = flag((m)*deltax, (n-1)*deltay) flag4 = flag((m)*deltax, (n)*deltay) eps[index] = 1 + (flag1 + flag2 +flag3 +flag4) / 4 * (eps0[index] - 1) end end
No branches or pull requests
Accuracy of FDFD and PWEM solutions can be improved by dielectric averaging
Resources
The text was updated successfully, but these errors were encountered: