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

Mitigating Spherical Harmonic Singularities in IGRF Calculations #742

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

seki-hiro
Copy link
Member

Related issues

Close #737

Description

既存のigrf.cは、国際標準地球磁場IGRFとその計算ソフトウェア(3)がベースとなっている。しかし、球面調和関数を計算する際、極域に特異性があるため、磁場の計算が発散するという問題がある。

国際標準地球磁場IGRFとその計算ソフトウェア(5)では、緯度が85度以上の領域で起きるこの特異性への対処が行われているため、これをベースにS2Eに反映した。

Test results

iniファイル変更点

// Simulation duration [sec]
simulation_duration_s = 8000

[ATTITUDE]
// Attitude propagation mode
// RK4 : Attitude Propagation with RK4 including disturbances and control torque
// CANTILEVER_VIBRATION : Attitude Propagation with the consideration of the cantilever vibration (flexible structure) including disturbances and control torque.
// CONTROLLED : Attitude Calculation with Controlled Attitude mode. All disturbances and control torque are ignored.
propagate_mode = CONTROLLED

// Orbit initialize mode for RK4, KEPLER, and ENCKE
// DEFAULT             : Use default initialize method (RK4 and ENCKE use pos/vel, KEPLER uses init_mode_kepler)
// POSITION_VELOCITY_I : Initialize with position and velocity in the inertial frame
// ORBITAL_ELEMENTS    : Initialize with orbital elements
initialize_mode = ORBITAL_ELEMENTS

inclination_rad = 1.57079632679

修正前

拡大して表示しているが、実際には北極と南極付近にて1e27オーダーの値が出ている。

latitude
before
before_zoom

修正後

極域での磁場の発散が解消されている。他の領域における磁場の概形は修正前から変化していない。
after

Impact

極域の磁場計算が改善する

Supplementary information

hotfixとして、Mainマージするために、 #741 を閉じて、PRを再作成した。

@seki-hiro seki-hiro added bug Something isn't working environment environment calculation labels Feb 5, 2025
@seki-hiro seki-hiro self-assigned this Feb 5, 2025
@seki-hiro seki-hiro requested review from sksat and a team as code owners February 5, 2025 01:34
@seki-hiro seki-hiro requested review from 200km, ogoogo, Hiro-0110, suzuki-toshihir0, t-hosonuma and conjikidow and removed request for a team February 5, 2025 01:34
Copy link
Member

@200km 200km left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます。

@seki-hiro seki-hiro merged commit 29247c7 into main Feb 5, 2025
41 checks passed
@seki-hiro seki-hiro deleted the hotfix/modify_igrf branch February 5, 2025 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working environment environment calculation
Projects
Status: 💮 Done
Development

Successfully merging this pull request may close these issues.

2 participants