emerge 0.4.6__py3-none-any.whl → 0.4.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of emerge might be problematic. Click here for more details.
- emerge/__init__.py +54 -0
- emerge/__main__.py +5 -0
- emerge/lib.py +57 -0
- emerge/plot.py +1 -0
- emerge/pyvista.py +1 -0
- {emerge-0.4.6.dist-info → emerge-0.4.7.dist-info}/METADATA +1 -1
- emerge-0.4.7.dist-info/RECORD +9 -0
- emerge-0.4.6.dist-info/RECORD +0 -4
- {emerge-0.4.6.dist-info → emerge-0.4.7.dist-info}/WHEEL +0 -0
- {emerge-0.4.6.dist-info → emerge-0.4.7.dist-info}/entry_points.txt +0 -0
emerge/__init__.py
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"""A Python based FEM solver.
|
|
2
|
+
Copyright (C) 2025 name of Robert Fennis
|
|
3
|
+
|
|
4
|
+
This program is free software; you can redistribute it and/or
|
|
5
|
+
modify it under the terms of the GNU General Public License
|
|
6
|
+
as published by the Free Software Foundation; either version 2
|
|
7
|
+
of the License, or (at your option) any later version.
|
|
8
|
+
|
|
9
|
+
This program is distributed in the hope that it will be useful,
|
|
10
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
GNU General Public License for more details.
|
|
13
|
+
|
|
14
|
+
You should have received a copy of the GNU General Public License
|
|
15
|
+
along with this program; if not, see
|
|
16
|
+
<https://www.gnu.org/licenses/>.
|
|
17
|
+
|
|
18
|
+
"""
|
|
19
|
+
import os
|
|
20
|
+
|
|
21
|
+
NTHREADS = "1"
|
|
22
|
+
|
|
23
|
+
os.environ["OMP_NUM_THREADS"] = NTHREADS
|
|
24
|
+
os.environ["MKL_NUM_THREADS"] = NTHREADS
|
|
25
|
+
os.environ["OPENBLAS_NUM_THREADS"] = NTHREADS
|
|
26
|
+
os.environ["VECLIB_MAXIMUM_THREADS"] = NTHREADS
|
|
27
|
+
os.environ["NUMEXPR_NUM_THREADS"] = NTHREADS
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
from loguru import logger
|
|
31
|
+
from _emerge.logsettings import logger_format
|
|
32
|
+
import sys
|
|
33
|
+
|
|
34
|
+
logger.remove()
|
|
35
|
+
logger.add(sys.stderr, format=logger_format)
|
|
36
|
+
|
|
37
|
+
logger.debug('Importing modules')
|
|
38
|
+
|
|
39
|
+
from _emerge.simmodel import Simulation3D
|
|
40
|
+
from _emerge.material import Material
|
|
41
|
+
from _emerge import bc
|
|
42
|
+
from _emerge.solver import SolverBicgstab, SolverGMRES, SolveRoutine, ReverseCuthillMckee, Sorter, SolverPardiso, SolverUMFPACK, SolverSuperLU, EMSolver
|
|
43
|
+
from _emerge.cs import CoordinateSystem, CS, GCS, Plane, Axis, XAX, YAX, ZAX, XYPLANE, XZPLANE, YZPLANE, YXPLANE, ZXPLANE, ZYPLANE
|
|
44
|
+
from _emerge.coord import Line
|
|
45
|
+
from _emerge import geo
|
|
46
|
+
from _emerge.selection import Selection, FaceSelection, DomainSelection, EdgeSelection
|
|
47
|
+
from _emerge.mth.common_functions import norm, coax_rout, coax_rin
|
|
48
|
+
from _emerge.physics.microwave.sc import stratton_chu
|
|
49
|
+
from _emerge.periodic import RectCell, HexCell
|
|
50
|
+
from _emerge.mesher import Algorithm2D, Algorithm3D
|
|
51
|
+
from . import lib
|
|
52
|
+
from _emerge.howto import _HowtoClass
|
|
53
|
+
howto = _HowtoClass()
|
|
54
|
+
logger.debug('Importing complete!')
|
emerge/__main__.py
ADDED
emerge/lib.py
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
from _emerge.material import Material, AIR, COPPER
|
|
2
|
+
|
|
3
|
+
C0 = 299792458
|
|
4
|
+
Z0 = 376.73031366857
|
|
5
|
+
PI = 3.14159265358979323846
|
|
6
|
+
EISO: float = (Z0/(2*PI))**0.5
|
|
7
|
+
EOMNI = (3*Z0/(4*PI))**0.5
|
|
8
|
+
EPS0 = 8.854187818814e-12
|
|
9
|
+
MU0 = 1.2566370612720e-6
|
|
10
|
+
|
|
11
|
+
### MATERIALS
|
|
12
|
+
VACUUM = Material(color="#2d8cd5", opacity=0.05)
|
|
13
|
+
FR4 = Material(er=4.4, tand=0.001, color="#3c9747")
|
|
14
|
+
# Conductors
|
|
15
|
+
ALUMINUM = Material(cond=3.5e7, color="#aaaaaa")
|
|
16
|
+
GOLD = Material(cond=4.1e7, color="#A07130")
|
|
17
|
+
SILVER = Material(cond=6.3e7, color="#bfbfbf")
|
|
18
|
+
TIN = Material(cond=9.17e6, color="#d6d6d6")
|
|
19
|
+
NICKEL = Material(cond=1.43e7, color="#78706c")
|
|
20
|
+
IRON = Material(cond=1.0e7, ur=5000, color="#666666")
|
|
21
|
+
STEEL = Material(cond=1.45e6, ur=100, color="#808080")
|
|
22
|
+
|
|
23
|
+
# Semiconductors & Dielectrics
|
|
24
|
+
SILICON = Material(er=11.68, cond=0.1, color="#333333")
|
|
25
|
+
SIO2 = Material(er=3.9, color="#e6e6e6")
|
|
26
|
+
GAAS = Material(er=12.9, cond=0.0, color="#404071")
|
|
27
|
+
|
|
28
|
+
# Dielectrics
|
|
29
|
+
PTFE = Material(er=2.1, tand=0.0002, color="#cccccc")
|
|
30
|
+
POLYIMIDE = Material(er=3.4, tand=0.02, color="#b8b8b8")
|
|
31
|
+
CERAMIC = Material(er=6.0, tand=0.001, color="#efead1")
|
|
32
|
+
|
|
33
|
+
# Liquids
|
|
34
|
+
WATER = Material(er=80.1, cond=0.0, color="#0080ff", opacity=0.3)
|
|
35
|
+
FERRITE = Material(er=12.0, ur=2000, tand=0.02, color="#994d4d")
|
|
36
|
+
|
|
37
|
+
# Specialty RF Substrates
|
|
38
|
+
ROGERS_4350B = Material(er=3.66, tand=0.0037, color="#3c9747")
|
|
39
|
+
ROGERS_5880 = Material(er=2.2, tand=0.0009, color="#3c9747")
|
|
40
|
+
ROGERS_RO3003 = Material(er=3.0, tand=0.0013, color="#3c9747")
|
|
41
|
+
ROGERS_RO3010 = Material(er=10.2, tand=0.0023, color="#3c9747")
|
|
42
|
+
ROGERS_RO4003C = Material(er=3.55, tand=0.0027, color="#3c9747")
|
|
43
|
+
ROGERS_DUROID6002 = Material(er=2.94, tand=0.0012, color="#3c9747")
|
|
44
|
+
ROGERS_DUROID6010 = Material(er=6.15, tand=0.0027, color="#3c9747")
|
|
45
|
+
ROGERS_RT5880 = Material(er=2.2, tand=0.0009, color="#3c9747")
|
|
46
|
+
TACONIC_RF35 = Material(er=3.5, tand=0.0018, color="#3c9747")
|
|
47
|
+
TACONIC_TLC30 = Material(er=3.0, tand=0.0020, color="#3c9747")
|
|
48
|
+
ISOLA_I_TERA_MT = Material(er=3.45, tand=0.0030, color="#3c9747")
|
|
49
|
+
ISOLA_NELCO_4000_13 = Material(er=3.77, tand=0.008, color="#3c9747")
|
|
50
|
+
VENTEC_VERDELAY_400HR = Material(er=4.0, tand=0.02, color="#3c9747")
|
|
51
|
+
|
|
52
|
+
# Legacy FR Materials
|
|
53
|
+
FR1 = Material(er=4.8, tand=0.025, color="#3c9747")
|
|
54
|
+
FR2 = Material(er=4.8, tand=0.02, color="#3c9747")
|
|
55
|
+
|
|
56
|
+
# Magnetic Materials
|
|
57
|
+
MU_METAL = Material(cond=1.0e6, ur=200000, color="#666680")
|
emerge/plot.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from _emerge.plot.simple_plots import smith, plot_sp, plot, plot_ff, plot_ff_polar
|
emerge/pyvista.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from _emerge.plot.pyvista import PVDisplay
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
emerge/__init__.py,sha256=a6siTB-grN7CwNeu-HVOm2Y_TxpWgyi0Q_C7TYzWi7M,1983
|
|
2
|
+
emerge/__main__.py,sha256=WVf16sfrOI910QWohrQDaChZdRifMNoS6VKzCT6f3ZA,92
|
|
3
|
+
emerge/lib.py,sha256=cePVCL_pLQjGe3ixEMpJZjbeqxtVHiXSJDx94fAENFQ,2547
|
|
4
|
+
emerge/plot.py,sha256=g7prUAJ0B6TpOyIz9g55OOnD3DHRMNFTk-Qy9x5PbhQ,82
|
|
5
|
+
emerge/pyvista.py,sha256=-Ht2YcZYsh8-dici5ZPNAWwsis6uz5wNj8n8mxv5fog,42
|
|
6
|
+
emerge-0.4.7.dist-info/METADATA,sha256=56ZRsdGZ5SDczo2WIPS1WIzE9FmR4sobAIwvZ81fQsE,2391
|
|
7
|
+
emerge-0.4.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
8
|
+
emerge-0.4.7.dist-info/entry_points.txt,sha256=FQVLpooCCrK1HdO_5HtUrL995_M1xtdBaGaf9_nga8U,44
|
|
9
|
+
emerge-0.4.7.dist-info/RECORD,,
|
emerge-0.4.6.dist-info/RECORD
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
emerge-0.4.6.dist-info/METADATA,sha256=79vo3s0viuUBili8XYBaPg7PVqFYVWvkkRXcVKawoZ8,2391
|
|
2
|
-
emerge-0.4.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
3
|
-
emerge-0.4.6.dist-info/entry_points.txt,sha256=FQVLpooCCrK1HdO_5HtUrL995_M1xtdBaGaf9_nga8U,44
|
|
4
|
-
emerge-0.4.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|