Click or drag to resize

SphericalHarmonicGravityField Constructor (SphericalHarmonicGravityModel, Int32, Int32, Int32, Int32, Boolean, SolidTideModel)

Initializes a new instance from a SphericalHarmonicGravityModel, the degree and order of the subset of the model that this field represents, the degree and order to use when calculating partial derivatives, and a boolean representing whether or not to include two body forces.

Namespace:  AGI.Foundation.Celestial
Assembly:  AGI.Foundation.OrbitPropagation (in AGI.Foundation.OrbitPropagation.dll) Version: 22.2.414.0 (22.2.414.0)
public SphericalHarmonicGravityField(
	SphericalHarmonicGravityModel gravityModel,
	int degree,
	int order,
	int partialsDegree,
	int partialsOrder,
	bool includeTwoBody,
	SolidTideModel tideModel


Type: AGI.Foundation.CelestialSphericalHarmonicGravityModel
The full gravity model to configure.
Type: SystemInt32
The desired degree. The configured gravity field will have this degree if FileDegree allows it.
Type: SystemInt32
The desired order. The configured gravity field will have this degree if FileDegree, FileOrder and degree allow it.
Type: SystemInt32
The degree to use for calculating partial derivatives.
Type: SystemInt32
The order to use for calculating partial derivatives.
Type: SystemBoolean
The flag representing whether a force model using this field should include two body gravity, or just the higher order perturbations.
Type: AGI.Foundation.CelestialSolidTideModel
The solid tide model that incorporates the effects of tides upon the gravity model.
ArgumentNullExceptionThrown when gravityModel is .
ArgumentExceptionThrown when gravityModel includes permanent tides and tideModel is not . In this case, the solid tide effects would be double counted. This exception can be mitigated by using WithoutEarthPermanentTides or WithoutPermanentTides(SphericalHarmonicGravityCoefficients) to remove the permanent tides from gravityModel or to set tideModel to be .
InvalidOperationException Thrown if the CentralBodyName in model does not refer to the Earth, Sun, or Moon. In that case use SphericalHarmonicGravityField(SphericalHarmonicGravityModel, CentralBody, Int32, Int32, Int32, Int32, Boolean, SolidTideModel).
See Also