Gravity Engine 12.0
Unity Asset for Gravity
Loading...
Searching...
No Matches
NewtonForce Class Reference

Newton force. This is not generally used - since Netwonian gravity is the more efficient default force built in to the integrators. More...

Inheritance diagram for NewtonForce:
IForceDelegate

Public Member Functions

double[] CalcAccelerationIJPerM (double[] rji, int i, int j, GravityState.NbodyState[] nbodyStates)
 Calculate the acceleration between bodies i and j.
 
double[] CalcAccelerationIPerParticle (double[] rji, int i, GravityState.NbodyState[] nbodyStates)
 
double[] CalcJerkIJPerM (double[] rji, int i, int j, GravityState.NbodyState[] nbodyStates)
 
double[] CalcAccelerationIJPerM (double[] rji, int i, int j, GravityState.NbodyState[] nbodyStates)
 Calculate the acceleration between bodies i and j.
 
double[] CalcAccelerationIPerParticle (double[] rji, int i, GravityState.NbodyState[] nbodyStates)
 
double[] CalcJerkIJPerM (double[] rji, int i, int j, GravityState.NbodyState[] nbodyStates)
 

Detailed Description

Newton force. This is not generally used - since Netwonian gravity is the more efficient default force built in to the integrators.

This code is used to double check the force delegate code

Member Function Documentation

◆ CalcAccelerationIJPerM()

double[] NewtonForce.CalcAccelerationIJPerM ( double[]  rji,
int  i,
int  j,
GravityState.NbodyState[]  nbodyStates 
)

Calculate the acceleration between bodies i and j.

Return the aij and aji accelerations because in some case (e.g one is oblate) they will not be equal and opposite!

Parameters
rji
i
j
nbodyStates
Returns

Implements IForceDelegate.

◆ CalcAccelerationIPerParticle()

double[] NewtonForce.CalcAccelerationIPerParticle ( double[]  rji,
int  i,
GravityState::NbodyState[]  nbodyStates 
)

Implements IForceDelegate.

◆ CalcJerkIJPerM()

double[] NewtonForce.CalcJerkIJPerM ( double[]  rji,
int  i,
int  j,
GravityState::NbodyState[]  nbodyStates 
)

Implements IForceDelegate.


The documentation for this class was generated from the following file: