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

PhotonsContainer initialization functions. More...

#include <AMReX_Box.H>
#include <AMReX_Config.H>
#include <AMReX_MFIter.H>
#include <AMReX_Math.H>
#include <AMReX_REAL.H>
#include <AMReX_Random.H>
#include <AMReX_RandomEngine.H>
#include <AMReX_Scan.H>
#include <cctk.h>
#include <cmath>
#include <iostream>
#include "AMReX_Array.H"
#include "AMReX_GpuDevice.H"
#include "AMReX_ParallelDescriptor.H"
#include "Interpolator.hxx"
+ Include dependency graph for PhotonsInitializers.hxx:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename StructType , typename ParticleContainerClass >
void random_spherical_initializer (ParticleContainerClass &pc, const CCTK_REAL *real_params, const CCTK_INT *int_params)
 This function random initializes particles spherically distributed around a sphere of radius real_params[0]. More...
 
template<typename StructType , typename ParticleContainerClass >
void random_uniform_initializer (ParticleContainerClass &pc, const CCTK_REAL *real_params, const CCTK_INT *int_params)
 This function random initializes particles uniformly distributed in a box avoiding a sphere of radius real_params[0]. More...
 

Detailed Description

PhotonsContainer initialization functions.

This File contains examples of how to create different initial conditions for photons, imposing the initial conditions on the velocity.

Function Documentation

◆ random_spherical_initializer()

template<typename StructType , typename ParticleContainerClass >
void random_spherical_initializer ( ParticleContainerClass &  pc,
const CCTK_REAL *  real_params,
const CCTK_INT *  int_params 
)

This function random initializes particles spherically distributed around a sphere of radius real_params[0].

Parameters
pcThe particle container that is going to be initialized. cell.
real_paramsDouble type array that contains the real parameters needed to initialize the particles.
int_paramsInteger type array that contains the integer parameters needed to initialize the particles.

◆ random_uniform_initializer()

template<typename StructType , typename ParticleContainerClass >
void random_uniform_initializer ( ParticleContainerClass &  pc,
const CCTK_REAL *  real_params,
const CCTK_INT *  int_params 
)

This function random initializes particles uniformly distributed in a box avoiding a sphere of radius real_params[0].

Parameters
pcThe particle container that is going to be initialized.
real_paramsDouble type array that contains the real parameters needed to initialize the particles.
int_paramsInteger type array that contains the integer parameters needed to initialize the particles.