NcHIPertComp

NcHIPertComp — Perturbation background variables transport object

Functions

Properties

NcDistance * distance Read / Write
NcRecomb * recomb Read / Write
NcScalefactor * scalefactor Read / Write
double zf Read / Write

Types and Values

Object Hierarchy

    GBoxed
    ╰── NcHIPertBGVarYDY
    GObject
    ╰── NcHIPertBGVar

Description

FIXME

Functions

nc_hipert_bg_var_class_register_id ()

void
nc_hipert_bg_var_class_register_id (const gchar *ns,
                                    const gchar *desc,
                                    const gchar *long_desc,
                                    guint cstruct_size);

FIXME

[skip]

Parameters

ns

object namespace

 

desc

short description

 

long_desc

long description

 

cstruct_size

component struct size

 

nc_hipert_bg_var_class_get_id_by_gtype ()

NcHIPertBGVarID
nc_hipert_bg_var_class_get_id_by_gtype
                               (GType gt);

Gets the id associated with the GType gt .

[skip]

Parameters

gt

a GType

 

Returns

the id of gt .


nc_hipert_bg_var_class_get_id_by_ns ()

NcHIPertBGVarID
nc_hipert_bg_var_class_get_id_by_ns (const gchar *ns);

Gets the id associated with the namespace ns .

[skip]

Parameters

ns

an object namespace

 

Returns

the id of ns .


NC_HIPERT_BG_VAR_ID_FUNC()

#define NC_HIPERT_BG_VAR_ID_FUNC(obj_ns) obj_ns##_id

FIXME

Parameters

obj_ns

object namespace

 

NC_HIPERT_BG_VAR_ID_FUNC_DECL()

#define NC_HIPERT_BG_VAR_ID_FUNC_DECL(obj_ns) NcHIPertBGVarID NC_HIPERT_BG_VAR_ID_FUNC(obj_ns) (void) G_GNUC_CONST

Declare the id function associated with obj_ns .

Parameters

obj_ns

object namespace

 

NC_HIPERT_BG_VAR_ID_FUNC_IMPL()

#define             NC_HIPERT_BG_VAR_ID_FUNC_IMPL(obj_ns,ns)

The implementation of the id function associated with obj_ns .

Parameters

obj_ns

object namespace

 

ns

namespace

 

nc_hipert_bg_var_ydy_new ()

NcHIPertBGVarYDY *
nc_hipert_bg_var_ydy_new (void);

Creates a new NcHIPertBGVarYDY with all entries set to zero.

Returns

a new NcHIPertBGVarYDY.

[transfer full]


nc_hipert_bg_var_ydy_dup ()

NcHIPertBGVarYDY *
nc_hipert_bg_var_ydy_dup (NcHIPertBGVarYDY *ydy);

Duplicates ydy .

Parameters

ydy

a NcHIPertBGVarYDY

 

Returns

a copy of ydy .

[transfer full]


nc_hipert_bg_var_ydy_free ()

void
nc_hipert_bg_var_ydy_free (NcHIPertBGVarYDY *ydy);

Frees ydy .

Parameters

ydy

a NcHIPertBGVarYDY

 

nc_hipert_bg_var_ydy_get_y_i ()

gdouble
nc_hipert_bg_var_ydy_get_y_i (NcHIPertBGVarYDY *ydy,
                              guint i);

Gets the i -th variable.

Parameters

ydy

a NcHIPertBGVarYDY

 

i

variable index

 

Returns

the value of the i -th variable.


nc_hipert_bg_var_ydy_set_dy_i ()

void
nc_hipert_bg_var_ydy_set_dy_i (NcHIPertBGVarYDY *ydy,
                               guint i,
                               const gdouble dy_i);

Sets the i -th variable derivative to dy_i .

Parameters

ydy

a NcHIPertBGVarYDY

 

i

variable index

 

dy_i

the value of the i -th variable derivative

 

nc_hipert_bg_var_ydy_get_dy_i ()

gdouble
nc_hipert_bg_var_ydy_get_dy_i (NcHIPertBGVarYDY *ydy,
                               guint i);

Gets the i -th variable derivative.

Parameters

ydy

a NcHIPertBGVarYDY

 

i

variable index

 

Returns

the value of the i -th variable derivative.


nc_hipert_bg_var_new ()

NcHIPertBGVar *
nc_hipert_bg_var_new (void);

Creates a new NcHIPertBGVar.

Returns

the newly instantiated NcHIPertBGVar.

[transfer full]


nc_hipert_bg_var_new_full ()

NcHIPertBGVar *
nc_hipert_bg_var_new_full (NcDistance *dist,
                           NcRecomb *recomb,
                           NcScalefactor *a);

nc_hipert_bg_var_ref ()

NcHIPertBGVar *
nc_hipert_bg_var_ref (NcHIPertBGVar *bg_var);

Increases the reference count of bg_var .

Parameters

bg_var

a NcHIPertBGVar

 

Returns

bg_var .

[transfer full]


nc_hipert_bg_var_free ()

void
nc_hipert_bg_var_free (NcHIPertBGVar *bg_var);

Decreases the reference count of bg_var .

Parameters

bg_var

a NcHIPertBGVar

 

nc_hipert_bg_var_clear ()

void
nc_hipert_bg_var_clear (NcHIPertBGVar **bg_var);

Decreases the reference count of *bg_var and sets the pointer *bg_var to NULL.

Parameters

bg_var

a NcHIPertBGVar

 

nc_hipert_bg_var_prepare ()

void
nc_hipert_bg_var_prepare (NcHIPertBGVar *bg_var,
                          NcHICosmo *cosmo);

Prepares all computation objects inside bg_var .

Parameters

bg_var

a NcHIPertBGVar

 

cosmo

a NcHICosmo

 

nc_hipert_bg_var_prepare_if_needed ()

void
nc_hipert_bg_var_prepare_if_needed (NcHIPertBGVar *bg_var,
                                    NcHICosmo *cosmo);

Prepares all computation objects inside bg_var if necessary.

Parameters

bg_var

a NcHIPertBGVar

 

cosmo

a NcHICosmo

 

nc_hipert_bg_var_set_dist ()

void
nc_hipert_bg_var_set_dist (NcHIPertBGVar *bg_var,
                           NcDistance *dist);

Sets the NcDistance object.

Parameters

bg_var

a NcHIPertBGVar

 

dist

a NcDistance

 

nc_hipert_bg_var_set_recomb ()

void
nc_hipert_bg_var_set_recomb (NcHIPertBGVar *bg_var,
                             NcRecomb *recomb);

Sets the NcRecomb object.

Parameters

bg_var

a NcHIPertBGVar

 

recomb

a NcRecomb

 

nc_hipert_bg_var_set_scalefactor ()

void
nc_hipert_bg_var_set_scalefactor (NcHIPertBGVar *bg_var,
                                  NcScalefactor *a);

Sets the NcScalefactor object.

Parameters

bg_var

a NcHIPertBGVar

 

a

a NcScalefactor

 

nc_hipert_bg_var_get_dist ()

NcDistance *
nc_hipert_bg_var_get_dist (NcHIPertBGVar *bg_var);

Gets the NcDistance object.

Parameters

bg_var

a NcHIPertBGVar

 

Returns

the NcDistance object used by bg_var .

[transfer full][nullable]


nc_hipert_bg_var_get_recomb ()

NcRecomb *
nc_hipert_bg_var_get_recomb (NcHIPertBGVar *bg_var);

Gets the NcRecomb object.

Parameters

bg_var

a NcHIPertBGVar

 

Returns

the NcRecomb object used by bg_var .

[transfer full][nullable]


nc_hipert_bg_var_get_scalefactor ()

NcScalefactor *
nc_hipert_bg_var_get_scalefactor (NcHIPertBGVar *bg_var);

Gets the NcScalefactor object.

Parameters

bg_var

a NcHIPertBGVar

 

Returns

the NcScalefactor object used by bg_var .

[transfer full][nullable]


nc_hipert_bg_var_peek_dist ()

NcDistance *
nc_hipert_bg_var_peek_dist (NcHIPertBGVar *bg_var);

Peeks the NcDistance object.

Parameters

bg_var

a NcHIPertBGVar

 

Returns

the NcDistance object used by bg_var .

[transfer none][nullable]


nc_hipert_bg_var_peek_recomb ()

NcRecomb *
nc_hipert_bg_var_peek_recomb (NcHIPertBGVar *bg_var);

Peeks the NcRecomb object.

Parameters

bg_var

a NcHIPertBGVar

 

Returns

the NcRecomb object used by bg_var .

[transfer none][nullable]


nc_hipert_bg_var_peek_scalefactor ()

NcScalefactor *
nc_hipert_bg_var_peek_scalefactor (NcHIPertBGVar *bg_var);

Peeks the NcScalefactor object.

Parameters

bg_var

a NcHIPertBGVar

 

Returns

the NcScalefactor object used by bg_var .

[transfer none][nullable]


nc_hipert_bg_var_set_zf ()

void
nc_hipert_bg_var_set_zf (NcHIPertBGVar *bg_var,
                         const gdouble zf);

Requires the maximum redshift for computations to be zf .

Parameters

bg_var

a NcHIPertBGVar

 

zf

the maximum redshift where calculations take place $z_f$

 

nc_hipert_bg_var_get_zf ()

gdouble
nc_hipert_bg_var_get_zf (NcHIPertBGVar *bg_var);

Parameters

bg_var

a NcHIPertBGVar

 

Returns

the maximum redshift for computations zf .


nc_hipert_bg_var_len ()

guint
nc_hipert_bg_var_len (NcHIPertBGVar *bg_var);

Parameters

bg_var

a NcHIPertBGVar

 

Returns

the number of possible components installed.


nc_hipert_bg_var_activate_id ()

void
nc_hipert_bg_var_activate_id (NcHIPertBGVar *bg_var,
                              ...);

Register which components that will use the object bg_var . the list ... must end with a -1 signaling the end of the list.

[skip]

Parameters

bg_var

a NcHIPertBGVar

 

...

a list of background ids

 

nc_hipert_bg_var_activate_id_array ()

void
nc_hipert_bg_var_activate_id_array (NcHIPertBGVar *bg_var,
                                    GArray *ids);

Register which components that will use the object bg_var . the list ... must end with a -1 signaling the end of the list.

Parameters

bg_var

a NcHIPertBGVar

 

ids

an array of background ids.

[array][element-type NcHIPertBGVarID]

Types and Values

NcHIPertBGVarID

typedef gint32 NcHIPertBGVarID;

struct NcHIPertBGVarDesc

struct NcHIPertBGVarDesc {
};

struct NcHIPertBGVarYDY

struct NcHIPertBGVarYDY {
};

Boxed object containing the current status of the ode system.


NC_HIPERT_BG_VAR_DEFAULT_ZF

#define NC_HIPERT_BG_VAR_DEFAULT_ZF (1.0e9)

Property Details

The “distance” property

  “distance”                 NcDistance *

Distance object.

Owner: NcHIPertBGVar

Flags: Read / Write


The “recomb” property

  “recomb”                   NcRecomb *

Recombination object.

Owner: NcHIPertBGVar

Flags: Read / Write


The “scalefactor” property

  “scalefactor”              NcScalefactor *

Scalefactor object.

Owner: NcHIPertBGVar

Flags: Read / Write


The “zf” property

  “zf”                       double

Maximum redshift.

Owner: NcHIPertBGVar

Flags: Read / Write

Allowed values: >= 1

Default value: 1e+09