VERB_code_2.2  2
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
AdditionalSourcesAndLosses Class Reference

#include <AdditionalSourcesAndLosses.h>

+ Inheritance diagram for AdditionalSourcesAndLosses:

Public Member Functions

void Update ()
 
void Create_SL (Parameters_structure::SL_structure, Grid &grid, int numberOfIterations, double timeStep)
 
- Public Member Functions inherited from Matrix3D< double >
 Matrix3D ()
 Default constructor. Do nothing. More...
 
 Matrix3D (const Matrix3D< double > &M)
 
 Matrix3D (int size_x, int size_y, int size_z)
 
 ~Matrix3D ()
 
void AllocateMemory (int size_x, int size_y, int size_z)
 
double ** operator[] (int i)
 Return the i-th pointer to 2d-array. Next [j][k] can be applied, so we have regular [i][j][k]. More...
 
double ** operator[] (int i) const
 
double & operator() (int x, int y, int z)
 Return the (x,y,z) value of matrix. More...
 
double & Value (int x, int y, int z)
 Return the (x,y,z) value of matrix. More...
 
Matrix3D< double > & MatrixArray ()
 Return pointer to the instance of the class. More...
 
Matrix3Doperator= (const Matrix3D< double > &M)
 
Matrix3Doperator= (const doubleVal)
 
const Matrix3Doperator+ () const
 
Matrix3D operator+ (const Matrix3D< double > &M) const
 
const Matrix3D operator- () const
 
Matrix3D operator- (const Matrix3D< double > &M) const
 
Matrix3Doperator+= (const Matrix3D< double > &M)
 
Matrix3Doperator+= (const doubleVal)
 Add the Val to each matrix element, stores result in the matrix it's applied to. More...
 
Matrix3Doperator-= (const Matrix3D< double > &M)
 
Matrix3Doperator-= (const doubleVal)
 Substract the Val from each matrix element, stores result in the matrix it's applied to. More...
 
Matrix3Doperator*= (const doubleVal)
 
Matrix3Doperator/= (const doubleVal)
 
Matrix3Dtimes_equal (const Matrix3D< double > &M)
 Arraywise multiplication (A.*B), stores result in the matrix it's applied to. More...
 
Matrix3Ddivide_equal (const Matrix3D< double > &M)
 Arraywise division (A./B), stores result in the matrix it's applied to. More...
 
Matrix3D operator* (const doubleVal) const
 
Matrix3D operator/ (const doubleVal) const
 
Matrix3D times (const Matrix3D< double > &M) const
 Arraywise multiplication (A.*B), stores result in a new matrix. More...
 
Matrix3D divide (const Matrix3D< double > &M) const
 Arraywise division (A./B), stores result in a new matrix. More...
 
void writeToFile (string filename)
 Save matrix to a file. More...
 
void writeToFile (string filename, Matrix3D< double > &grid_x, Matrix3D< double > &grid_y, Matrix3D< double > &grid_z)
 Save matrix to a file, including grid. More...
 
void readFromFile (string filename)
 Load matrix from a file. More...
 
void readFromFile (string filename, Matrix3D< double > &grid_x, Matrix3D< double > &grid_y, Matrix3D< double > &grid_z)
 Load matrix to a file. More...
 
int index1d (int x, int y, int z)
 Returns index of the element (x,y,z) in 1d array. More...
 
double max ()
 
double maxabs ()
 
Matrix3D< double > abs ()
 
Matrix2D< double > xSlice (int p_x) const
 
Matrix2D< double > ySlice (int p_y) const
 
Matrix2D< double > zSlice (int p_z) const
 

Additional Inherited Members

- Public Attributes inherited from Matrix3D< double >
bool initialized
 Flag, equal true if initialized. More...
 
int size_x
 
int size_y
 
int size_z
 size x, size y, size z More...
 
string name
 name of the Matrix More...
 
string change_ind
 Variables useful for tracking of changes (time of change can be stored here) More...
 

Detailed Description

Todo:
Move loss cone losses to the rest of the sources and losses

Definition at line 19 of file AdditionalSourcesAndLosses.h.

Member Function Documentation

void AdditionalSourcesAndLosses::Update ( )
inline

Definition at line 22 of file AdditionalSourcesAndLosses.h.

void AdditionalSourcesAndLosses::Create_SL ( Parameters_structure::SL_structure  ,
Grid grid,
int  numberOfIterations,
double  timeStep 
)

Loading (or just calculate) sources and losses

Parameters
parameters- PSD parameters
grid- grid
numberOfIterations- number of time steps total
timeStep- time step size

Definition at line 20 of file AdditionalSourcesAndLosses.cpp.


The documentation for this class was generated from the following files: