Skip to content

Commit

Permalink
Corrected aerodynamic coefficient; python conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicDirkx committed Sep 18, 2024
1 parent 0f77c84 commit c36babc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 1 addition & 3 deletions propagation/reentry_trajectory.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,7 @@
"coefficient_settings = environment_setup.aerodynamic_coefficients.tabulated_force_only_from_files(\n",
" force_coefficient_files=aero_coefficients_files,\n",
" reference_area=2690.0*0.3048*0.3048,\n",
" independent_variable_names=[environment.angle_of_attack_dependent, environment.mach_number_dependent],\n",
" are_coefficients_in_aerodynamic_frame=True,\n",
" are_coefficients_in_negative_axis_direction=True\n",
" independent_variable_names=[environment.angle_of_attack_dependent, environment.mach_number_dependent]\n",
")\n",
"\n",
"# Add predefined aerodynamic coefficients database to the body\n",
Expand Down
7 changes: 2 additions & 5 deletions propagation/reentry_trajectory.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def updateGuidance(self, current_time: float):

# Update the variables on which the aerodynamic coefficients are based (AoA and Mach)
current_aerodynamics_independent_variables = [self.angle_of_attack, mach_number]

# Update the aerodynamic coefficients
self.aerodynamic_coefficient_interface.update_coefficients(
current_aerodynamics_independent_variables, current_time)
Expand Down Expand Up @@ -232,9 +233,7 @@ def updateGuidance(self, current_time: float):
coefficient_settings = environment_setup.aerodynamic_coefficients.tabulated_force_only_from_files(
force_coefficient_files=aero_coefficients_files,
reference_area=2690.0*0.3048*0.3048,
independent_variable_names=[environment.angle_of_attack_dependent, environment.mach_number_dependent],
are_coefficients_in_aerodynamic_frame=True,
are_coefficients_in_negative_axis_direction=True
independent_variable_names=[environment.angle_of_attack_dependent, environment.mach_number_dependent]
)

# Add predefined aerodynamic coefficients database to the body
Expand All @@ -248,13 +247,11 @@ def updateGuidance(self, current_time: float):


### Add rotation model based on aerodynamic guidance
"""
# Create the aerodynamic guidance object
aerodynamic_guidance_object = STSAerodynamicGuidance(bodies)
rotation_model_settings = environment_setup.rotation_model.aerodynamic_angle_based(
'Earth', '', 'STS_Fixed', aerodynamic_guidance_object.getAerodynamicAngles )
environment_setup.add_rotation_model( bodies, 'STS', rotation_model_settings )
"""


## Propagation setup
Expand Down

0 comments on commit c36babc

Please sign in to comment.