bindings_module Module


Uses

  • module~~bindings_module~~UsesGraph module~bindings_module bindings_module iso_c_binding iso_c_binding module~bindings_module->iso_c_binding module~swiftest swiftest module~bindings_module->module~swiftest globals globals module~swiftest->globals module~encounter encounter module~swiftest->module~encounter module~collision collision module~swiftest->module~collision module~lambda_function lambda_function module~swiftest->module~lambda_function module~base base module~swiftest->module~base module~walltime walltime module~swiftest->module~walltime module~netcdf_io netcdf_io module~swiftest->module~netcdf_io module~operators operators module~swiftest->module~operators module~io_progress_bar io_progress_bar module~swiftest->module~io_progress_bar module~solver solver module~swiftest->module~solver module~encounter->globals module~encounter->module~base module~encounter->module~netcdf_io module~collision->globals module~collision->module~encounter module~collision->module~base module~lambda_function->globals module~base->globals module~coarray coarray module~base->module~coarray module~walltime->globals module~walltime->module~base module~netcdf_io->globals module~netcdf_io->module~base module~operators->globals module~io_progress_bar->globals module~io_progress_bar->module~base module~solver->globals module~solver->module~lambda_function module~solver->module~base ieee_exceptions ieee_exceptions module~solver->ieee_exceptions module~coarray->globals

Contents


Subroutines

public subroutine bindings_c2f_string(c_string, f_string)

Arguments

TypeIntentOptionalAttributesName
character(kind=c_char,len=1), intent(in) :: c_string(*)
character(len=:), intent(out), allocatable:: f_string

public subroutine bindings_c_driver(c_integrator, c_param_file_name, c_display_style) bind(c, name="0")

Arguments

TypeIntentOptionalAttributesName
character(kind=c_char), intent(in), dimension(*):: c_integrator
character(kind=c_char), intent(in), dimension(*):: c_param_file_name
character(kind=c_char), intent(in), dimension(*):: c_display_style

public subroutine bindings_orbel_el2xv(nbody, c_mu, c_a, c_e, c_inc, c_capom, c_omega, c_capm, c_rx, c_ry, c_rz, c_vx, c_vy, c_vz) bind(c, name="0")

Author
David A. Minton

Implements a bindings version of swiftest_orbel_el2xv to be called from Python via Cython

Arguments

TypeIntentOptionalAttributesName
integer(kind=I4B), intent(in), value:: nbody

The number of bodies

type(c_ptr), intent(in), value:: c_mu

The gravitational parameter G*(M+m)

type(c_ptr), intent(in), value:: c_a

The semi-major axis

type(c_ptr), intent(in), value:: c_e

The eccentricity

type(c_ptr), intent(in), value:: c_inc

The inclination

type(c_ptr), intent(in), value:: c_capom

The longitude of the ascending node

type(c_ptr), intent(in), value:: c_omega

The argument of periapsis

type(c_ptr), intent(in), value:: c_capm

The mean anomaly

type(c_ptr), intent(in), value:: c_rx

The x-component of the position vector

type(c_ptr), intent(in), value:: c_ry

The y-component of the position vector

type(c_ptr), intent(in), value:: c_rz

The z-component of the position vector

type(c_ptr), intent(in), value:: c_vx

The x-component of the velocity vector

type(c_ptr), intent(in), value:: c_vy

The y-component of the velocity vector

type(c_ptr), intent(in), value:: c_vz

The z-component of the velocity vector

public subroutine bindings_orbel_xv2el(nbody, c_mu, c_rx, c_ry, c_rz, c_vx, c_vy, c_vz, c_a, c_e, c_inc, c_capom, c_omega, c_capm, c_varpi, c_lam, c_f, c_cape, c_capf) bind(c, name="0")

Author
David A. Minton

Implements a bindings version of swiftest_orbel_xv2el to be called from Python via Cython

Arguments

TypeIntentOptionalAttributesName
integer(kind=I4B), intent(in), value:: nbody

The number of bodies

type(c_ptr), intent(in), value:: c_mu

The gravitational parameter G*(M+m)

type(c_ptr), intent(in), value:: c_rx

The x-component of the position vector

type(c_ptr), intent(in), value:: c_ry

The y-component of the position vector

type(c_ptr), intent(in), value:: c_rz

The z-component of the position vector

type(c_ptr), intent(in), value:: c_vx

The x-component of the velocity vector

type(c_ptr), intent(in), value:: c_vy

The y-component of the velocity vector

type(c_ptr), intent(in), value:: c_vz

The z-component of the velocity vector

type(c_ptr), intent(in), value:: c_a

The semi-major axis

type(c_ptr), intent(in), value:: c_e

The eccentricity

type(c_ptr), intent(in), value:: c_inc

The inclination

type(c_ptr), intent(in), value:: c_capom

The longitude of the ascending node

type(c_ptr), intent(in), value:: c_omega

The argument of periapsis

type(c_ptr), intent(in), value:: c_capm

The mean anomaly

type(c_ptr), intent(in), value:: c_varpi

The longitude of periapsis

type(c_ptr), intent(in), value:: c_lam

The mean longitude

type(c_ptr), intent(in), value:: c_f

The true anomaly

type(c_ptr), intent(in), value:: c_cape

The eccentric anomaly (elliptical orbits)

type(c_ptr), intent(in), value:: c_capf

The hyperbolic anomaly (hyperbolic orbits)