Satellite and GNSS Satellite Scope Functions
The following scope functions are available in the Ansys Orbit Determination Tool Kit (ODTK®) application for Satellite and GNSS Satellite objects.
|
bool GenerateSPADFile(string outputFile, string shapeType, double area, double gridSpacing) Use this to create a tabulated area vector file in SPAD format to represent either a sphere or a cube shape for a spacecraft. You can use the output file as a definition file when using the "Tabulated Area Vector" solar pressure model. Parameters
Return Value
|
Example VBS: Copy
|
|
bool GenerateSPADFileFromNPlate(string outputFile, string shapeType, double gridSpacing) Use this to create a tabulated area vector file in SPAD format to represent the shape defined by the supplied N-Plate file. You can use the output file as a definition file when using the "Tabulated Area Vector" solar pressure model. Parameters
Return Value
|
Example VBS Copy
|
|
bool Go() Use this to generate ephemeris for a specified satellite over the time span given in the satellite's EphemerisGeneration attributes. Return Value
|
Example VBS: Copy
|
|
bool InitialCovarianceIsPositiveDefinite() This checks if the initial orbit error covariance, expressed in the OrbitUncertainty settings, is positive definite. Return Value
|
Example VBS: Copy
|
|
bool OEMToSTKEphemeris(string inputFile, string outputFile) This converts a CCSDS 502 OEM *.oem file to an STK ephemeris *.e file. Parameters
Return Value
|
Example VBS: Copy
|
|
bool OutputPropagatorDefn(string outputFile) This places the propagator definition in a file for the Ansys Systems Tool Kit® (STK®) application to read for initializing a satellite's integrator settings. Parameters
Return Value
|
Example VBS: Copy
|
|
bool PropEphem(string filename, string stopTime, bool inclCov, bool updateState) This is a helper function for InitalStateTool utility. It propagates a satellite state from the current epoch to a new time. You can use it to generate an ephemeris file or move a satellite state to a new epoch. You access this function via the Satellite's EphemerisGeneration attribute scope. Parameters
Return Value
|
Example VBS: Copy
|
|
bool ReplaceICRFWithJ2000() This function looks for references to the ICRF frame and converts them to the J2000 frame. For a satellite, it will transform the orbit from ICRF to J2000. It will also check the ephemeris generation CoordFrame and check each maneuver frame, changing frames from ICRF to J2000. It does not otherwise modify maneuver data. Any changes appear in the Message Viewer. Calling this function at the scenario level will in turn call this function for each satellite and GNSSSatellite object. Return Value
|
Example VBS: Copy
|
|
bool STKEphemerisToOEM(string inputFile, string outputFile) Use this to convert an STK Ephemeris *.e file to a CCSDS 502 OEM *.oem file. It will convert the file using the Scenario.SatEphemeris.CCSDS and Satellite.CCSDS controls. The output *.oem ephemeris will be in the central body default inertial frame regardless of the input *.e ephemeris coordinate frame. Parameters
Return Value
|
Example VBS: Copy
|
|
bool Stop() Use this to stop the generation of satellite ephemeris. The ephemeris file will contain the ephemeris generated up to the time of receiving the Stop command. Return Value
|
Example VBS: Copy
|
|
CAgAttr UpdateCentralBody(string cbName, string propagatorComponentName) This function changes a satellite's OrbitState central body, ensures that the satellite is using a propagator from the Component Browser, and sets the specific component propagator to use. It converts the satellite's initial state based on the Cartesian elements to an orbit around the new central body. When the choice is Moon or Sun, it also exposes the satellite's DynamicReports attributes and updates the DynamicReports.CentralBody value. You can access this function via the satellite's ReferenceTrajectory attribute scope. Parameters
Return ValueThe function returns a CAgAttr object containing the following properties:
|
Example JavaScript: Copy
|
|
bool UpdateInitialConditions(string filename, string newEpoch, string sUnused, bool bPerturb, bool bUpdateCov, bool bUnused) This computes a new set of initial conditions for a satellite based on the reference ephemeris defined in the given file. You can access this function via the satellite's ReferenceTrajectory attribute scope. Parameters
Return Value
|
Example VBS: Copy
The function Satellite.ReferenceTrajectory.UpdateInitialConditions2() is available for ODTK application version 6.5.2 and later. It allows a passing satellite epoch to be in any valid date time format. |