The invention discloses an air-sea cross-medium optical
transmission channel dynamic simulation method based on
photon tracing, and the method comprises the steps: A, building a unified coordinate
system, and initializing
system parameters; b, photons begin to propagate, and
photon coordinates, time and direction vectors are updated; c, calculating the maximum value and the minimum value of the sea
wave height, converting the maximum value and the minimum value into z values, and judging whether the photons pass through the sea surface or not according to the z values of coordinates of front and back collision points of the photons; d, if the photons pass through the sea surface, calculating
photon coordinates of two collision points at different moments, calculating the distance between each sea surface coordinate and the photon coordinates, finding the sea surface coordinate corresponding to the
shortest distance as an intersection point of the photons and the sea surface, and then refracting the photons into water; e, if the photons do not penetrate through the sea surface, the photons continue to be transmitted. According to the method, the interaction condition of the
wireless optical
signal and the fluctuating sea surface under the specific sea condition can be represented, the air-sea cross-medium optical transmission process is analyzed and predicted, and the photon trajectory obtained through
simulation better conforms to the actual environment.