You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mat::Material{Tmat}) where {L,Tshape<:Real,Tmat<:Real}
52
52
@@ -55,7 +55,7 @@ function ConductorPart(tag::Symbol,
55
55
s =convert(AbstractShape{L,T}, shape)
56
56
m =convert(Material{T}, mat)
57
57
58
-
ConductorPart{L,T,typeof(s)}(tag,s,m)
58
+
ConductorPart{L,T,typeof(s)}(cmp,s,m)
59
59
end
60
60
```
61
61
@@ -65,7 +65,7 @@ Identical pattern applies to `InsulatorPart`.
65
65
66
66
A valid cable part requires:
67
67
68
-
*`tag::Symbol`
68
+
*`cmp::Symbol`
69
69
*`shape <: AbstractShape`
70
70
*`material::Material`
71
71
@@ -103,7 +103,7 @@ r_in(shape)
103
103
r_ex(shape)
104
104
```
105
105
106
-
These accessors are **mandatory**.
106
+
or fallback to the global default. These accessors are **mandatory**.
107
107
108
108
All geometry logic in downstream physics relies on them.
109
109
@@ -166,7 +166,7 @@ end
166
166
@inliner_ex(s::SolidCore) = s.r_ex
167
167
```
168
168
169
-
These must always exist.
169
+
These must always exist, and are defined globally. Cases non-conformal to the typical `r_in` / `r_ex` pattern must specify custom accessors, e.g. `SolidCore`, `Enclosure`.
170
170
171
171
Never access fields directly outside the shape file.
172
172
@@ -186,7 +186,7 @@ They receive the current stacking radius.
186
186
187
187
```julia
188
188
struct SolidCoreBuilder{P,Tgeom<:Real,Tmat<:Real}
189
-
tag::Symbol
189
+
cmp::Symbol
190
190
r_ex::Tgeom
191
191
mat::Material{Tmat}
192
192
end
@@ -195,11 +195,11 @@ end
195
195
Constructor:
196
196
197
197
```julia
198
-
@inlinefunctionSolidCoreBuilder{P}(tag::Symbol,
198
+
@inlinefunctionSolidCoreBuilder{P}(cmp::Symbol,
199
199
r_ex::Tgeom,
200
200
mat::Material{Tmat}) where {P,Tgeom,Tmat}
201
201
202
-
SolidCoreBuilder{P,Tgeom,Tmat}(tag,r_ex,mat)
202
+
SolidCoreBuilder{P,Tgeom,Tmat}(cmp,r_ex,mat)
203
203
end
204
204
```
205
205
@@ -211,7 +211,7 @@ Materialization:
211
211
current_r !=zero(T) &&
212
212
error("Topological violation: Solid core must be at r=0.")
213
213
214
-
P(b.tag, SolidCore{Concentric}(b.r_ex), b.mat)
214
+
P(b.cmp, SolidCore{Concentric}(b.r_ex), b.mat)
215
215
end
216
216
```
217
217
@@ -221,7 +221,7 @@ end
221
221
222
222
```julia
223
223
struct TubularBuilder{P,Tgeom<:Real,Tmat<:Real}
224
-
tag::Symbol
224
+
cmp::Symbol
225
225
t::Tgeom
226
226
mat::Material{Tmat}
227
227
end
@@ -234,7 +234,7 @@ Materialization:
234
234
235
235
r_ex = current_r + b.t
236
236
237
-
P(b.tag,
237
+
P(b.cmp,
238
238
TubularShape{Concentric}(current_r,r_ex),
239
239
b.mat)
240
240
end
@@ -259,10 +259,10 @@ abstract type AbstractSpec{Target} end
0 commit comments