MIDSX 0.1
A x-ray transport code system for dosimetry
Loading...
Searching...
No Matches
run_simulation.h
Go to the documentation of this file.
1
6#ifndef HVL_RUN_SIMULATION_H
7#define HVL_RUN_SIMULATION_H
8
9#include "source.h"
10#include "physics_engine.h"
11
24void runSimulation(PhotonSource& source, PhysicsEngine& physics_engine,
25 std::function<std::vector<std::unique_ptr<SurfaceTally>>()> surface_tally_init,
26 std::function<std::vector<std::unique_ptr<VolumeTally>>()> volume_tally_init,
27 int N_photons, double& run_time = *(new double));
28
29#endif //HVL_RUN_SIMULATION_H
Class which represents a photon source.
Definition source.h:241
void runSimulation(PhotonSource &source, PhysicsEngine &physics_engine, std::function< std::vector< std::unique_ptr< SurfaceTally > >()> surface_tally_init, std::function< std::vector< std::unique_ptr< VolumeTally > >()> volume_tally_init, int N_photons, double &run_time= *(new double))
Helper function which runs the particle transport simulation.