Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Added shape of clm array
Browse files Browse the repository at this point in the history
  • Loading branch information
anand43 committed Mar 1, 2024
1 parent 6c7521a commit 8468f5e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/user-guide/gravitational-harmonics/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ Now the user can set up the rest of the simulation as usual. ::
Manually Adding the Coefficients
================================

If the user already has the coefficients, they can be added to the central body directly. Ensure that they are correctly normalized. ::
If the user already has the coefficients, they can be added to the central body directly. Ensure that they are correctly normalized and
the right shape. The dimensions of `c_lm` is `[sign, l, m]` where:
- `sign` indicates coefficients of positive (`[0]`) and negative (`[1]`) `m` and is of length 2.
- The dimension `l` corresponds to the degree of the Spherical Harmonic and is of length :math:`l_{max} + 1`.
- The dimension `m` corresponds to the order of the Spherical Harmonic and is of length :math:`l_{max} + 1`.

:math:`l_{max}` is the highest order of the coefficients. ::

c_lm = ..... # defined by the user
sim.add_body(name = 'Body', mass = cb_mass, rot = cb_rot, radius = cb_radius, c_lm = c_lm)
Expand Down

0 comments on commit 8468f5e

Please sign in to comment.