Optimize Matlab Derivative for Spacecraft Mission

  • Thread starter Thread starter Juanka
  • Start date Start date
  • Tags Tags
    Derivative Matlab
Click For Summary
SUMMARY

The forum discussion focuses on optimizing the specific impulse (Isp) for a spacecraft mission using MATLAB. The efficiency of the electric thruster is defined by the equation Eff= 1-(((Isp-5000)^2)/(5000^2)), while the power supply mass and propellant mass are calculated using Mp=(alpha*g*T*Isp)/(2*Eff) and dM=Mo*(1-exp(-dV/(Isp*g)), respectively. The objective is to minimize the total mass (Δm + Mp) by taking the derivative with respect to Isp and applying optimization techniques. Users are encouraged to define their initial conditions and utilize MATLAB's symbolic toolbox for differentiation.

PREREQUISITES
  • Understanding of spacecraft propulsion concepts, specifically specific impulse (Isp)
  • Familiarity with MATLAB programming, particularly symbolic computation
  • Knowledge of calculus, specifically differentiation and optimization techniques
  • Basic physics principles related to thrust and mass flow in spacecraft
NEXT STEPS
  • Learn MATLAB symbolic toolbox for differentiation and solving equations
  • Research optimization techniques in MATLAB, such as fminunc or fmincon
  • Study spacecraft propulsion systems and the significance of specific impulse
  • Explore the impact of varying thrust and efficiency on spacecraft mass
USEFUL FOR

This discussion is beneficial for aerospace engineers, students studying spacecraft design, and MATLAB users interested in optimization problems related to propulsion systems.

Juanka
Messages
37
Reaction score
0

Homework Statement


Assume you have a spacecraft capable of a constant thrust (T) mission. The spacecraft ’s electric thruster has an efficiency given by Eff= 1-(((Isp-5000)^2)/(5000^2)) , where Isp is the specific impulse, in seconds. The power supply mass is given by
Mp=(alpha*g*T*Isp)/(2*Eff). The propellant mass is given by dM=Mo*(1-exp(-dV/(Isp*g))), where mo is the initial total spacecraft mass. dV=1.4*104m/s, g=9.81m/s2, T=0.3N, Mo=50000kg, and alpha=10kW/kg. Determine the optimum specific impulse, Iopt (where (Δm+mp) is at a minimum) for Isp =0..10000s.

(Hint: You will be taking the derivative of (dM+mp) with respect to Isp, then use optimization to determine Iopt.)




The Attempt at a Solution


First of all, I understand I have to add the dM and Mp equations together and take the derevidive respect to Isp. I think I should use the a form of the
Code:
simplify(dsolve('DIsp=dM+mp,'y(0)=?','Isp'))
However I do not know what my initial condition should be. Also I think I may have to solve the equations for Isp? am i on the right track and suggestions please.
Also do I wait until I have found the Derivative to input the given definitions of each variable or should I do that last?
 
Physics news on Phys.org
So I have been playing with code and I have came up with the following:

Code:
%% Given Definitions
dV=1.4*10^4; %units are in m/s
g=9.81;%units are in m/s^2
T=0.3;% units are in N
Mo=50000;% units are in kg
alpha= 10/1000; %units are in kg/W
%Isp=.1;
%% Given Equations
Eff=@(Isp) 1-(((Isp-5000)^2)/(5000^2)); 
Mp=@(Isp, Eff) (alpha*g*T*Isp)/(2*Eff);     
dM=@(Isp) Mo*(1-exp(-dV/(Isp*g)));
%% Analytical Soultion
syms Isp
diff((alpha*g*T*Isp)/(2*(1-(((Isp-5000)^2)/(5000^2)))) + Mo*(1-exp(-dV/(Isp*g))))
Am I on the right track?
 

Similar threads

Replies
4
Views
3K
Replies
1
Views
3K
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K