#include <operator.hpp>
Inheritance diagram for SmoluchowskiCalcDirect:
Class contained computations of integral operators Lk (see SmoluchowskiCalc class for details) by directly trapezoidal rule.
Definition at line 114 of file operator.hpp.
Public Member Functions | |
SmoluchowskiCalcDirect (const Skeleton &K_skel, const Skeleton &Psi_skel, double _H, unsigned _N) | |
Initialize class of smoluchowski direct calculation. | |
~SmoluchowskiCalcDirect () | |
The destructor. | |
void | calc_L1 (const double *f, const double *g, double *res) |
Calculate int_{0}^{x}{K(x-y,y)f(x-y)g(y)dy}. | |
void | calc_L2 (const double *f, const double *g, double *res) |
Calculate int_{x}^{H}{K(y-x,x)f(y-x)g(y)dy}. | |
void | fix_f_arg (const double *f) |
Fix argument f in calc_L1 and calc_L2; see calc_L1_fix_f, calc_L2_fix_f. | |
void | calc_L1_fix_f (const double *g, double *res) |
Calculate calc_L1 with previously saved argument f. | |
void | calc_L2_fix_f (const double *g, double *res) |
Calculate calc_L2 with previously saved argument f. | |
void | calc_L3 (const double *g, double *res) const |
Calculate int_{0}^{x}{Psi(x,y)g(y)dy}. | |
void | calc_L4 (const double *g, double *res) const |
Calculate int_{x}^{H}{Psi(y,x)g(y)dy}. | |
void | calc_L5 (const double *g, double *res) const |
Calculate int_{0}^{H}{K(x,y)g(y)dy}. | |
unsigned | GetN () const |
Get the size of uniform grid. | |
double | GetH () const |
Get the endpoint of segment [0;H]. | |
Protected Attributes | |
const Skeleton & | K |
const Skeleton & | Psi |
unsigned | N |
double | H |
double | h |
|
Initialize class of smoluchowski direct calculation. Let K, Psi be a coagulation and fragmentation kernel defined on [0;H]x[0;H]. Let NxN be a size of uniform grid on [0;H]x[0;H].
Definition at line 12 of file operator.cpp. |
|
The destructor.
Definition at line 17 of file operator.cpp. |
|
Calculate int_{0}^{x}{K(x-y,y)f(x-y)g(y)dy}. Find res(x) = int_{0}^{x}{K(x-y,y)f(x-y)g(y)dy} by trapezoidal rule on uniform grid.
Implements SmoluchowskiCalc. Definition at line 25 of file operator.cpp. References Matrix::elem(), Skeleton::GetRank(), Skeleton::GetU(), and Skeleton::GetV(). |
|
Calculate int_{x}^{H}{K(y-x,x)f(y-x)g(y)dy}. Find res(x) = int_{x}^{H}{K(y-x,x)f(y-x)g(y)dy} by trapezoidal rule on uniform grid.
Implements SmoluchowskiCalc. Definition at line 46 of file operator.cpp. References Matrix::elem(), Skeleton::GetRank(), Skeleton::GetU(), and Skeleton::GetV(). |
|
Fix argument f in calc_L1 and calc_L2; see calc_L1_fix_f, calc_L2_fix_f.
Implements SmoluchowskiCalc. Definition at line 69 of file operator.cpp. References Matrix::elem(), Skeleton::GetRank(), and Skeleton::GetU(). |
|
Calculate calc_L1 with previously saved argument f. Find res(x) = int_{0}^{x}{K(x-y,y)f(x-y)g(y)dy} by trapezoidal rule on uniform grid with f saved by fix_f_arg.
Implements SmoluchowskiCalc. Definition at line 84 of file operator.cpp. References Matrix::elem(), Skeleton::GetRank(), and Skeleton::GetV(). |
|
Calculate calc_L2 with previously saved argument f. Find res(x) = int_{x}^{H}{K(y-x,x)f(y-x)g(y)dy} by trapezoidal rule on uniform grid with f saved by fix_f_arg.
Implements SmoluchowskiCalc. Definition at line 110 of file operator.cpp. References Matrix::elem(), Skeleton::GetRank(), and Skeleton::GetV(). |
|
Calculate int_{0}^{x}{Psi(x,y)g(y)dy}. Find res(x) = int_{0}^{x}{Psi(x,y)g(y)dy} by trapezoidal rule on uniform grid.
Implements SmoluchowskiCalc. Definition at line 137 of file operator.cpp. References Matrix::elem(), and Skeleton::GetM(). |
|
Calculate int_{x}^{H}{Psi(y,x)g(y)dy}. Find res(x) = int_{x}^{H}{Psi(y,x)g(y)dy} by trapezoidal rule on uniform grid.
Implements SmoluchowskiCalc. Definition at line 150 of file operator.cpp. References Matrix::elem(), and Skeleton::GetM(). |
|
Calculate int_{0}^{H}{K(x,y)g(y)dy}. Find res(x) = int_{0}^{H}{K(x,y)g(y)dy} by trapezoidal rule on uniform grid.
Implements SmoluchowskiCalc. Definition at line 163 of file operator.cpp. References Matrix::elem(), and Skeleton::GetM(). |
|
Get the size of uniform grid.
Definition at line 47 of file operator.hpp. References SmoluchowskiCalc::N. Referenced by SmoluchowskiSolver::adjoint_problem(), SmoluchowskiSolver::forward_problem(), SmoluchowskiSolver::GetN(), SmoluchowskiSolver::inverse_problem(), SmoluchowskiOperator::SmoluchowskiOperator(), and SmoluchowskiSolver::SmoluchowskiSolver(). |
|
Get the endpoint of segment [0;H].
Definition at line 49 of file operator.hpp. References SmoluchowskiCalc::H. Referenced by SmoluchowskiOperator::SmoluchowskiOperator(). |
|
Definition at line 28 of file operator.hpp. |
|
Definition at line 29 of file operator.hpp. |
|
Definition at line 30 of file operator.hpp. Referenced by SmoluchowskiCalc::GetN(). |
|
Definition at line 31 of file operator.hpp. Referenced by SmoluchowskiCalc::GetH(). |
|
Definition at line 31 of file operator.hpp. |