GInX
Geodesics Integrator tool for particles in GRMHD using Adaptive Mesh Refinement using AMReX.
metrics.cxx File Reference

Available metrics initialization function. More...

#include <cctk.h>
#include <AMReX_ParallelDescriptor.H>
#include <CParameters.h>
#include <cstring>
#include <driver.hxx>
#include <cctk_Arguments.h>
#include <cctk_Parameters.h>
#include <cctk_Types.h>
#include <cctk_core.h>
#include <loop_device.hxx>
+ Include dependency graph for metrics.cxx:

Functions

void BaseParticlesContainer_init_metric (CCTK_ARGUMENTS)
 Initialize the field's data using the chosen metric. More...
 

Detailed Description

Available metrics initialization function.

This file contains the function that initialize all the available metrics depending on the user's parameter file.

Function Documentation

◆ BaseParticlesContainer_init_metric()

void BaseParticlesContainer_init_metric ( CCTK_ARGUMENTS  )

Initialize the field's data using the chosen metric.

This function initializes the \(\alpha\), \(\vec{\beta}\), \(\gamma_{\mu\nu}\), and \(K_{\mu\nu}\) ADM elements needed for geodesic evolution.

  • The chosen metric is managed by the parameter file using KEYWORD parameter 'metric'.
  • Any extra parameter is introduced using the size 10 double 'metric_params_d' and integer 'metric_params_i' arrays.