sim_state_mod Module

This module defines the setting_t type which holds simulation metadata:


Uses


Variables

Type Visibility Attributes Name Initial
type(settings_t), public :: state

global var that stores simulation state


Derived Types

type, public ::  settings_t

Components

Type Visibility Attributes Name Initial
logical, public :: absorb

Boolean to indicate whether to store absoption data.

character(len=:), public, allocatable :: ckptfile
integer, public :: ckptfreq
character(len=:), public, allocatable :: experiment

Name of experiment/simulation

type(cart_grid), public :: grid

Cart_grid type

character(len=:), public, allocatable :: historyFilename

Name of photon history file

integer, public :: iseed

initial seed for random number generator

logical, public :: loadckpt
integer, public :: nphotons

Number of photons to run

character(len=:), public, allocatable :: outfile

Name of fluence output file

character(len=:), public, allocatable :: outfile_absorb

Name of absoprtion output file

logical, public :: overwrite

Boolean to indicate whether to use overwrite datafiles if they have the same name.

logical, public :: render_geom

Boolean to indicate whether to render SDF to voxels or not.

integer, public :: render_size(3)

Size of the voxel grid to render SDFs to

character(len=:), public, allocatable :: renderfile

Name of voxel render file

character(len=:), public, allocatable :: source

Light source used

logical, public :: tev

Boolean to indicate whether to use TEV as debug viewer.

logical, public :: trackHistory

Boolean to indicate whether to store history of photons positions