Skip to content

Instantly share code, notes, and snippets.

View simonp0420's full-sized avatar

Peter Simon simonp0420

View GitHub Profile
@simonp0420
simonp0420 / calcpml3d.jl
Last active February 15, 2023 22:50
Demonstrate bug when using MKL.jl and MKLSparse.jl
"""
calcpml3d(NGRID, NPML) -> (sx, sy, sz)
Calculate PML Parameters
# Input Arguments
- `NGRID`: Iterable containing `(Nx, Ny, Nz)`, number of cells on grid
- `NPML`: Iterable containing (NXLO, NXHI, NYLO, NYHI, NZLO, NZHI), the size of PML
@simonp0420
simonp0420 / trial.ipynb
Last active January 31, 2023 19:30
Experimenting with LibGEOS.jl
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simonp0420
simonp0420 / joyal2012_hybrid.jl
Created October 5, 2022 23:11
Demo Readonlymemory error for Triangulate
using PSSFSS
# From M.-A. Joyal and J.-J. Laurin, "Analysis and Design of Thin Circular Polarizers Based on
# Meander Lines", IEEE TRANSACTIONS ON ANTENNAS AND PROPAGATION, VOL. 60, NO. 6, JUNE 2012,
# pp. 3007-3011, Fig. 7 (hybrid design)
meand = meander(ntri=600, units=mil, a=160, b=201, h=100, w1=23, w2=23, rot=45)
rect = rectstrip(Nx=5, Ny=20, units=mil, Px=160, Py=201, Lx=31, Ly=139, rot=45)
pyralux = Layer(ϵᵣ=3.4, tanδ=0.002, width=5mil)
spacer = Layer(ϵᵣ=1.1, tanδ=0.01, width=74mil) # λ/8 in Rohacell 71 HF at 19 GHz