simIncludeThruster

class simIncludeThruster.thrusterFactory[source]

Bases: object

Simulation Thruster Factory Class

addToSpacecraft(modelTag, thEffector, sc)[source]

This function should be called after all Thruster devices are created with create() It creates the C-class container for the array of TH devices, and attaches this container to the spacecraft object

Parameters:
  • modelTag (string) – module model tag string

  • thEffector (thrusterEffector) – thruster effector handle

  • sc (spacecraft)

addToSpacecraftSubcomponent(modelTag, thEffector, baseEffector, segment=1, r_PcP_P=None)[source]

This function is for adding a thruster cluster to intermediate bodies

Parameters:
  • modelTag (string) – module model tag string

  • thEffector (thrusterEffector) – thruster effector handle

  • baseEffector (stateEffector) – intermediate body to be attached to, see Advanced: Effector Module Branching for the state effectors that can host one

  • segment (int) – one-based segment of a multi-body base effector, counting outward from the hub and defaulting to the segment attached to the hub

  • r_PcP_P (list) – [m] parent body center of mass relative to the parent body frame origin, in parent frame components, left unset when the two points coincide

create(thrusterType, r_B, tHat_B, **kwargs)[source]

This function is called to setup a thruster device in python, and adds it to the of thruster factory in thrusterList{}. The function returns a copy of the device that can be changed if needed. The first 3 arguments are required, the remaining arguments are optional with:

Parameters:
  • thrusterType (string) – thruster manufacturing name.:

  • r_B (list) – vector with thruster location in B-frame components:

  • tHat_B (list) – vector with thruster force direction unit vector:

  • kwargs –

    useMinPulseTime: BOOL

    flag if the thruster model should use a minimum impulse time

    areaNozzle: float

    thruster nozzle exhaust cone exit area

    steadyIsp: float

    thruster fuel efficiency in Isp (seconds)

    MaxThrust: float

    maximum thruster force in Newtons

    thrusterMagDisp: float

    thruster dispersion percentage

    MinOnTime: float

    thruster minimum on time

    cutoffFrequency: float

    frequency of first-order filter dynamics

    swirlTorque: float

    constant momentum from ionic thrusters

    thrBlowDownCoeff: list

    vector with polynomial coefficients for fuel mass to thrust blow down model in descending order

    ispBlowDownCoeff: list

    vector with polynomial coefficients for fuel mass to Isp blow down model in descending order

getConfigMessage()[source]

Returns a FSW THRArrayConfigMsg reflecting the current thruster setup.

Returns:

thrMessage

getNumOfDevices()[source]

Returns the number of RW devices setup.

Returns:

number of thruster devices