#include <solver.hpp>
Inheritance diagram for SourceFunction:
Class describe source function v(x,t) where if v(x,t)>0 thereis a concentration particle x arrive at the system at the moment t; if v(x,t)<0 thereis a concentration particle x left the system at the moment t where x is from [0;H], t in [0;T]. We suppose that v(x,t)=0 if t not in [m1 * tau; m2 * tau].
Definition at line 26 of file solver.hpp.
Public Member Functions | |
SourceFunction (unsigned _N, double _H, unsigned _M, double _T, unsigned _m1, unsigned _m2) | |
Initialize source function v. | |
virtual | ~SourceFunction () |
The destructor. | |
virtual double | operator() (unsigned xi, unsigned ti) const =0 |
Return concentration particle of size xi * h at moment ti * tau. | |
virtual double | SquareNorm () const =0 |
Get square L2 norm of source function. | |
virtual void | Update (double *q, double alpha, double dzeta)=0 |
Update source function in gradient method. | |
unsigned | GetN () const |
Get size of uniform grid of particles. | |
unsigned | GetM () const |
Get size of uniform grid of time. | |
unsigned | Get_m1 () const |
Get left bound of time support of source function. | |
unsigned | Get_m2 () const |
Get right bound of time support of source function. | |
double | Get_tau () const |
Get step of uniform grid of time. | |
Protected Attributes | |
unsigned | N |
unsigned | M |
unsigned | m1 |
unsigned | m2 |
double | h |
double | tau |
|
Initialize source function v. Initialize source function v on [0;H]x[0;T] with uniform grid size NxM which such that that v(x,t)=0 if t not in [m1 * tau; m2 * tau]. Definition at line 7 of file solver.cpp. |
|
The destructor.
Definition at line 39 of file solver.hpp. |
|
Return concentration particle of size xi * h at moment ti * tau.
Implemented in SourceFunctionGeneral, and SourceFunctionFixTime. |
|
Get square L2 norm of source function.
Implemented in SourceFunctionGeneral, and SourceFunctionFixTime. |
|
Update source function in gradient method.
Implemented in SourceFunctionGeneral, and SourceFunctionFixTime. |
|
Get size of uniform grid of particles.
Definition at line 47 of file solver.hpp. References N. |
|
Get size of uniform grid of time.
Definition at line 49 of file solver.hpp. References M. |
|
Get left bound of time support of source function.
Definition at line 51 of file solver.hpp. References m1. |
|
Get right bound of time support of source function.
Definition at line 53 of file solver.hpp. References m2. |
|
Get step of uniform grid of time.
Definition at line 55 of file solver.hpp. References tau. |
|
Definition at line 28 of file solver.hpp. Referenced by GetN(). |
|
Definition at line 28 of file solver.hpp. Referenced by GetM(). |
|
Definition at line 29 of file solver.hpp. Referenced by Get_m1(). |
|
Definition at line 29 of file solver.hpp. Referenced by Get_m2(). |
|
Definition at line 30 of file solver.hpp. |
|
Definition at line 30 of file solver.hpp. Referenced by Get_tau(). |