csdsolvertrafofp.h 1.95 KB
Newer Older
jonas.kusch's avatar
jonas.kusch committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef CSDSOLVERTRAFOFP_H
#define CSDSOLVERTRAFOFP_H

#include "icru.h"
#include "solvers/snsolver.h"

class Physics;

class CSDSolverTrafoFP : public SNSolver
{
  private:
    std::vector<double> _dose; /*! @brief: TODO */

    // Physics acess
    Vector _energies; /*! @brief: energy levels for CSD, lenght = _nEnergies */
16
    Vector _angle;    /*! @brief: angles for SN */
jonas.kusch's avatar
jonas.kusch committed
17
18
19
20

    std::vector<Matrix> _sigmaSE; /*!  @brief scattering cross section for all energies*/
    Vector _sigmaTE;              /*!  @brief total cross section for all energies*/

jonas.kusch's avatar
jonas.kusch committed
21
    Matrix _L;  /*!  @brief Laplace Beltrami Matrix */
jonas.kusch's avatar
jonas.kusch committed
22
23
    Matrix _IL; /*!  @brief Laplace Beltrami Matrix */

24
25
26
    double _alpha; /*!  @brief  Coefficient of GFP operators (see Olbrant 2010, Appendix B)*/
    double _alpha2; /*!  @brief  Coefficient of GFP operators (see Olbrant 2010, Appendix B)*/
    double _beta; /*!  @brief  Coefficient of GFP operators (see Olbrant 2010, Appendix B)*/
jonas.kusch's avatar
jonas.kusch committed
27

28
    Matrix _xi;  /*!  @brief matrix of transport coefficients */
Tianbai Xiao's avatar
Tianbai Xiao committed
29
30
31
    Vector _xi1;
    Vector _xi2;
    
32
    unsigned _FPMethod; /*!  @brief Encodes different ways of computing coefficients alpha, alpha2 & beta, _FPMethod == 1, 2 ,3 stand for methods with increasing accuracy (see Olbrant 2010, Appendix B)*/
jonas.kusch's avatar
jonas.kusch committed
33

34
    bool _RT; /*!  @brief radiotherapy application (on/off), if true use crosssections + stopping powers from database  */
jonas.kusch's avatar
jonas.kusch committed
35

36
37
    double _energyMin; /*!  @brief minimal energy in energy grid*/
    double _energyMax; /*!  @brief maximal energy in energy grid*/
jonas.kusch's avatar
jonas.kusch committed
38

jonas.kusch's avatar
jonas.kusch committed
39
40
    void GenerateEnergyGrid( bool refinement );

jonas.kusch's avatar
jonas.kusch committed
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
  public:
    /**
     * @brief CSDSolverTrafoFP constructor
     * @param settings stores all needed information
     */
    CSDSolverTrafoFP( Config* settings );
    /**
     * @brief Solve functions runs main time loop
     */
    virtual void Solve();
    /**
     * @brief Output solution to VTK file
     */
    virtual void Save() const;
    virtual void Save( int currEnergy ) const;
};

jonas.kusch's avatar
jonas.kusch committed
58
#endif    // CSDSOLVERTRAFOFP_H