Local Field Solve¶
device_inductance.local ¶
Local flux solve in the vicinity of a collection of filaments with polygon sections that do not necessarily fall on a rectangular grid by allocating the fraction of intersecting polygon area to each mesh cell.
N_OUTSIDE
module-attribute
¶
Target number of grid points on either side of filament extent
LocalFields
dataclass
¶
LocalFields(
jtor_per_amp: NDArray,
psi_per_amp: NDArray,
br_per_amp: NDArray,
bz_per_amp: NDArray,
psi_per_amp_interpolator: MulticubicRegular,
br_per_amp_interpolator: MulticubicRegular,
bz_per_amp_interpolator: MulticubicRegular,
grids: tuple[NDArray, NDArray],
meshes: tuple[NDArray, NDArray],
)
Outputs of local field solve
br_per_amp_interpolator
instance-attribute
¶
[T/A] normalized flux density, r-component, hermite spline interpolator
bz_per_amp_interpolator
instance-attribute
¶
[T/A] normalized flux density, z-component, hermite spline interpolator
psi_per_amp_interpolator
instance-attribute
¶
[Wb/A] normalized poloidal flux, hermite spline interpolator
local_fields ¶
Estimate local self-field of a collection of filaments with polygon representations.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fil_rzn
|
tuple[NDArray, NDArray, NDArray]
|
r-coord, z-coord, and number of turns for each filament |
required |
polygons
|
list[Polygon]
|
polygon section of each filament |
required |
Returns:
| Type | Description |
|---|---|
LocalFields
|
Structure containing local field map components and interpolators |