diff --git a/classes/bays/Motor.m b/classes/bays/Motor.m index 20d48171c13b4f58e070ede34a767cc17aad07cf..9f2350da6e4d201110e16a155f7880572712bb73 100644 --- a/classes/bays/Motor.m +++ b/classes/bays/Motor.m @@ -16,6 +16,7 @@ classdef Motor < Bay inertia % [kg*m^2] Total Motor inertia (Body reference) cutoffTime double % [s] Shutdown time tankLength double % [m] Tank length + tankPressure double % [m] Tank length ignitionTransient double % [s] Ignition transient duration cutoffTransient double % [s] Cutoff transient duration time double % [s] Engine time vector @@ -25,6 +26,8 @@ classdef Motor < Bay propellantMass double % [Kg] Propellant Mass (in time) structureMass double % [kg] Engine Structural Mass fuselageMass double % [kg] Fuselage of the engine only + chamberTemperature double % [K] Temperature inside combustion chamber + chamberPressure double % [Pa] Pressure inside combustion chamber xCg % [m] Engine xcg from tank tip pe double % [Pa] Eflux pressure ae double % [Pa] Eflux Area @@ -116,7 +119,11 @@ classdef Motor < Bay obj.xCg = chosenMotor.xcg(iUniqueTime); obj.pe = chosenMotor.Pe(iUniqueTime); obj.ae = chosenMotor.Ae; - obj.fuselageMass = chosenMotor.mFus; + obj.fuselageMass = chosenMotor.mFus; + %% TODO: aggiungere a motors.mat (si possono cambiare i nomi dei campi di chosenMotor) + obj.tankPressure = chosenMotor.tankPressure; + obj.chamberTemperature = chosenMotor.ccTemperature; + obj.chamberPressure = chosenMotor.ccPressure; else obj.length = chosenMotor.L/1000; % lengths are saved in mm for solid motors obj.xCg = obj.length/2 * ones(1, size(obj.time, 2));