Skip to content
Snippets Groups Projects
Commit 9dbe4a0d authored by Marco Luigi Gaibotti's avatar Marco Luigi Gaibotti
Browse files

[chad-updates] Adding tank and cc pressure in Motors

parent 151c1872
No related branches found
No related tags found
1 merge request!16[chad-updates] Added useful properties and methods for chad
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment