Ansys Learning Forum › Forums › Discuss Simulation › Fluids › Thermal Desktop Orbital Elements Reference Frame › Reply To: Thermal Desktop Orbital Elements Reference Frame
January 3, 2025 at 4:29 pm
Alex
Subscriber
Here is a brief MATLAB script I use to calculate a Beta Angle of about 8.80982 degrees for a spacecraft in a circular Mars orbit, compared to Thermal Desktop's calculated Beta Angle value of about 9.00216 with the same inputs:
L_s = 15; % longitude of sun (right ascension of sun)
orbInc_deg = 10; % relative to planet equator
orbRAAN_deg = 30; % from planet vernal equinox direction
equatorInc_deg = 25.19; % axis of rotation tilt relative to the ecliptic plane (inclination of equator relative to ecliptic plane)
decSun_deg = asind(sind(equatorInc_deg)*sind(L_s)); % solar declination relative to planet equator
BetaAngle_deg = asind((cosd(decSun_deg)*sind(orbInc_deg)*sind(orbRAAN_deg - L_s)) + (sind(decSun_deg)*cosd(orbInc_deg)))