1Check Keywords "Warn"
2INCLUDE airgap/mesh.names
3
4Header
5  Mesh DB "." "airgap"
6End
7
8Simulation
9  Max Output Level = 5
10
11  Coordinate System = "Cartesian"
12  Simulation Type = Steady
13  Steady State Max Iterations = 1
14  Output Intervals(1) = 0
15End
16
17Initial Condition 1
18 P re = Real 0
19 P im = Real 0
20 P re {e} = Real 0
21 P im {e} = Real 0
22End
23
24Solver 1
25  Equation = "MGDynamics"
26
27  Variable = P[P re:1 P im:1]
28  Procedure = "MagnetoDynamics" "WhitneyAVHarmonicSolver"
29
30  Angular Frequency = Real 314
31
32  Linear System Symmetric = True
33  Linear System Complex = Logical True
34
35!  Linear System Solver = "Direct"
36!  Linear System Direct Method = mumps
37
38  Linear System Solver = "Iterative"
39  Linear System Residual Output = 10
40  Linear System Max Iterations = 5000
41  Linear System Iterative Method = BiCGStabl
42  Linear System Convergence Tolerance = 1.0e-6
43
44  Steady State Convergence Tolerance = 1e-09
45End
46
47Solver 2
48  Equation = "MGDynamicsCalc"
49
50  Procedure = "MagnetoDynamics" "MagnetoDynamicsCalcFields"
51  Linear System Symmetric = True
52
53  Potential Variable = String "P"
54
55  Calculate Current Density = Logical True
56  Steady State Convergence Tolerance = 1
57  Linear System Solver = "Iterative"
58  Linear System Preconditioning = None
59  Linear System Residual Output = 0
60  Linear System Max Iterations = 5000
61  Linear System Iterative Method = CG
62  Linear System Convergence Tolerance = 1.0e-6
63End
64
65
66!Solver 3
67!  Exec Solver = after all
68!  Equation = "ResultOutput"
69!  Procedure = "ResultOutputSolve" "ResultOutputSolver"
70!  Output File Name = airgap
71!  Vtu format = Logical True
72!  Save Geometry Ids = Logical True
73!End
74
75Equation 1
76  Name = "Coupled Equations"
77  Active Solvers(2) = 1 2
78End
79
80Material 1
81  Name = "Air"
82  Electric Conductivity = 0.0
83  Relative Permeability = 1
84End
85
86Material 2
87  Name = "Iron"
88  Electric Conductivity = 0.0
89  Relative Permeability = 1000
90End
91
92Material 3
93  Name = "Copper"
94  Electric Conductivity = 58.14e6
95  Relative Permeability = 1.0
96End
97
98Body 1
99   Name = "Air"
100   Target Bodies(1) = $ Ilma
101   Equation = 1
102   Material = 1
103End
104
105Body 2
106   Name = "Ring"
107   Target Bodies(1) = $ M5
108   Equation = 1
109   Material = 2
110End
111
112Body 3
113   Name = "Cable"
114   Target Bodies(1) = $ alumiini
115   Equation = 1
116   Material = 3
117End
118
119
120Boundary Condition 1
121  Target Boundaries(1) = $ FluxParallel
122  P re {e} = real 0
123  P im {e} = real 0
124End
125
126$ curr = 200
127Boundary Condition 2
128  Target Boundaries(1) = $ CurrentIn
129  P re {e} = real 0
130  P im {e} = real 0
131  Electric Current Density = Real $ 1e5 * curr
132End
133
134Boundary Condition 3
135  Target Boundaries(1) = $ CurrentOut
136  P re {e} = real 0
137  P im {e} = real 0
138  P re = real 0
139  P im = real 0
140  Electric Current Density = Real $ -1e5 * curr
141End
142
143Boundary Condition 4
144  Target Boundaries(1) = $ airgap
145  Air Gap Length = Real 0.001
146  Air Gap Relative Permeability = Real 0.1
147End
148
149Solver 1 :: Reference Norm = Real 2.424230E-03
150RUN
151
152
153
154
155
156