Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Skyward
Matlab dependencies
Common
Commits
9dbe4a0d
Commit
9dbe4a0d
authored
4 months ago
by
Marco Luigi Gaibotti
Browse files
Options
Downloads
Patches
Plain Diff
[chad-updates] Adding tank and cc pressure in Motors
parent
151c1872
No related branches found
Branches containing commit
No related tags found
1 merge request
!16
[chad-updates] Added useful properties and methods for chad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
classes/bays/Motor.m
+8
-1
8 additions, 1 deletion
classes/bays/Motor.m
with
8 additions
and
1 deletion
classes/bays/Motor.m
+
8
−
1
View file @
9dbe4a0d
...
...
@@ -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
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment