Skip to content

Commit 9f25876

Browse files
author
Martin D. Weinberg
committed
Merge branch 'main' of github.com:EXP-code/EXP-docs
2 parents 6ab7cbb + 6e3a24b commit 9f25876

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ EXP concepts
8989
topics/bfetheory
9090
topics/codeintro
9191
topics/timesseries
92+
topics/units
9293
topics/multistep
9394
topics/centering
9495
topics/yamlconfig
@@ -106,6 +107,9 @@ mathematics used in EXP.
106107
:doc:`topics/timesseries`
107108
Descriptions for methods to analyze BFE time series
108109

110+
:doc:`topics/units`
111+
Physical units in EXP
112+
109113
:doc:`topics/multistep`
110114
A quick review of EXP's ODE solver and multi time step ladder
111115

intro/overview.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ Here's the code for computing coefficients::
9696
#
9797
coef = basis.createFromArray(data[:,0], data[:,1:4], time=3.0)
9898

99+
# Add your simulation units (we assume a unit-free simulation here)
100+
#
101+
coef.setUnits([('mass', 'none', 1.0), ('length', 'none', 1.0),
102+
('time', 'none', 1.0), ('G', 'none', 1.0)])
103+
99104
# Make an HDF5 file
100105
#
101106
coefs = pyEXP.coefs.Coefs.makecoefs(coef)
@@ -144,6 +149,11 @@ More detailed information on YAML and config parameters is available
144149
in the :ref:`What is YAML?<yamlconfig>` and :ref:`How to visualize the
145150
BFE bases used to make your coefficients<visualizing-bases>` pages.
146151

152+
The unit system in EXP is described in more detail in :ref:`Units in
153+
EXP and pyEXP<units>`. For this example, we assume a unit-free
154+
simulation but it's easy to add any unit system that is convenient for
155+
you.
156+
147157
pyEXP is then ready to make the coefficients from your phase-space
148158
data. This example assumes that the mass and positions of your
149159
particles are in columns 1, 2, 3, 4 of the file and that the positions

0 commit comments

Comments
 (0)