Skip to content

Instantly share code, notes, and snippets.

View oberstet's full-sized avatar

Tobias Oberstein oberstet

View GitHub Profile
(.venv) oberstet@intel-nuci7:~$ uname -a
Linux intel-nuci7 5.15.0-101-generic #111-Ubuntu SMP Tue Mar 5 20:16:58 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
(.venv) oberstet@intel-nuci7:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
(.venv) oberstet@intel-nuci7:~$ cat ~/Downloads/detect_sh.bin
#! /bin/bash
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<ContinuousStructure CoordSystem="0">
<RectilinearGrid DeltaUnit="0.001" CoordSystem="0">
<XLines Qty="49">-100,-95.2525945022817,-90.5051890045634,-85.7577835068452,-81.0103780091269,-76.2629725114086,-71.5155670136903,-66.7681615159721,-62.0207560182538,-57.2733505205355,-52.5259450228173,-47.778539525099,-43.0311340273807,-38.2837285296624,-33.5363230319441,-30,-27.2275695831295,-24.4551391662589,-20.4945242850153,-17.6655136555556,-15.1672431722222,-13.0646644629969,-10.1210542700815,-6,-1.2149943387356,3.57001132252879,8.35501698379319,12.1528784939756,15.1672431722222,17.6655136555556,20.4945242850153,24.4551391662589,27.2275695831295,30,33.5363230319441,38.2837285296624,43.0311340273807,47.778539525099,52.5259450228173,57.2733505205355,62.0207560182538,66.7681615159721,71.5155670136903,76.2629725114086,81.0103780091269,85.7577835068452,90.5051890045634,95.2525945022817,100</XLines>
<YLines Qty="47">-100,-95.3333333333333,-90.6

RF Miner - Planar Monopole Batch Simulation

Simulation Template

  1. Unit of Length : 0.001
  2. Unit of Frequency : 1000000.0
  3. Frequency of Interest : [(446.0, 446.2, 'Main FOI'), (200, 1000, 'Usable FOI')]
  4. Mesh Refinement Level : standard
  5. Limit Timesteps : 100000
  6. Limit End Criteria (dB) : -40
PCB Model Groundplane Height (mm) Boundary Conditions Resonance Frequency (MHz) Resonance S11 (dB) Resonance Impedance (Ohm)
0 single-conductive-layer 129.0 PML_8:PML_8:PML_8:PML_8:PML_8:PML_8 446.8 -48.4 65.4
1 single-conductive-layer 80.0 PML_8:PML_8:PML_8:PML_8:PML_8:PML_8 497.8 -21.4 56.0
2 single-conductive-layer 40.0 PML_8:PML_8:PML_8:PML_8:PML_8:PML_8 550.2 -21.0 55.7
3 single-conductive-layer 20.0 PML_8:PML_8:PML_8:PML_8:PML_8:PML_8
import os
import math
import tempfile
import numpy as np
from matplotlib import pyplot
from CSXCAD import ContinuousStructure, AppCSXCAD_BIN
from CSXCAD.CSProperties import CSPropMetal
from openEMS import openEMS
from openEMS.physical_constants import C0
# Hz S RI R 70.1
!
200000000.0 0.9530658803388067 -0.2912567811729681
200050000.0 0.9530344983951203 -0.2913415343438754
200100000.0 0.9530031456780979 -0.29142633786790123
200150000.0 0.952971821972294 -0.29151119197425135
200200000.0 0.9529405270614226 -0.2915960968910274
200250000.0 0.952909260728378 -0.2916810528452136
200300000.0 0.952878022755219 -0.2917660600626882
200350000.0 0.9528468129231968 -0.291851118768211
import os
import math
import tempfile
import numpy as np
from matplotlib import pyplot
from CSXCAD import ContinuousStructure, AppCSXCAD_BIN
from CSXCAD.CSProperties import CSPropMetal
from openEMS import openEMS
from openEMS.physical_constants import C0
import os
import math
import tempfile
import numpy as np
from CSXCAD import ContinuousStructure, AppCSXCAD_BIN
from CSXCAD.CSProperties import CSPropMetal
from openEMS import openEMS
from openEMS.physical_constants import C0
unit = 1e-3
@oberstet
oberstet / dipole4.py
Created November 28, 2023 16:46
dipole4.py
import os
import math
import tempfile
from pprint import pprint, pformat
import numpy as np
from matplotlib import pyplot
from CSXCAD import ContinuousStructure, AppCSXCAD_BIN
from CSXCAD.CSProperties import CSPropMetal
import os
import math
import tempfile
from pprint import pprint, pformat
import numpy as np
from matplotlib import pyplot
from CSXCAD import ContinuousStructure, AppCSXCAD_BIN
from CSXCAD.CSProperties import CSPropMetal