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
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+10-19Lines changed: 10 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,29 +34,20 @@ on WSL with Ubuntu, the command seems to be:
34
34
35
35
astyle --options=.astylerc src/*.cpp
36
36
37
-
#### Linting
37
+
Astyle can also be used within VSCode as an extension. Install the "Astyle" extension (author: Chieh Yu). Then go to settings (the "Manage" wheel on the bottom left, then click on "settings"). Under "Extensions", click on "Astyle Configuration". Within that, you can set the location of the astylerc file. Click on "Edit in settings.json". Modify the file so it has the following line:
For *C++* code make sure to use a static code checker like
40
-
[cpplint](https://github.com/cpplint/cpplint) to check the code for
41
-
any style issues before submitting. For *Python*,
42
-
[flake8](https://flake8.pycqa.org/en/latest/) is a good option. Both
43
-
of these may by installed using pip.
44
+
This should then allow you to format the code using the defaults that we have set in the astyle file. This can be done with (Ctrl-Shift-I for Linux, Alt-Shift-F for Windows) and upon saving the file - this reformats the whole file to put it into the astyle format.
44
45
45
-
To install `cpplint`
46
+
#### Linting
46
47
47
-
```sh
48
-
# depending on your system one of these lines applies
49
-
pip install --user cpplint
50
-
pip install cpplint
51
-
python3 -m pip cpplint
52
-
python3 -m pip --user cpplint
53
-
```
48
+
For *Python*,
49
+
[flake8](https://flake8.pycqa.org/en/latest/) is a good option. This may by installed using pip.
54
50
55
-
Using a linter in an editor is a good supplement, but not a replacement for the
56
-
static linters. The linter in the 'atom' editor requires that you install the
57
-
`linter` and `gcc-linter` packages. Atom also has additional packages
58
-
`whitespaces` and `tabs-to-spaces` to automatically remove whitespaces at the
Copy file name to clipboardExpand all lines: doc/internals/coordinates.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,15 +20,16 @@
20
20
21
21
## Dipole Coordinates
22
22
- Longitude (radians) - radians east of the meridian that contains the north magnetic pole and north rotation axis
23
-
- P (?) - Identifies the field line, related to L-shell
24
-
- Q (meters?) - The distance along the field line from some reference point, related to magnetic latitude.
23
+
- P (meters) - Identifies the field line. This is the same as L-shell and is constant along wach field line.
24
+
- Q (dimensionless) - parameterizes the distance along the field line, related to magnetic latitude & radius. This varies along the field line, but the values are idential for all field lines within each node. q=0 at the equator, and approaches positive (negative) infinity as theta points towards the north (south) pole. Thus, q values will be negative in the southern hemisphere and the change in q "upwards" will be negative in the northern hemisphere. See [../../edu/examples/Dipole](../../edu/examples/Dipole) for more information.
25
25
26
26
## More Dipole Coordinates
27
27
- L-shell (Planetary Radii) - The distance from the planet's center at which the magnetic field encounters the dipole's equatorial plane
28
-
- Magnetic Latitude (radians) - angle between the dipole's equatorial plane and the point.
29
-
- Invariant Latitude (degrees) - angle between the dipole's equatorial plane and the point at which the field-line passes through a reference radius of the planet. This is constant along the field-line and is related to the L-Shell.
28
+
- Magnetic Latitude (radians) - angle between the dipole's equatorial plane and a point.
29
+
- Invariant Latitude (radians) - angle between the dipole's equatorial plane and the point at which the field-line passes through a reference radius of the planet ([specified in the inputs](../internals/grid.md#inputs)). This is constant along the field-line and is related to the L-Shell.
30
30
- Magnetic Local Time (hours) - Angle between the sun, the north magnetic pole, and the point. Explicitly, this is done in PSE XY coordinates, ignoring the Z coorinate.
31
31
32
+
> The dipole `(i,j,k)` coordinates are (magnetic longitude, p, q).
32
33
33
34
# Coordinates in Aether
34
35
@@ -46,12 +47,15 @@ Because Aether considers gravity to be a function of radius and explicitly inclu
46
47
47
48
## i, j, k Coordinates
48
49
49
-
As described in the grid.md file, Aether uses a logical '(i, j, k)' 3D grid structure. Therefore, we refer to the 'primary' coordinates as the ijk coordinate system. What this means is that the i-coordinate is in the i-direction, the j-coordinate is in the j-direction, and the k-coordinate is in the k-direction.
50
+
As described in the grid.md file, Aether uses a logical `(i, j, k)` 3D grid structure. Therefore, we refer to the 'primary' coordinates as the ijk coordinate system. What this means is that the i-coordinate is in the i-direction, the j-coordinate is in the j-direction, and the k-coordinate is in the k-direction.
50
51
51
52
For the (perfectly) spherical grid, the i-coordinate is longitude, the j-coordinate is latitude, and the k-coordinate is radius.
52
53
53
54
For the Cubedsphere grid, the i-coordinate is RIGHT, the j-coodinate is UP, and the k-coordinate is radius. Each face of the cubedsphere has the same coordinate system, but only with reference to that face. This means that if each face is looked at independently, the lower left corner is at (about) i = -45, j = -45 deg, while the upper right corner is at i = +45, j = +45 deg. Radius is treated the same as in a spherical grid.
54
55
56
+
For the dipole coordinate system, the i-coordinate is magnetic longitude, the j-coordinate is L-shell, and the k-coordinate is Q: a dimensionless parameter, normalized to the planet radius, representing diatance along a magnetic field line. The dipole is orthogonal to a dipolar magnetic field.
57
+
58
+
55
59
Should the official coordinates be in the native coordinates (which could be different for each system), or should the coordinates be in meters, such that when gradients are taken, they are in /m?
56
60
57
61
Maybe we could have:
@@ -69,6 +73,6 @@ Locations:
69
73
All locations should be described in the following coordinates:
70
74
- i, j, k
71
75
- lon, lat, radius (+alt)
72
-
- magnetic lon, invariant lat?
76
+
- magnetic lon, invariant lat (only the dipole magnetic grid then has magnetic latitude)
0 commit comments