Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gravity disturbances #200

Merged
merged 11 commits into from
Feb 1, 2024
Merged

Gravity disturbances #200

merged 11 commits into from
Feb 1, 2024

Conversation

Moanalengkeek
Copy link
Collaborator

Description

Summary of changes

  • Created a calculate_grav_torque function which calculates the torque due to gravity on a spacecraft. The model used can be found in chapter 3.3 of https://doi.org/10.1016/j.asr.2018.06.025. This includes up to and including J2 effects.
  • Implemented this function in the function calculate_disturbance_torques in attitude_model.py
  • Creation of pytests for this additional code

Resolved Issues

How Has This Been Tested?

Two tests have been created:

  • The first checks whether a 3-axis symmetric, uniform body has no angular acceleration or velocity due to the gravity torque.
  • The second checks whether a spacecraft in the shape of a pole (long rectangular prism) has the correct angular accelerations due to gravitational forces.

Related Pull Requests

This branch was created from the attitude-model branch on 22/01/24. Ideally this branch would have been created when #198 was completed and merged, as it now contains a mostly functional, but still incomplete, attitude model. Additionally, the only difference with the other ranch are the commits from 22/01/24 onward, to implement the gravitational disturbances. Because of this, this pull request should now be merged with student after the attitude-model branch has, and things may need to be re-checked for functionality.

@Moanalengkeek Moanalengkeek self-assigned this Jan 27, 2024
@Moanalengkeek Moanalengkeek added tests Anything related to the tests feature implementing a new feature physical-model All things involving some physical models labels Jan 27, 2024
@Moanalengkeek Moanalengkeek linked an issue Jan 27, 2024 that may be closed by this pull request
paseos/attitude/attitude_model.py Outdated Show resolved Hide resolved
paseos/attitude/disturbance_calculations.py Outdated Show resolved Hide resolved
paseos/attitude/disturbance_calculations.py Outdated Show resolved Hide resolved
paseos/tests/attitude_test.py Show resolved Hide resolved
paseos/tests/attitude_test.py Show resolved Hide resolved
@GabrieleMeoni
Copy link
Collaborator

@Moanalengkeek, please, merge from student, which is now containing the attitude model.

@GabrieleMeoni GabrieleMeoni merged commit e042180 into student Feb 1, 2024
0 of 3 checks passed
@GabrieleMeoni GabrieleMeoni deleted the gravity-disturbances branch February 1, 2024 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature implementing a new feature physical-model All things involving some physical models tests Anything related to the tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gravity disturbances in attitude model
2 participants