AxiniteArgs and the Body Class
A guide to using two of axtools' fundamental classes.
In this guide, you'll learn about:
the
AxiniteArgsclass and how to use itthe
Bodyclass and how it differs fromaxinite's standardBodyclass
What are AxiniteArgs?
AxiniteArgs?The AxiniteArgs class packages all the data from an Axinite file into one class. It has lots of attributes that can be used to keep track of various simulation parameters.
args.name: str
args.delta: np.float64
args.limit: np.float64
args.action: function
args.t: np.float64
args.bodies: list<axtools.Body>
args.radius_multiplier: float or int
args.rate: float or int
args.retain: int
args.modifier: function
args.backend: functionThe class also comes with an unpack function:
*args.unpack()Remember to unpack the tuple result with a *.
which can be used to easily supply the args to the ax.load function.
Setting the Limit and Delta
When setting limits and deltas, don't use:
Instead of setting the delta and limit attributes, use the included methods to change them:
To avoid errors during loading.
The Body Class
Body ClassAlthough axinite comes with a Body class already, axtools contains an expanded one with more attributes, such as:
The axtools.Body class can also take the place of an axinite.Body. You can create one with:
Last updated