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.

  1. __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.

  2. __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_field_value_at

Get the gravitational field value at a position.

get_parameters

get_type

Get the Moon model type.

is_defined

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,
) numpy.ndarray[numpy.float64[3, 1]]

Get the gravitational field value at a position.

Parameters:
Returns:

Gravitational field value.

Return type:

numpy.ndarray

get_parameters(
self: ostk.physics.environment.gravitational.Model,
) ostk::physics::environment::gravitational::Model::Parameters
get_type(
self: ostk.physics.environment.gravitational.Moon,
) ostk::physics::environment::gravitational::Moon::Type

Get the Moon model type.

Returns:

Moon model type.

Return type:

Moon.Type

is_defined(self: ostk.physics.environment.gravitational.Moon) bool

Check if the Moon model is defined.

Returns:

True if defined.

Return type:

bool