Path: Missions/LunarMission
% Right hand side for translational motion in the planet fixed frame. Compatible with ode113 and RungeKutta4thOrder. You can pass in user defined thrust functions via d.funThrust and gravitational acceleration functions via d.funGrav [thrust,uE] = Thrust( massFuel, d ) thrust must be in N and uE in m/s. and custom gravitational acceleration functions for d.gFun; accelGrav is in km/s^2: accelGrav = Gravity( x, d ) If gFun is not a pointer it is assumed to be the gravitational constant. Type RHSRVPlanetFixed for the default data structure. -------------------------------------------------------------------------- Form: xDot = RHSRVPlanetFixed( t, x, d ) d = RHSRVPlanetFixed; % data structure -------------------------------------------------------------------------- ------ Inputs ------ t (1,1) Time (s) x (7,1) [r;v;massFuel] d (.) Data structure .funThrust @ Thrust function handle .dataFunThrust (.) Thrust function data .rVStruct (.) Data for orbit RHS function .massDry (1,1) Dry mass (kg) ------- Outputs ------- x (7,1) d[r;v;massFuel]/dt -------------------------------------------------------------------------- See also: FThrustLander, RHSOrbitPlanetFixed --------------------------------------------------------------------------
Missions: LunarMission/FThrustLander Orbit: RHSOrbit/RHSOrbitPlanetFixed Math: Linear/Mag
Back to the Missions Module page