-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathEM.py
117 lines (109 loc) · 4.09 KB
/
EM.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#***************************************************************************
#* *
#* Copyright (c) 2018 *
#* Efficient Power Conversion Corporation, Inc. http://epc-co.com *
#* *
#* Developed by FastFieldSolvers S.R.L. under contract by EPC *
#* http://www.fastfieldsolvers.com *
#* *
#* This program is free software; you can redistribute it and/or modify *
#* it under the terms of the GNU Lesser General Public License (LGPL) *
#* as published by the Free Software Foundation; either version 2 of *
#* the License, or (at your option) any later version. *
#* for detail see the LICENCE text file. *
#* *
#* This program is distributed in the hope that it will be useful, *
#* but WITHOUT ANY WARRANTY; without even the implied warranty of *
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
#* GNU Library General Public License for more details. *
#* *
#* You should have received a copy of the GNU Library General Public *
#* License along with this program; if not, write to the Free Software *
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
#* USA *
#* *
#***************************************************************************
__title__="FreeCAD E.M. Workbench API"
__author__ = "FastFieldSolvers S.R.L."
__url__ = "http://www.fastfieldsolvers.com"
## \defgroup EM E.M.
# \ingroup PYTHONWORKBENCHES
# \brief ElectroMagnetic tools
#
# This module provides tools for ElectroMagnetic analysis,
# enabling to create suitable geometries, launching field solvers,
# and post-processing the results
'''The E.M. module provides tools for ElectroMagnetic analysis'''
import sys
# Python3 compatibility
if sys.version_info >= (3, 4):
from importlib import reload
elif sys.version_info >= (3, 0):
from imp import reload
import FreeCAD
if FreeCAD.GuiUp:
import FreeCADGui
FreeCADGui.updateLocale()
from EM_Globals import *
from EM_About import *
# FastHenry specific
from EM_FHNode import *
from EM_FHSegment import *
from EM_FHPath import *
from EM_FHPlaneHole import *
from EM_FHPlane import *
from EM_FHPort import *
from EM_FHEquiv import *
from EM_FHSolver import *
from EM_FHInputFile import *
# VoxHenry specific
from EM_VHSolver import *
from EM_VHConductor import *
from EM_VHPort import *
from EM_VHInputFile import *
# for debugging
#import EM_Globals
#reload(EM_Globals)
#from EM_Globals import *
#import EM_About
#reload(EM_About)
#from EM_About import *
#import EM_FHNode
#reload(EM_FHNode)
#from EM_FHNode import *
#import EM_FHSegment
#reload(EM_FHSegment)
#from EM_FHSegment import *
#import EM_FHPath
#reload(EM_FHPath)
#from EM_FHPath import *
#import EM_FHPlaneHole
#reload(EM_FHPlaneHole)
#from EM_FHPlaneHole import *
#import EM_FHPlane
#reload(EM_FHPlane)
#from EM_FHPlane import *
#import EM_FHPort
#reload(EM_FHPort)
#from EM_FHPort import *
#import EM_FHEquiv
#reload(EM_FHEquiv)
#from EM_FHEquiv import *
#import EM_FHSolver
#reload(EM_FHSolver)
#from EM_FHSolver import *
#import EM_FHInputFile
#reload(EM_FHInputFile)
#from EM_FHInputFile import *
#import EM_VHSolver
#reload(EM_VHSolver)
#from EM_VHSolver import *
#import EM_VHConductor
#reload(EM_VHConductor)
#from EM_VHConductor import *
#import EM_VHPort
#reload(EM_VHPort)
#from EM_VHPort import *
#import EM_VHInputFile
#reload(EM_VHInputFile)
#from EM_VHInputFile import *