This block calculates fraction of the spherical celestial body apparent surface that is visible from behind the other spherical body.
This block calculates fraction of the spherical celestial body apparent surface that is visible from behind the other spherical body. Coordinates of the observers and positions of the two celestial bodies are given as inputs. Radii of the two bodies are assument constant with time and are configurable in block parameters dialog. Simple geometrical model is used to calculate the fraction of the body that is visible. Both eclipsed and the visible fraction of the apparent surface of a body are given as outputs in form of real numbers ranging from 0 to 1. Sum of those two always equals to one. For example:
Output 1 = 0, Output 2 = 1 - no eclipse
Output 1 = 1, Output 2 = 0 - full eclipse
Output 1 = 0.5, Output 2 = 0.5 - half of the body cross-section is ecplised
Input 1: Position of the observer in Cartesian reference frame described by 3x1 vector
Input 2: Position of the body that is being eclipsed in Cartesian reference frame described by 3x1 vector
Input 3: Position of the body that obscures the view in Cartesian reference frame described by 3x1 vector
Output 1: Fraction of the apparent surface of the body that is eclipsed (real value between 0 and 1)
Output 2: Fraction of the apparent surface of the body that is visible (real value between 0 and 1)
Radius of eclipsed body - Radius of the body that is being eclipsed.
Radius of eclipsing body - Radius of the body that constraints the view of the other body.
Accept herited events (0/1) - If 1 the block will accept herited events, if 0 it will have its own event input.
Radius of eclipsed body = 6.960D+08 (radius of the Sun in kilometers)
Radius of eclipsing body = 6378136.3 (radius of the Earth in kilometers)
Accept herited events (0/1)= 0
macros/ECLIPSE_MODEL.sci
macros/AB_gm_eclipseCheck.sci