Skip to content

Commit

Permalink
Regenerate rings example data with a pi/3 rotation about the axis (1,…
Browse files Browse the repository at this point in the history
…1,1)/sqrt(3).

- Most of the values are perturbed only on the 3rd sf or so.
- For the probe data, it is necessary to apply the axis angle transformation on the original data
  - In julia:

```
julia> AngleAxis(pi/3, 1,1,1) * [-6.975740032e-01,        -3.331547360e+00,        +1.022439079e+02]
3-element StaticArraysCore.SVector{3, Float64} with indices SOneTo(3):
  68.80807171786667
 -36.76738354213334
  66.17409836106667
```
and
```
julia> AngleAxis(pi/3, 1,1,1) * [-2.108257694e-03,        -1.094675073e-02,        +1.007018922e+01]
3-element StaticArraysCore.SVector{3, Float64} with indices SOneTo(3):
  6.715702891780666
 -3.3654330789493336
  6.706864398744667
```
which agree fairly closely with the newly generated values
```
 1.000000e+00,        +6.696327116e+01,        -3.208982737e+01,        +6.924150084e+01
 2.000000e+00,        +6.710196031e+00,        -3.351129201e+00,        +6.718267080e+00
```
  • Loading branch information
hughcars committed Aug 7, 2023
1 parent 7d0fe4e commit 8fca0b3
Show file tree
Hide file tree
Showing 9 changed files with 128,048 additions and 127,651 deletions.
405 changes: 209 additions & 196 deletions examples/rings/mesh/mesh.jl

Large diffs are not rendered by default.

255,259 changes: 127,821 additions & 127,438 deletions examples/rings/mesh/rings.msh

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions examples/rings/rings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"Model":
{
"Mesh": "mesh/rings.msh",
"L0": 1.0e-6 // um
"L0": 1.0e-6, // um
"Lc": 2e3
},
"Domains":
{
Expand Down Expand Up @@ -43,12 +44,12 @@
{
"Index": 1,
"Attributes": [4], // Inner ring
"Direction": "+Y"
"Direction": [ -0.33333333333333337, 0.6666666666666667, 0.6666666666666666] // "Y" rotated pi/3 around (1,1,1)
},
{
"Index": 2,
"Attributes": [5], // Outer ring
"Direction": "+Y"
"Direction": [ -0.33333333333333337, 0.6666666666666667, 0.6666666666666666] // "Y" rotated pi/3 around (1,1,1)
}
],
"Postprocessing": // Inductance from flux instead of energy
Expand All @@ -58,12 +59,12 @@
{
"Index": 1,
"Attributes": [6], // Inner hole
"Direction": "+Z"
"Direction": [0.6666666666666667, -0.33333333333333337, 0.6666666666666667] // "+Z" rotated pi/3 about (1,1,1)
},
{
"Index": 2,
"Attributes": [6, 7], // Outer (total) hole
"Direction": "+Z"
"Direction": [0.6666666666666667, -0.33333333333333337, 0.6666666666666667] // "+Z" rotated pi/3 about (1,1,1)
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions test/ref/rings/domain-E.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
i, E_elec, E_mag, E_cap, E_ind
1.000000e+00, +0.000000000e+00, +8.471281523e-03, +0.000000000e+00, +0.000000000e+00
2.000000e+00, +0.000000000e+00, +1.417854802e-01, +0.000000000e+00, +0.000000000e+00
1.000000e+00, +0.000000000e+00, +8.482580628e-03, +0.000000000e+00, +0.000000000e+00
2.000000e+00, +0.000000000e+00, +1.417664459e-01, +0.000000000e+00, +0.000000000e+00
4 changes: 2 additions & 2 deletions test/ref/rings/probe-B.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
i, B_x[1], B_y[1], B_z[1]
1.000000e+00, -6.975740032e-01, -3.331547360e+00, +1.022439079e+02
2.000000e+00, -2.108257694e-03, -1.094675073e-02, +1.007018922e+01
1.000000e+00, +6.696327116e+01, -3.208982737e+01, +6.924150084e+01
2.000000e+00, +6.710196031e+00, -3.351129201e+00, +6.718267080e+00
4 changes: 2 additions & 2 deletions test/ref/rings/surface-M.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
i, M[1] (H), M[2] (H)
1.000000e+00, +4.246029895e-11, +1.858201293e-12
2.000000e+00, +1.954056852e-12, +7.125816163e-10
1.000000e+00, +4.249377972e-11, +1.844975746e-12
2.000000e+00, +1.954601491e-12, +7.124892139e-10
4 changes: 2 additions & 2 deletions test/ref/rings/terminal-M.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
i, M[i][1] (H), M[i][2] (H)
1.000000e+00, +4.258130528e-11, +1.958445479e-12
2.000000e+00, +1.958445479e-12, +7.126915567e-10
1.000000e+00, +4.263810078e-11, +1.959163459e-12
2.000000e+00, +1.959163459e-12, +7.125958800e-10
4 changes: 2 additions & 2 deletions test/ref/rings/terminal-Minv.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
i, M⁻¹[i][1] (1/H), M⁻¹[i][2] (1/H)
1.000000e+00, +2.348745292e+10, -6.454250165e+07
2.000000e+00, -6.454250165e+07, +1.403308898e+09
1.000000e+00, +2.345616540e+10, -6.448881257e+07
2.000000e+00, -6.448881257e+07, +1.403497231e+09
4 changes: 2 additions & 2 deletions test/ref/rings/terminal-Mm.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
i, M_m[i][1] (H), M_m[i][2] (H)
1.000000e+00, +4.453975076e-11, -1.958445479e-12
2.000000e+00, -1.958445479e-12, +7.146500022e-10
1.000000e+00, +4.459726424e-11, -1.959163459e-12
2.000000e+00, -1.959163459e-12, +7.145550434e-10

0 comments on commit 8fca0b3

Please sign in to comment.