« GPIntegrator » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
|||
Ligne 17 : | Ligne 17 : | ||
final IntegratorTypeEnum[] types = { IntegratorTypeEnum.RK4, IntegratorTypeEnum.DOP }; | final IntegratorTypeEnum[] types = { IntegratorTypeEnum.RK4, IntegratorTypeEnum.DOP }; | ||
GPIntegrator gpInteg = new GPIntegrator(types, IntegratorTypeEnum.DOP); | GPIntegrator gpInteg = new GPIntegrator(types, IntegratorTypeEnum.DOP); | ||
</syntaxhighlight> | |||
There are also several setter methods to override default values. For example, if we want to display by default 5 seconds for the RK time steps, we will have to call to the specific method as: | |||
<syntaxhighlight lang="java"> | |||
gpInteg.setRKParameters(5.); | |||
</syntaxhighlight> | |||
== Display == | |||
For the first cases, the display will be: | |||
[[File:GPIntegrator1.png]] | |||
as, for the second one ... | |||
== How to use it == | |||
To get a [[https://logiciels.cnes.fr/en/node/62?type=desc PATRIUS (CommonsMath)]] <font color=#4169E1>NumericalIntegrator</font> object, we will just have to call for the <font color=#4169E1>getPatriusObject()</font> method as below: | |||
TBW … | |||
There is also | |||
== How it is stored == | |||
Here is the <font color=#FF8C00 title="Extensible Markup Language">XML</font> format: | |||
<syntaxhighlight lang="XML"> | |||
</syntaxhighlight> | </syntaxhighlight> |
Version du 31 octobre 2019 à 11:49
How to call it
For using the GPIntegrator class, the developer has only to create such an object with these two possibilities:
- With no initialization:
GPIntegrator gpInteg = new GPIntegrator();
In that case, all the possible integrators will be displayed (i.e. Runge Kutta 4, Runge Kutta 6 and Dormand Price 853)
- Or, if we want to limit the display to some of these integrators (in the example below, only Runge Kutta 4 and Dormand Price 853) and choose the one initially displayes (here the Dormand Price 853 one):
final IntegratorTypeEnum[] types = { IntegratorTypeEnum.RK4, IntegratorTypeEnum.DOP };
GPIntegrator gpInteg = new GPIntegrator(types, IntegratorTypeEnum.DOP);
There are also several setter methods to override default values. For example, if we want to display by default 5 seconds for the RK time steps, we will have to call to the specific method as:
gpInteg.setRKParameters(5.);
Display
For the first cases, the display will be:
as, for the second one ...
How to use it
To get a [PATRIUS (CommonsMath)] NumericalIntegrator object, we will just have to call for the getPatriusObject() method as below:
TBW …
There is also
How it is stored
Here is the XML format: