NcHIPert

NcHIPert — Abstract class for perturbation in homogeneous and isotropic cosmologies.

Functions

Properties

double abstol Read / Write / Construct
double alphai Read / Write
double k Read / Write / Construct
double reltol Read / Write / Construct
guint sys-size Read / Write

Object Hierarchy

    GObject
    ╰── NcHIPert
        ├── NcHIPertBoltzmann
        ├── NcHIPertTwoFluids
        ╰── NcHIPertWKB

Description

FIXME

Functions

nc_hipert_set_mode_k ()

void
nc_hipert_set_mode_k (NcHIPert *pert,
                      gdouble k);

Sets the value of the mode to be computed.

Parameters

pert

a NcHIPert.

 

k

the mode value.

 

nc_hipert_set_reltol ()

void
nc_hipert_set_reltol (NcHIPert *pert,
                      gdouble reltol);

Sets the value of the relative tolerance.

Parameters

pert

a NcHIPert.

 

reltol

the relative tolarance.

 

nc_hipert_set_abstol ()

void
nc_hipert_set_abstol (NcHIPert *pert,
                      gdouble abstol);

Sets the value of the absolute tolerance.

Parameters

pert

a NcHIPert.

 

abstol

the absolute tolarance.

 

nc_hipert_get_reltol ()

gdouble
nc_hipert_get_reltol (NcHIPert *pert);

Gets the value of the relative tolerance.

Parameters

pert

a NcHIPert.

 

Returns

reltol


nc_hipert_get_abstol ()

gdouble
nc_hipert_get_abstol (NcHIPert *pert);

Gets the value of the relative tolerance.

Parameters

pert

a NcHIPert.

 

Returns

abstol


nc_hipert_get_mode_k ()

gdouble
nc_hipert_get_mode_k (NcHIPert *pert);

Gets the value of the mode $k$.

Parameters

pert

a NcHIPert.

 

Returns

$k$


nc_hipert_prepared ()

gboolean
nc_hipert_prepared (NcHIPert *pert);

Parameters

pert

a NcHIPert.

 

Returns

Whether the object is prepared.


nc_hipert_set_prepared ()

void
nc_hipert_set_prepared (NcHIPert *pert,
                        gboolean prepared);

Sets the object to prepared .

Parameters

pert

a NcHIPert

 

prepared

a boolean

 

nc_hipert_set_sys_size ()

void
nc_hipert_set_sys_size (NcHIPert *pert,
                        guint sys_size);

Sets the system size.

Parameters

pert

a NcHIPert.

 

sys_size

the system size.

 

nc_hipert_set_stiff_solver ()

void
nc_hipert_set_stiff_solver (NcHIPert *pert,
                            gboolean stiff);

Sets the ode algorithm to use.

Parameters

pert

a NcHIPert.

 

stiff

whenever to enable or disable a stiff solver.

 

nc_hipert_reset_solver ()

void
nc_hipert_reset_solver (NcHIPert *pert);

Destroy and recreates the solver.

Parameters

pert

a NcHIPert

 

Property Details

The “abstol” property

  “abstol”                   double

Absolute tolerance.

Owner: NcHIPert

Flags: Read / Write / Construct

Allowed values: [0,1]

Default value: 0


The “alphai” property

  “alphai”                   double

Initial time.

Owner: NcHIPert

Flags: Read / Write

Default value: 0


The “k” property

  “k”                        double

Mode k.

Owner: NcHIPert

Flags: Read / Write / Construct

Allowed values: >= 0

Default value: 1


The “reltol” property

  “reltol”                   double

Relative tolerance.

Owner: NcHIPert

Flags: Read / Write / Construct

Allowed values: [0,1]

Default value: 1e-07


The “sys-size” property

  “sys-size”                 guint

System size.

Owner: NcHIPert

Flags: Read / Write

Allowed values: >= 1

Default value: 1