globals.hΒΆ

A header file containing all global scope variables.

Variables

DynamicArray< ParticleData > P

main array of particle data

ThreeDGrid< GridVertex > grid

main 3D array of grid data on to which particle properties are smoothed

DynamicArray< ParticleProperty > props

array of discovered particles properties available for smoothing

double pi

pi (3.14159265...)

int N

total number of particles

int max_N_dsets

highest number of datasets (properties) on any given particle type

int tot_N_dsets

total number of datasets (properties)

int N_dsets_type[6]

number of datasets (properties) by particle type

int active_type_map[6]

if type is active in calc stores index where 0<=index<N_types_active

std::string input_file_location

path to target snapshot file

std::string output_file_location

path to output file

std::string param_file_location

path to target parameter file

int input_format

snapshot input file format

int output_format

griddr output file format

int sph_kernel_type

SPH kernel in use.

int use_vels

if use_vels!=1, 3D velocity components are not smoothed on to the grid

double x_r

rotation angle (degs) around the x-axis

double y_r

rotation angle (degs) around the y-axis

double z_r

rotation angle (degs) around the z-axis

double theta_r

rotation angle (degs) in the theta direction

double phi_r

rotation angle (degs) in the phi direction

double x_r0

coordinate translation new centre (rotate about this pos.)

double y_r0

coordinate translation new centre (rotate about this pos.)

double z_r0

coordinate translation new centre (rotate about this pos.)

int NxDim

number of grid cells (pixels) in the x direction

int NyDim

number of grid cells (pixels) in the y direction

int NzDim

number of grid cells (pixels) in the z direction

int LimMode

smoothing grid limit calculation mode

int grid_inc_type

particle type to enclose if grid limits auto calculated

double xLen_g

length of the smoothing grid in the x direction

double yLen_g

length of the smoothing grid in the y direction

double zLen_g

length of the smoothing grid in the z direction

double x_g0

smoothing grid x-dimension centre

double y_g0

smoothing grid y-dimension centre

double z_g0

smoothing grid z-dimension centre

double dx_grid

smoothing grid x-dimension cell length

double dy_grid

smoothing grid y-dimension cell length

double dz_grid

smoothing grid z-dimension cell length

int BoxSize_bx

simulation x-dimension side length measured in dx_grid

int BoxSize_by

simulation y-dimension side length measured in dy_grid

int BoxSize_bz

simulation z-dimension side length measured in dz_grid

double xLim_g[2]

smoothing grid x-dimension [lower, upper] limits

double yLim_g[2]

smoothing grid y-dimension [lower, upper] limits

double zLim_g[2]

smoothing grid z-dimension [lower, upper] limits

template <typename T>
class ThreeDGrid
#include <globals.h>

Template class describing a 3D grid of arbitrary data type, used principally as the grid upon which smoothed properties are calculated

namespace head

Namespace containing variables read from the Gadget snapshot file header.

Variables

int Npart[6]

number of particles by type

double BoxSize

simulation box size (used for periodic simulations)