6. nPlateModel#
- class nPlateModel(plates_names: list, plates_areas: ArrayWUnits, plates_crs: ArrayWUnits, plates_abs: ArrayWUnits, plates_dref: ArrayWUnits, plates_sref: ArrayWUnits, plates_u_vectors: ArrayWUnits, plates_types: list)#
Bases:
Geometry
Plate model that is used to represent the spacecraft structure, used for the nPlate SRP modeling
- Parameters:
plates_names (
list
) – List of strings containing unique names for each plateplates_areas (
ArrayWUnits
) – The areas of each plate in square metersplates_crs (
ArrayWUnits
) – Reflectivity coefficients of the panels (material property)plates_abs (
ArrayWUnits
) – Absorption coefficients of the panels (material property)plates_dref (
ArrayWUnits
) – Diffuse reflection coefficients of the panels (material property)plates_sref (
ArrayWUnits
) – Specular coefficients of the panels (material property)plates_u_vectors (
ArrayWUnits
) – Normal vectors of the panelsplates_types (
list[str]
) – List of strings either ‘Fixed’ or ‘CK’. ‘Fixed’ defines plates with a normal unit vector fixed to the body frame. ‘CK’ assigns plate with an unfixed normal unit vector.
See also
scarabaeus.Spacecraft
Ingests an nPlateModel for use in propagating n-plate dynamics.
scrabaeus.nPlateSRP
Utilizes nPlateModel to calculate solar radiation pressure.
Notes
References
Examples
## initial setup import scarabaeus as scb # generate units km = scb.Units.get_units('km') # define input parameters plates_names = ['plusX', 'minusX', 'plusY'] plates_areas = scb.ArrayWUnits(np.array([ 1e-06 , 1e-06 , 1e-06 ]), km**2) plates_crs = scb.ArrayWUnits(np.array([ 1.5 , 1.5 , 1.5 ]), None) plates_abs = scb.ArrayWUnits(np.array([ 0.33 , 0.33 , 0.33 ]), None ) plates_dref = scb.ArrayWUnits(np.array([ 0.33 , 0.33 , 0.33 ]), None ) plates_sref = scb.ArrayWUnits(np.array([ 0.34 , 0.34 , 0.34 ]), None ) plates_u_vectors = scb.ArrayWUnits(np.array([[1,0,0], [-1,0,0], [0,1,0]]), None ) plates_ypes = ['Fixed', 'Fixed' , 'CK' ] # use parameters to define the model n_plate = scb.nPlateModel(plates_names, plates_areas, plates_crs, plates_abs, plates_dref, plates_sref, plates_u_vectors, plates_types)
Attributes
The cross-sectional area of the spacecraft.
The dry mass of the spacecraft.
The mass of the fuel spent during delta-v burns.
The mass of the fuel spent during finite burns.
The list of instruments attached to the spacecraft.
The mass of the Body object.
The N-Plate model representing the spacecraft's geometry.
The name of the spacecraft.
Absorption coefficient of the plate.
Surface area of the plate.
Reflectivity coefficients of the plate.
Diffuse reflection coefficient of the plate.
Names associated to the panels (e.g. spacecraft, asteroid, etc.).
Specular refleciton coefficient of the plate.
Type of the plate panel (e.g. 'Fixed' or 'CK').
Normal vector of the plate.
The reflectivity coefficient of the spacecraft.
The SPICE ID of the Body object.
Methods
add_instrument
(instruments)Adds an instrument or instruments to the spacecraft.
get_state
(epoch_0[, reference_frame, origin])Retrieves the state of the body relative to a given origin in a specified reference frame.
- add_instrument(instruments) None #
Adds an instrument or instruments to the spacecraft.
- Parameters:
instruments (
Instrument
orlist
ofInstrument
) – The instrument or instruments to be attached to the spacecraft.- Return type:
- get_state(epoch_0, reference_frame: str = 'J2000', origin: str = 'EARTH')#
Retrieves the state of the body relative to a given origin in a specified reference frame.
- Parameters:
epoch_0 (
EpochArray
) – The epoch times for which the state is to be computed.reference_frame (
str
) – The reference frame in which the state is desired. Defaults to ‘J2000’.origin (
str
) – The origin body relative to which the state is computed. Defaults to'EARTH'
.
- Returns:
state_vector – The state vector of the body relative to the origin.
- Return type:
- property area: ArrayWUnits#
The cross-sectional area of the spacecraft. Expressed in units of square meters.
- property dry_mass: ArrayWUnits#
The dry mass of the spacecraft. Expressed in units of kilograms.
- property dv_fuel_mass: ArrayWUnits#
The mass of the fuel spent during delta-v burns. Expressed in units of kilograms.
- property fb_fuel_mass: ArrayWUnits#
The mass of the fuel spent during finite burns. Expressed in units of kilograms.
- property mass: ArrayWUnits#
The mass of the Body object.
- property n_plate_model#
The N-Plate model representing the spacecraft’s geometry.