Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

SourceFunction Class Reference

#include <solver.hpp>

Inheritance diagram for SourceFunction:

Inheritance graph
[legend]
List of all members.

Detailed Description

Abstract class of source function of particles.

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


Constructor & Destructor Documentation

SourceFunction::SourceFunction unsigned  _N,
double  _H,
unsigned  _M,
double  _T,
unsigned  _m1,
unsigned  _m2
 

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.

virtual SourceFunction::~SourceFunction  )  [virtual]
 

The destructor.

Definition at line 39 of file solver.hpp.


Member Function Documentation

virtual double SourceFunction::operator() unsigned  xi,
unsigned  ti
const [pure virtual]
 

Return concentration particle of size xi * h at moment ti * tau.

Implemented in SourceFunctionGeneral, and SourceFunctionFixTime.

virtual double SourceFunction::SquareNorm  )  const [pure virtual]
 

Get square L2 norm of source function.

Implemented in SourceFunctionGeneral, and SourceFunctionFixTime.

virtual void SourceFunction::Update double *  q,
double  alpha,
double  dzeta
[pure virtual]
 

Update source function in gradient method.

Implemented in SourceFunctionGeneral, and SourceFunctionFixTime.

unsigned SourceFunction::GetN  )  const
 

Get size of uniform grid of particles.

Definition at line 47 of file solver.hpp.

References N.

unsigned SourceFunction::GetM  )  const
 

Get size of uniform grid of time.

Definition at line 49 of file solver.hpp.

References M.

unsigned SourceFunction::Get_m1  )  const
 

Get left bound of time support of source function.

Definition at line 51 of file solver.hpp.

References m1.

unsigned SourceFunction::Get_m2  )  const
 

Get right bound of time support of source function.

Definition at line 53 of file solver.hpp.

References m2.

double SourceFunction::Get_tau  )  const
 

Get step of uniform grid of time.

Definition at line 55 of file solver.hpp.

References tau.


Member Data Documentation

unsigned SourceFunction::N [protected]
 

Definition at line 28 of file solver.hpp.

Referenced by GetN().

unsigned SourceFunction::M [protected]
 

Definition at line 28 of file solver.hpp.

Referenced by GetM().

unsigned SourceFunction::m1 [protected]
 

Definition at line 29 of file solver.hpp.

Referenced by Get_m1().

unsigned SourceFunction::m2 [protected]
 

Definition at line 29 of file solver.hpp.

Referenced by Get_m2().

double SourceFunction::h [protected]
 

Definition at line 30 of file solver.hpp.

double SourceFunction::tau [protected]
 

Definition at line 30 of file solver.hpp.

Referenced by Get_tau().


The documentation for this class was generated from the following files:
Generated on Sun May 25 01:58:13 2025 for SmoluchowskiSolver by Doxygen