-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added nose, tube and wings, slight engine changes
- Loading branch information
Showing
7 changed files
with
85 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from rocket_twin.systems.structure.nose import Nose | ||
from rocket_twin.systems.structure.tube import Tube | ||
from rocket_twin.systems.structure.wings import Wings | ||
|
||
__all__ = ['Nose', 'Tube', 'Wings'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from cosapp.base import System | ||
|
||
class Nose(System): | ||
"""Model of a rocket nose. | ||
Inputs | ||
------ | ||
Outputs | ||
------ | ||
weight [kg]: float, | ||
nose weight | ||
cg [m]: float, | ||
nose center of gravity | ||
""" | ||
|
||
def setup(self): | ||
|
||
self.add_outward('weight', 0., desc="Weight", unit='kg') | ||
self.add_outward('cg', 0., desc="Center of gravity", unit='m') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from cosapp.base import System | ||
|
||
class Tube(System): | ||
"""Model of a rocket tube. | ||
Inputs | ||
------ | ||
Outputs | ||
------ | ||
weight [kg]: float, | ||
tube weight | ||
cg [m]: float, | ||
tube center of gravity | ||
""" | ||
|
||
def setup(self): | ||
|
||
self.add_outward('weight', 0., desc="Weight", unit='kg') | ||
self.add_outward('cg', 0., desc="Center of gravity", unit='m') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from cosapp.base import System | ||
|
||
class Wings(System): | ||
"""Model of the wings of a rocket. | ||
Inputs | ||
------ | ||
Outputs | ||
------ | ||
weight [kg]: float, | ||
wings weight | ||
cg [m]: float, | ||
wings center of gravity | ||
""" | ||
|
||
def setup(self): | ||
|
||
self.add_outward('weight', 0., desc="Weight", unit='kg') | ||
self.add_outward('cg', 0., desc="Center of gravity", unit='m') |