#include "PSD.h"
#include <math.h>
#include "../VariousFunctions/variousFunctions.h"
#include "../Exceptions/error.h"
#include <iostream>
#include <string>
#include <ctime>
Go to the source code of this file.
Functions | |
void | checkInf (Matrix3D< double > arr, int il, int im, int ia, double maxNum=1e99) |
Checking for infinity value appears during interpolation for 3D arrays. | |
void | checkInf (Matrix1D< double > arr, int il, int im, int ia, double maxNum=1e99) |
Checking for infinity value appears during interpolation for 1D arrays. | |
void | steady_state (Matrix1D< double > &f, double tau, double Kp, int nx, Matrix1D< double > &L, double f_bnd_out, double f_bnd_in) |
Calculate steady state. |
General view of F-P eq: Ax = Bx + C A, B, C refered as MatrixA, MatrixB and MatrixC in the code
Definition in file PSD.cpp.
void checkInf | ( | Matrix1D< double > | arr, | |
int | il, | |||
int | im, | |||
int | ia, | |||
double | maxNum = 1e99 | |||
) |
void checkInf | ( | Matrix3D< double > | arr, | |
int | il, | |||
int | im, | |||
int | ia, | |||
double | maxNum = 1e99 | |||
) |
Checking for infinity value appears during interpolation for 3D arrays.
arr | - array of values | |
il | - index | |
im | - index | |
ia | - index | |
maxNum | = 1e99 - max number (to compare with) |
Definition at line 981 of file PSD.cpp.
Referenced by PSD::Interpolate().
void steady_state | ( | Matrix1D< double > & | f, | |
double | tau, | |||
double | Kp, | |||
int | nx, | |||
Matrix1D< double > & | L, | |||
double | f_bnd_out, | |||
double | f_bnd_in | |||
) |
Calculate steady state.
Compute steady state solution for 1D diffusion.
&f | - function | |
tau | - life time | |
Kp | - Kp index value | |
nx | - number of points | |
&L | - grid | |
f_bnd_out | - the value on the outer boundary | |
f_bnd_in | - the value on the inner boundary |
Definition at line 1534 of file PSD.cpp.
References B(), VF::Df(), i, tridag(), and Matrix1D< T >::writeToFile().
Referenced by PSD::Load_initial_f().