NcHIPertGrav

NcHIPertGrav — Abstract class describing a general first order gravitation theory.

Functions

#define NC_HIPERT_GRAV_DYN_VAR()
guint (*NcHIPertGravNDynVar) ()
GArray * (*NcHIPertGravDeps) ()
void (*NcHIPertGravSetGauge) ()
NcHIPertGravGauge (*NcHIPertGravGetGauge) ()
NcHIPertGravInfo * (*NcHIPertGravGetScalarInfo) ()
void (*NcHIPertGravGetScalar) ()
void (*NcHIPertGravGetDYScalar) ()
NcHIPertGravScalar * nc_hipert_grav_scalar_new ()
NcHIPertGravScalar * nc_hipert_grav_scalar_dup ()
void nc_hipert_grav_scalar_free ()
void nc_hipert_grav_scalar_set_zero ()
NcHIPertGravVector * nc_hipert_grav_vector_new ()
NcHIPertGravVector * nc_hipert_grav_vector_dup ()
void nc_hipert_grav_vector_free ()
void nc_hipert_grav_vector_set_zero ()
NcHIPertGravTensor * nc_hipert_grav_tensor_new ()
NcHIPertGravTensor * nc_hipert_grav_tensor_dup ()
void nc_hipert_grav_tensor_free ()
void nc_hipert_grav_tensor_set_zero ()
NcHIPertGravTScalar * nc_hipert_grav_T_scalar_new ()
NcHIPertGravTScalar * nc_hipert_grav_T_scalar_dup ()
void nc_hipert_grav_T_scalar_free ()
void nc_hipert_grav_T_scalar_add ()
void nc_hipert_grav_T_scalar_set_zero ()
NcHIPertGravTVector * nc_hipert_grav_T_vector_new ()
NcHIPertGravTVector * nc_hipert_grav_T_vector_dup ()
void nc_hipert_grav_T_vector_free ()
void nc_hipert_grav_T_vector_add ()
void nc_hipert_grav_T_vector_set_zero ()
NcHIPertGravTTensor * nc_hipert_grav_T_tensor_new ()
NcHIPertGravTTensor * nc_hipert_grav_T_tensor_dup ()
void nc_hipert_grav_T_tensor_free ()
void nc_hipert_grav_T_tensor_add ()
void nc_hipert_grav_T_tensor_set_zero ()
NcHIPertGravInfo * nc_hipert_grav_info_new ()
NcHIPertGravInfo * nc_hipert_grav_info_dup ()
void nc_hipert_grav_info_free ()
void nc_hipert_grav_info_set_zero ()
void nc_hipert_grav_info_set_phi_deps ()
void nc_hipert_grav_info_set_dsigma_deps ()
void nc_hipert_grav_info_set_psi_deps ()
void nc_hipert_grav_info_set_dotpsi_deps ()
GArray * nc_hipert_grav_info_get_phi_deps ()
GArray * nc_hipert_grav_info_get_dsigma_deps ()
GArray * nc_hipert_grav_info_get_psi_deps ()
GArray * nc_hipert_grav_info_get_dotpsi_deps ()
NcHIPertGravTScalarInfo * nc_hipert_grav_T_scalar_info_new ()
NcHIPertGravTScalarInfo * nc_hipert_grav_T_scalar_info_dup ()
void nc_hipert_grav_T_scalar_info_free ()
void nc_hipert_grav_T_scalar_info_append ()
void nc_hipert_grav_T_scalar_info_set_zero ()
NcHIPertGrav * nc_hipert_grav_ref ()
void nc_hipert_grav_free ()
void nc_hipert_grav_clear ()
NcHIPertBGVarID nc_hipert_grav_get_id ()
guint nc_hipert_grav_ndyn_var ()
GArray * nc_hipert_grav_get_deps ()
void nc_hipert_grav_set_gauge ()
NcHIPertGravGauge nc_hipert_grav_get_gauge ()
NcHIPertGravInfo * nc_hipert_grav_get_G_scalar_info ()
void nc_hipert_grav_get_G_scalar ()
void nc_hipert_grav_get_dy_scalar ()

Properties

NcHIPertGravGauge gauge Read / Write / Construct

Types and Values

Object Hierarchy

    GBoxed
    ├── NcHIPertGravInfo
    ├── NcHIPertGravScalar
    ├── NcHIPertGravTScalar
    ├── NcHIPertGravTScalarInfo
    ├── NcHIPertGravTTensor
    ├── NcHIPertGravTVector
    ├── NcHIPertGravTensor
    ╰── NcHIPertGravVector
    GEnum
    ├── NcHIPertGravGauge
    ╰── NcHIPertGravSElem
    GObject
    ╰── NcHIPertGrav
        ╰── NcHIPertGravEinstein

Description

FIXME

Functions

NC_HIPERT_GRAV_DYN_VAR()

#define NC_HIPERT_GRAV_DYN_VAR(n) (n)

NcHIPertGravNDynVar ()

guint
(*NcHIPertGravNDynVar) (NcHIPertGrav *grav);

NcHIPertGravDeps ()

GArray *
(*NcHIPertGravDeps) (NcHIPertGrav *grav,
                     guint vindex);

NcHIPertGravSetGauge ()

void
(*NcHIPertGravSetGauge) (NcHIPertGrav *grav,
                         NcHIPertGravGauge gauge);

NcHIPertGravGetGauge ()

NcHIPertGravGauge
(*NcHIPertGravGetGauge) (NcHIPertGrav *grav);

NcHIPertGravGetScalarInfo ()

NcHIPertGravInfo *
(*NcHIPertGravGetScalarInfo) (NcHIPertGrav *grav);

NcHIPertGravGetScalar ()

void
(*NcHIPertGravGetScalar) (NcHIPertGrav *grav,
                          NcHIPertBGVar *bg_var,
                          NcHIPertBGVarYDY *ydy,
                          NcHIPertGravTScalar *T_scalar,
                          NcHIPertGravScalar *G_scalar);

NcHIPertGravGetDYScalar ()

void
(*NcHIPertGravGetDYScalar) (NcHIPertGrav *grav,
                            NcHIPertBGVar *bg_var,
                            NcHIPertBGVarYDY *ydy,
                            NcHIPertGravTScalar *T_scalar,
                            NcHIPertGravScalar *G_scalar);

nc_hipert_grav_scalar_new ()

NcHIPertGravScalar *
nc_hipert_grav_scalar_new (void);

Creates a new NcHIPertGravScalar with all entries set to zero.

Returns

a new NcHIPertGravScalar.

[transfer full]


nc_hipert_grav_scalar_dup ()

NcHIPertGravScalar *
nc_hipert_grav_scalar_dup (NcHIPertGravScalar *gs);

Duplicates gs .

Parameters

Returns

a copy of gs .

[transfer full]


nc_hipert_grav_scalar_free ()

void
nc_hipert_grav_scalar_free (NcHIPertGravScalar *gs);

Frees gs .

Parameters


nc_hipert_grav_scalar_set_zero ()

void
nc_hipert_grav_scalar_set_zero (NcHIPertGravScalar *gs);

Sets all gs entries to zero.

Parameters


nc_hipert_grav_vector_new ()

NcHIPertGravVector *
nc_hipert_grav_vector_new (void);

Creates a new NcHIPertGravVector with all entries set to zero.

Returns

a new NcHIPertGravVector.

[transfer full]


nc_hipert_grav_vector_dup ()

NcHIPertGravVector *
nc_hipert_grav_vector_dup (NcHIPertGravVector *gv);

Duplicates gv .

Parameters

Returns

a copy of gv .

[transfer full]


nc_hipert_grav_vector_free ()

void
nc_hipert_grav_vector_free (NcHIPertGravVector *gv);

Frees gv .

Parameters


nc_hipert_grav_vector_set_zero ()

void
nc_hipert_grav_vector_set_zero (NcHIPertGravVector *gv);

Sets all gv entries to zero.

Parameters


nc_hipert_grav_tensor_new ()

NcHIPertGravTensor *
nc_hipert_grav_tensor_new (void);

Creates a new NcHIPertGravTensor with all entries set to zero.

Returns

a new NcHIPertGravTensor.

[transfer full]


nc_hipert_grav_tensor_dup ()

NcHIPertGravTensor *
nc_hipert_grav_tensor_dup (NcHIPertGravTensor *gt);

Duplicates gt .

Parameters

Returns

a copy of gt .

[transfer full]


nc_hipert_grav_tensor_free ()

void
nc_hipert_grav_tensor_free (NcHIPertGravTensor *gt);

Frees gt .

Parameters


nc_hipert_grav_tensor_set_zero ()

void
nc_hipert_grav_tensor_set_zero (NcHIPertGravTensor *gt);

Sets all gt entries to zero.

Parameters


nc_hipert_grav_T_scalar_new ()

NcHIPertGravTScalar *
nc_hipert_grav_T_scalar_new (void);

Creates a new NcHIPertGravTScalar with all entries set to zero.

Returns

a new NcHIPertGravTScalar.

[transfer full]


nc_hipert_grav_T_scalar_dup ()

NcHIPertGravTScalar *
nc_hipert_grav_T_scalar_dup (NcHIPertGravTScalar *Ts);

Duplicates Ts .

Parameters

Returns

a copy of Ts .

[transfer full]


nc_hipert_grav_T_scalar_free ()

void
nc_hipert_grav_T_scalar_free (NcHIPertGravTScalar *Ts);

Frees Ts .

Parameters


nc_hipert_grav_T_scalar_add ()

void
nc_hipert_grav_T_scalar_add (NcHIPertGravTScalar *Ts,
                             const NcHIPertGravTScalar *Ts1,
                             const NcHIPertGravTScalar *Ts2);

Sums Ts1 and Ts2 and attribute the result to Ts .

Parameters


nc_hipert_grav_T_scalar_set_zero ()

void
nc_hipert_grav_T_scalar_set_zero (NcHIPertGravTScalar *Ts);

Sets all Ts entries to zero.

Parameters


nc_hipert_grav_T_vector_new ()

NcHIPertGravTVector *
nc_hipert_grav_T_vector_new (void);

Creates a new NcHIPertGravTVector with all entries set to zero.

Returns

a new NcHIPertGravTVector.

[transfer full]


nc_hipert_grav_T_vector_dup ()

NcHIPertGravTVector *
nc_hipert_grav_T_vector_dup (NcHIPertGravTVector *Tv);

Duplicates Tv .

Parameters

Returns

a copy of Tv .

[transfer full]


nc_hipert_grav_T_vector_free ()

void
nc_hipert_grav_T_vector_free (NcHIPertGravTVector *Tv);

Frees Tv .

Parameters


nc_hipert_grav_T_vector_add ()

void
nc_hipert_grav_T_vector_add (NcHIPertGravTVector *Tv,
                             const NcHIPertGravTVector *Tv1,
                             const NcHIPertGravTVector *Tv2);

Sums Tv1 and Tv2 and attribute the result to Tv .

Parameters


nc_hipert_grav_T_vector_set_zero ()

void
nc_hipert_grav_T_vector_set_zero (NcHIPertGravTVector *Tv);

Sets all Tv entries to zero.

Parameters


nc_hipert_grav_T_tensor_new ()

NcHIPertGravTTensor *
nc_hipert_grav_T_tensor_new (void);

Creates a new NcHIPertGravTTensor with all entries set to zero.

Returns

a new NcHIPertGravTTensor.

[transfer full]


nc_hipert_grav_T_tensor_dup ()

NcHIPertGravTTensor *
nc_hipert_grav_T_tensor_dup (NcHIPertGravTTensor *Tt);

Duplicates Tt .

Parameters

Returns

a copy of Tt .

[transfer full]


nc_hipert_grav_T_tensor_free ()

void
nc_hipert_grav_T_tensor_free (NcHIPertGravTTensor *Tt);

Frees Tt .

Parameters


nc_hipert_grav_T_tensor_add ()

void
nc_hipert_grav_T_tensor_add (NcHIPertGravTTensor *Tt,
                             const NcHIPertGravTTensor *Tt1,
                             const NcHIPertGravTTensor *Tt2);

Sums Tt1 and Tt2 and attribute the result to Tt .

Parameters


nc_hipert_grav_T_tensor_set_zero ()

void
nc_hipert_grav_T_tensor_set_zero (NcHIPertGravTTensor *Tt);

Sets all Tt entries to zero.

Parameters


nc_hipert_grav_info_new ()

NcHIPertGravInfo *
nc_hipert_grav_info_new (void);

Creates a new NcHIPertGravInfo with all entries set to zero.

Returns

a new NcHIPertGravInfo.

[transfer full]


nc_hipert_grav_info_dup ()

NcHIPertGravInfo *
nc_hipert_grav_info_dup (NcHIPertGravInfo *ginfo);

Duplicates ginfo .

Parameters

ginfo

a NcHIPertGravInfo

 

Returns

a copy of ginfo .

[transfer full]


nc_hipert_grav_info_free ()

void
nc_hipert_grav_info_free (NcHIPertGravInfo *ginfo);

Frees ginfo .

Parameters

ginfo

a NcHIPertGravInfo

 

nc_hipert_grav_info_set_zero ()

void
nc_hipert_grav_info_set_zero (NcHIPertGravInfo *ginfo);

Sets all ginfo entries to zero.

Parameters

ginfo

a NcHIPertGravInfo

 

nc_hipert_grav_info_set_phi_deps ()

void
nc_hipert_grav_info_set_phi_deps (NcHIPertGravInfo *ginfo,
                                  GArray *phi_deps);

Sets $\phi$ dependencies to phi_deps .

Parameters

ginfo

a NcHIPertGravInfo

 

phi_deps

the $\phi$ dependencies.

[array][element-type gint]

nc_hipert_grav_info_set_dsigma_deps ()

void
nc_hipert_grav_info_set_dsigma_deps (NcHIPertGravInfo *ginfo,
                                     GArray *dsigma_deps);

Sets $\delta\sigma$ dependencies to dsigma_deps .

Parameters

ginfo

a NcHIPertGravInfo

 

dsigma_deps

the $\dsigma$ dependencies.

[array][element-type gint]

nc_hipert_grav_info_set_psi_deps ()

void
nc_hipert_grav_info_set_psi_deps (NcHIPertGravInfo *ginfo,
                                  GArray *psi_deps);

Sets $\psi$ dependencies to psi_deps .

Parameters

ginfo

a NcHIPertGravInfo

 

psi_deps

the $\psi$ dependencies.

[array][element-type gint]

nc_hipert_grav_info_set_dotpsi_deps ()

void
nc_hipert_grav_info_set_dotpsi_deps (NcHIPertGravInfo *ginfo,
                                     GArray *dotpsi_deps);

Sets $\dot\psi$ dependencies to dotpsi_deps .

Parameters

ginfo

a NcHIPertGravInfo

 

dotpsi_deps

the $\dotpsi$ dependencies.

[array][element-type gint]

nc_hipert_grav_info_get_phi_deps ()

GArray *
nc_hipert_grav_info_get_phi_deps (NcHIPertGravInfo *ginfo);

Parameters

ginfo

a NcHIPertGravInfo

 

Returns

the $\phi$ dependencies.

[array][element-type gint][transfer full]


nc_hipert_grav_info_get_dsigma_deps ()

GArray *
nc_hipert_grav_info_get_dsigma_deps (NcHIPertGravInfo *ginfo);

Parameters

ginfo

a NcHIPertGravInfo

 

Returns

the $\dsigma$ dependencies.

[array][element-type gint][transfer full]


nc_hipert_grav_info_get_psi_deps ()

GArray *
nc_hipert_grav_info_get_psi_deps (NcHIPertGravInfo *ginfo);

Parameters

ginfo

a NcHIPertGravInfo

 

Returns

the $\psi$ dependencies.

[array][element-type gint][transfer full]


nc_hipert_grav_info_get_dotpsi_deps ()

GArray *
nc_hipert_grav_info_get_dotpsi_deps (NcHIPertGravInfo *ginfo);

Parameters

ginfo

a NcHIPertGravInfo

 

Returns

the $\dotpsi$ dependencies.

[array][element-type gint][transfer full]


nc_hipert_grav_T_scalar_info_new ()

NcHIPertGravTScalarInfo *
nc_hipert_grav_T_scalar_info_new (void);

nc_hipert_grav_T_scalar_info_dup ()

NcHIPertGravTScalarInfo *
nc_hipert_grav_T_scalar_info_dup (NcHIPertGravTScalarInfo *Tsinfo);

nc_hipert_grav_T_scalar_info_free ()

void
nc_hipert_grav_T_scalar_info_free (NcHIPertGravTScalarInfo *Tsinfo);

nc_hipert_grav_T_scalar_info_append ()

void
nc_hipert_grav_T_scalar_info_append (NcHIPertGravTScalarInfo *Tsinfo,
                                     NcHIPertGravTScalarInfo *Tsinfo1);

nc_hipert_grav_T_scalar_info_set_zero ()

void
nc_hipert_grav_T_scalar_info_set_zero (NcHIPertGravTScalarInfo *Tsinfo);

nc_hipert_grav_ref ()

NcHIPertGrav *
nc_hipert_grav_ref (NcHIPertGrav *grav);

Increases the reference count of grav .

Parameters

grav

a NcHIPertGrav

 

Returns

grav .

[transfer full]


nc_hipert_grav_free ()

void
nc_hipert_grav_free (NcHIPertGrav *grav);

Decreases the reference count of grav .

Parameters

grav

a NcHIPertGrav

 

nc_hipert_grav_clear ()

void
nc_hipert_grav_clear (NcHIPertGrav **grav);

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

Parameters

grav

a NcHIPertGrav

 

nc_hipert_grav_get_id ()

NcHIPertBGVarID
nc_hipert_grav_get_id (NcHIPertGrav *grav);

Parameters

grav

a NcHIPertGrav

 

Returns

the NcHIPertBGVar id tied to this gravitation object.


nc_hipert_grav_ndyn_var ()

guint
nc_hipert_grav_ndyn_var (NcHIPertGrav *grav);

[virtual ndyn_var]

Parameters

grav

a NcHIPertGrav

 

Returns

the number of dynamical components in grav .


nc_hipert_grav_get_deps ()

GArray *
nc_hipert_grav_get_deps (NcHIPertGrav *grav,
                         guint vindex);

[virtual get_deps]

Parameters

grav

a NcHIPertGrav

 

vindex

a variable index

 

Returns

the array of dependencies of variable vindex in grav .

[transfer full][array][element-type gint]


nc_hipert_grav_set_gauge ()

void
nc_hipert_grav_set_gauge (NcHIPertGrav *grav,
                          NcHIPertGravGauge gauge);

Sets the gauge NcHIPertGravGauge that grav should use.

[virtual set_gauge]

Parameters

grav

a NcHIPertGrav

 

gauge

a NcHIPertGravGauge

 

nc_hipert_grav_get_gauge ()

NcHIPertGravGauge
nc_hipert_grav_get_gauge (NcHIPertGrav *grav);

Gets the gauge NcHIPertGravGauge used by the gravonent grav .

[virtual get_gauge]

Parameters

grav

a NcHIPertGrav

 

Returns

current gauge of grav .


nc_hipert_grav_get_G_scalar_info ()

NcHIPertGravInfo *
nc_hipert_grav_get_G_scalar_info (NcHIPertGrav *grav);

Gets the determination type and dependencies for each gravitation pontential.

[virtual get_G_scalar_info]

Parameters

grav

a NcHIPertGrav

 

Returns

a NcHIPertGravInfo describing the scalar sector.


nc_hipert_grav_get_G_scalar ()

void
nc_hipert_grav_get_G_scalar (NcHIPertGrav *grav,
                             NcHIPertBGVar *bg_var,
                             NcHIPertBGVarYDY *ydy,
                             NcHIPertGravTScalar *T_scalar,
                             NcHIPertGravScalar *G_scalar);

Gets the scalar part of the gravitation potentials.

[virtual get_G_scalar]

Parameters

grav

a NcHIPertGrav

 

bg_var

a NcHIPertBGVar

 

ydy

a NcHIPertBGVarYDY

 

T_scalar

a NcHIPertGravTScalar

 

G_scalar

a NcHIPertGravScalar

 

nc_hipert_grav_get_dy_scalar ()

void
nc_hipert_grav_get_dy_scalar (NcHIPertGrav *grav,
                              NcHIPertBGVar *bg_var,
                              NcHIPertBGVarYDY *ydy,
                              NcHIPertGravTScalar *T_scalar,
                              NcHIPertGravScalar *G_scalar);

Gets the scalar part of the gravitation potentials.

[virtual get_dy_scalar]

Parameters

grav

a NcHIPertGrav

 

bg_var

a NcHIPertBGVar

 

ydy

a NcHIPertBGVarYDY

 

T_scalar

a NcHIPertGravTScalar

 

G_scalar

a NcHIPertGravScalar

 

Types and Values

struct NcHIPertGravScalar

struct NcHIPertGravScalar {
};

Boxed object describing scalar modes of the gravitational perturbations.


struct NcHIPertGravVector

struct NcHIPertGravVector {
};

Boxed object describing vector modes of the gravitational perturbations.


struct NcHIPertGravTensor

struct NcHIPertGravTensor {
};

Boxed object describing tensor modes of the gravitational perturbations.


enum NcHIPertGravSElem

Elements present in the scalar equations.

Members

NC_HIPERT_GRAV_SELEM_PHI

gravitation potential $\phi$

 

NC_HIPERT_GRAV_SELEM_DSIGMA

gravitation potential $\delta\sigma$

 

NC_HIPERT_GRAV_SELEM_PSI

gravitation potential $\psi$

 

NC_HIPERT_GRAV_SELEM_DOTPSI

time derivative of the gravitation potential $\dot{\psi}$

 

NC_HIPERT_GRAV_SELEM_DRHO

energy momentum tensor component $\delta\rho$

 

NC_HIPERT_GRAV_SELEM_RHOPPV

energy momentum tensor component $(\rho+p)\mathcal{V}$

 

NC_HIPERT_GRAV_SELEM_DP

energy momentum tensor component $\delta{}p$

 

NC_HIPERT_GRAV_SELEM_DPI

energy momentum tensor component $\delta\Pi$

 

enum NcHIPertGravGauge

Gravitation gauges.

Members

NC_HIPERT_GRAV_GAUGE_SYNCHRONOUS

Synchronous gauge

 

NC_HIPERT_GRAV_GAUGE_NEWTONIAN

Newtonian gauge

 

NC_HIPERT_GRAV_GAUGE_CONST_CURV

Constant curvature gauge

 

NC_HIPERT_GRAV_GAUGE_CONST_EXP

Constant expansion gauge

 

struct NcHIPertGravInfo

struct NcHIPertGravInfo {
  GArray *phi_deps;
  GArray *dsigma_deps;
  GArray *psi_deps;
  GArray *dotpsi_deps;

};

Gravitation section info

Members

GArray *phi_deps;

$\phi$ dependencies.

[array][element-type gint]

GArray *dsigma_deps;

$\delta\sigma$ dependencies.

[array][element-type gint]

GArray *psi_deps;

$\psi$ dependencies.

[array][element-type gint]

GArray *dotpsi_deps;

$\psi$ dependencies.

[array][element-type gint]

Property Details

The “gauge” property

  “gauge”                    NcHIPertGravGauge

gauge.

Owner: NcHIPertGrav

Flags: Read / Write / Construct

Default value: NC_HIPERT_GRAV_GAUGE_SYNCHRONOUS