I'm using GMAT to analyze the orbits. There is a Spherical model for Solar Radiation Pressure. Which equation does GMAT use to calculate it?
I've already searched in the documentation, however, there is no information/equations.
I wrote a program to calculate the solar pressure, accordingly to Vallado and taking the same values for the variables as in GMAT (area, reflectivity, mass). Due to the slightly different result, I suppose, GMAT uses a different algorithm.
$$ \huge\overset{\rightharpoonup}{F}_{srp}=-p_{srp}c_R A_\bigodot \frac{\overset{\rightharpoonup}{r}_{\bigoplus\bigodot}}{\left|\overset{\rightharpoonup}{r}_{\bigoplus\bigodot}\right|} $$
The code to calculate the acceleration (Julia language):
function solar_pressure(y,date)
st_bar_sun = state(spk, 0, 10, date)
st_bar_moon_earth = state(spk, 0, 3, date)
st_bar_me_earth = state(spk, 3, 399, date)
sun_cord = (st_bar_sun - (st_bar_moon_earth + st_bar_me_earth))*1000
r_sat_sun = [sun_cord[1] - y[1], sun_cord[2] - y[2], sun_cord[3] - y[3]]
r_sat_sun_scalar = sqrt(r_sat_sun[1]^2 + r_sat_sun[2]^2 + r_sat_sun[3]^2)
return -(r_sat_sun/r_sat_sun_scalar)*p_srp*C_r*A_sr/sat_mass
end