Doubt in the Impulse integral

I'm not get to resolve this equation, I don't know what is wrong...
I = @(Tc,t)(mdot.*(sqrt(((2.*y.*R_gas.*Tc)./(y - 1)).*(1 - ((Pe)/(Patm)).^((y - 1)/(y))))));
Q = dblquad(I,0,Tc,0,t);

2 comentarios

Ameer Hamza
Ameer Hamza el 31 de Oct. de 2020
What is the error? What are the values of constants?
Maria Angélica Pagane
Maria Angélica Pagane el 31 de Oct. de 2020
I don't know what is wrong this code. The values of constants fallow below:
y = 1.1332; % y = gama (Cp/Cv)
R = 8.314e+9; % Pa*mm3/mol*K
MM = 0.037192; % Kg/mol (propelant molar mass)
MM_gas = 0.60809; % Kg/mol (gas molar mass)
m = 0.2650; % Kg (propelant mass)
Patm = 0.10135; % MPa
Pe = 0.10135; % MPa (exhaust pressure)
Pc = [0,2000,6.895]; % MPa (combustion pressure)
Tc = [0,100,1750]; % K (combustion temperature)
t = [0,0.1,10]; % s (time)
Being,
R_gas = R / (MM_gas)
r = a*(Pc).^(n);
mdot = m./r ;

Iniciar sesión para comentar.

Respuestas (1)

Ameer Hamza
Ameer Hamza el 1 de Nov. de 2020

0 votos

Run the following code
y = 1.1332; % y = gama (Cp/Cv)
R = 8.314e+9; % Pa*mm3/mol*K
MM = 0.037192; % Kg/mol (propelant molar mass)
MM_gas = 0.60809; % Kg/mol (gas molar mass)
m = 0.2650; % Kg (propelant mass)
Patm = 0.10135; % MPa
Pe = 0.10135; % MPa (exhaust pressure)
Pc = [0,2000,6.895]; % MPa (combustion pressure)
Tc = [0,100,1750]; % K (combustion temperature)
t = [0,0.1,10]; % s (time)
R_gas = R / (MM_gas)
a = 1; % <---- undefined in your code
r = a*(Pc).^(m);
mdot = m./R ;
I = @(Tc,t)(mdot.*(sqrt(((2.*y.*R_gas.*Tc)./(y - 1)).*(1 - ((Pe)/(Patm)).^((y - 1)/(y))))));
Q = dblquad(I,0,Tc(end),0,t(end));
Also, use integral2 instead of dblquad
Q = integral2(I,0,Tc(end),0,t(end));

Categorías

Más información sobre Guidance, Navigation, and Control (GNC) en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 31 de Oct. de 2020

Respondida:

el 1 de Nov. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by