simIncludeThruster
simIncludeThruster
class simIncludeThruster.thrusterFactory[source]
: Bases: object
code
Simulation Thruster Factory Class
addToSpacecraft(*modelTag*, *thEffector*, *sc*)[[source]](https://avslab.github.io/basilisk/_modules/simIncludeThruster.html#thrusterFactory.addToSpacecraft)
: 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]](https://avslab.github.io/basilisk/_modules/simIncludeThruster.html#thrusterFactory.addToSpacecraftSubcomponent)
: 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](/u/635f36898ac65112#bskprinciples-11) 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]](https://avslab.github.io/basilisk/_modules/simIncludeThruster.html#thrusterFactory.create)
: 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]](https://avslab.github.io/basilisk/_modules/simIncludeThruster.html#thrusterFactory.getConfigMessage)
: > Returns a FSW THRArrayConfigMsg reflecting the current thruster setup.
Returns:
: thrMessage
getNumOfDevices()[[source]](https://avslab.github.io/basilisk/_modules/simIncludeThruster.html#thrusterFactory.getNumOfDevices)
: > Returns the number of RW devices setup.
Returns:
: number of thruster devices