ostk.physics.environment.gravitational.Moon¶
- class Moon(*args, **kwargs)¶
Bases:
Model
Moon gravitational model.
The gravitational potential of the Moon for now is kept as a simple spherical model.
Overloaded function.
__init__(self: ostk.physics.environment.gravitational.Moon, type: ostk::physics::environment::gravitational::Moon::Type, directory: ostk.core.filesystem.Directory) -> None
Construct a Moon gravitational model.
- Args:
type (Moon.Type): Moon model type. directory (Directory): Directory containing the gravity model data files.
__init__(self: ostk.physics.environment.gravitational.Moon, type: ostk::physics::environment::gravitational::Moon::Type) -> None
Construct a Moon gravitational model.
- Args:
type (Moon.Type): Moon model type.
Methods
Get the gravitational field value at a position.
Get the Moon model type.
Check if the Moon model is defined.
Attributes
spherical
- class Type(self: ostk.physics.environment.gravitational.Moon.Type, value: int)¶
Bases:
pybind11_object
Members:
- Undefined :
Undefined Moon model type.
- Spherical :
Spherical Moon model type.
- property name¶
- get_field_value_at(
- self: ostk.physics.environment.gravitational.Moon,
- position: numpy.ndarray[numpy.float64[3, 1]],
- instant: ostk.physics.time.Instant,
- position: numpy.ndarray[numpy.float64[3, 1]],
Get the gravitational field value at a position.
- Parameters:
position (numpy.ndarray) -- A position.
instant (Instant) -- An instant.
- Returns:
Gravitational field value.
- Return type:
- get_parameters( ) ostk::physics::environment::gravitational::Model::Parameters ¶
- get_type( ) ostk::physics::environment::gravitational::Moon::Type ¶
Get the Moon model type.
- Returns:
Moon model type.
- Return type:
- is_defined(self: ostk.physics.environment.gravitational.Moon) bool ¶
Check if the Moon model is defined.
- Returns:
True if defined.
- Return type: