VERB4D
|
Getting the diffusion in 1D for the given a 1D matrix of Phase Space Densities, x, boundary conditions, jacobian, sources, losses and change in time. More...
Functions | |
bool | Diffusion_1D (Matrix1D< double > &psd, Matrix1D< double > x, int x_size, double x_LBC, double x_UBC, string x_LBC_type, string x_UBC_type, Matrix1D< double > Dxx, Matrix1D< double > G, Matrix1D< double > Sources, Matrix1D< double > Losses, double dt) |
Getting the diffusion in 1D for the given a 1D matrix of Phase Space Densities, x, boundary conditions, jacobian, sources, losses and change in time.
bool Diffusion_1D | ( | Matrix1D< double > & | psd, |
Matrix1D< double > | x, | ||
int | x_size, | ||
double | x_LBC, | ||
double | x_UBC, | ||
string | x_LBC_type, | ||
string | x_UBC_type, | ||
Matrix1D< double > | Dxx, | ||
Matrix1D< double > | G, | ||
Matrix1D< double > | Sources, | ||
Matrix1D< double > | Losses, | ||
double | dt | ||
) |
1D Diffusion - returns true on successful completion
Method:
psd | - phase space density |
x | - one dimensional slice |
x_size | - size of slice |
x_LBC | - lower boundary condition for param x |
x_UBC | - upper boundary condition for param x |
x_LBC_type | - type of lower boundary condition for param x |
x_UBC_type | - type of upper boundary condition for param x |
Dxx | - 1D Diffusion matrix |
G | - 1D used for Jacobian to normalize matrix |
Sources | - matrix used for Sources |
Losses | - Matrix used for Losses (loss cone) |
dt | - change in time of single time step |