Sei sulla pagina 1di 1

Achieving a Target Thrust at Nozzle Exit (718)

real dTCompute(real Thrust_target, real alpha,


#include “udf.h” real Ttot_min, real Ttot_max, int zoneID)
#define Gamma 1.4 {
real Ttot_new = 200.0; face_t f;
real Temp, Ttot, VsoundSq, rho, area, Thrust_present, dTot;
DEFINE_ADJUST (Thrust_compute, domain) Domain *domain = Get_Domain(1);
{ Thread *tf = Lookup_Thread(domain,zoneID);
real Thrust_target, alpha, Ttot_min, Ttot_max;
/* Compute zone average values */
Thrust_target = 1200.0; /* Target thrust in Newton */ begin_f_loop(f,tf)
alpha = 0.5; /* Relaxation */ { …. }
Ttot_min = 20.0; /* Min Ttot in K */ end_f_loop(f,tf)
Ttot_max = 1000.0; /* Max Ttot in K */ Temp = … ; Ttot = … ; VsoundSq =…;
zoneID = THREAD_ID(tf); rho = … ; area = … ; Thrust_present = … ;
/* Finish */
Ttot_new = dTCompute(Thrust_target,alpha,
Ttot_min,Ttot_max,zoneID); dTot = 1.0 + 0.5*(Gamma-1.0)/ ( rho*area*VsoundSq )*
} (Thrust_target - Thrust_present )/
dTtot = alpha*Temp*dTot;
DEFINE_PROFILE (Thrust_fix, tf, position)
{ Ttot_new = Ttot + dTtot;
face_t f;
if ( Ttot_new >= Ttot_max ) Ttot_new = Ttot_max;
begin_f_loop(f,tf)
if ( Ttot_new <= Ttot_min ) Ttot_new = Ttot_min;
F_PROFILE(f,tf,position) = Ttot_new;
end_f_loop(f,tf) return Ttot_new;
} }

46 / 75

Potrebbero piacerti anche