Path: StraightLine/ConstantAccel
% Constant acceleration simulation
Assumes constant acceleration. Flyby and stopping are supported. This
uses a straight line model. If d.p is entered (and constant), d.uE is not
used. Otherwise, power is computed from uE. Use either
MassFuelElectricConstantUE or MassFuelElectricConstantPower to compute
the fuel mass. It outputs are not requested the function will plot.
Type StraightLineConstantAccel for a demo.
--------------------------------------------------------------------------
Form:
StraightLineConstantAccel; % demo
d = StraightLineConstantAccel; % data structure, constant uE
[mF,xP,t] = StraightLineConstantAccel(d,n)
--------------------------------------------------------------------------
------
Inputs
------
d (.) Data structure
See StraightLineDataStructure
.a Acceleration
n (1,1) Number of steps
-------
Outputs
-------
mF (1,1) Mass of fuel (kg)
xP (3,:) State [x;v;mF]
t (1,:) Time (s)
--------------------------------------------------------------------------
See also MassFuelElectricConstantUE, MassFuelElectricConstantPower
--------------------------------------------------------------------------