Declared in ReactionWheelArray

Declaration

ReactionWheel CreateReactionWheel(
    double wheelMass,
    Vector3 wheelPosition_B,
    Vector3 wheelSpinAxis_B,
    RWModelType wheelModelType,
    double omega,
    double omegaMax,
    bool useFriction,
    bool useMinTorque,
    bool useMaxTorque,
    double maxTorque,
    double minTorque,
    double maxMomentum,
    double frictionCoulomb,
    double frictionStatic,
    double betaStatic,
    double frictionViscous,
    double staticImbalance,
    double dynamicImbalance
);

Description

Creates a new reaction wheel and adds the wheel to the current array. This will also initialise the reaction wheel with some default properties.

Parameters

NameDescription
wheelMass[kg] RW mass
wheelPosition_B[m] Position vector of the RW relative to the spacecraft body frame
wheelSpinAxis_B[-] Spin axis unit vector gsHat in B-frame components
wheelModelType[-] RW model type such as BalancedWheels, JitterSimple and JitterFullyCoupled
omega[RPM] Initial RW speed
omegaMax[RPM] Maximum RW speed
useFriction[-] Set to TRUE to turn on RW internal wheel friction
useMinTorque[-] Set to TRUE to clip any torque below a minimum torque value
useMaxTorque[-] Set to TRUE to clip any torque value above a maximum torque value
maxTorque[Nm] Maximum RW motor torque
minTorque[Nm] Minimum RW motor torque
maxMomentum[Nms] Maximum RW wheel momentum in Nms
frictionCoulomb[Nm] Coulomb friction torque model
frictionStatic[Nm] Static friction torque magnitude
betaStatic[-] Stribeck friction coefficient, positive turns Stribeck friction on, negative turns this friction off
frictionViscous[-] Viscous friction coefficient
staticImbalance[kg*m]*10^-6 static RW imbalance
dynamicImbalance[kg*m^2]*10^-6 dynamic RW imbalance