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

SourceFunctionGeneral Class Reference

#include <solver.hpp>

Inheritance diagram for SourceFunctionGeneral:

Inheritance graph
[legend]
Collaboration diagram for SourceFunctionGeneral:

Collaboration graph
[legend]
List of all members.

Detailed Description

General source function of particles.

For details see SourceFunction.

Definition at line 60 of file solver.hpp.

Public Member Functions

 SourceFunctionGeneral (unsigned _N, double _H, unsigned _M, double _T, unsigned _m1, unsigned _m2, double *_v)
 Initialize source function v.
 ~SourceFunctionGeneral ()
 The destructor.
double operator() (unsigned xi, unsigned ti) const
 Return concentration particle of size xi * h at moment ti * tau.
double SquareNorm () const
 Get square L2 norm of source function.
void Update (double *q, double alpha, double dzeta)
 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

SourceFunctionGeneral::SourceFunctionGeneral unsigned  _N,
double  _H,
unsigned  _M,
double  _T,
unsigned  _m1,
unsigned  _m2,
double *  _v
 

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] with start value _v(x,t).

Parameters:
_N size of uniform grid on [0;H]
_H endpoint of particle segment
_M size of uniform grid on [0;T]
_T endpoint of time segment
_m1 left bound of time support of source function
_m2 right bound of time support of source function
_v double vector of size (N+1)*(M+1): _v[(N + 1) * k + i]=_v(i,k)

Definition at line 12 of file solver.cpp.

SourceFunctionGeneral::~SourceFunctionGeneral  ) 
 

The destructor.

Definition at line 29 of file solver.cpp.


Member Function Documentation

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

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

Implements SourceFunction.

Definition at line 34 of file solver.cpp.

double SourceFunctionGeneral::SquareNorm  )  const [virtual]
 

Get square L2 norm of source function.

Implements SourceFunction.

Definition at line 44 of file solver.cpp.

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

Update source function in gradient method.

Update v <- v - dzeta * (alpha * v + q)

Implements SourceFunction.

Definition at line 63 of file solver.cpp.

unsigned SourceFunction::GetN  )  const [inherited]
 

Get size of uniform grid of particles.

Definition at line 47 of file solver.hpp.

References SourceFunction::N.

unsigned SourceFunction::GetM  )  const [inherited]
 

Get size of uniform grid of time.

Definition at line 49 of file solver.hpp.

References SourceFunction::M.

unsigned SourceFunction::Get_m1  )  const [inherited]
 

Get left bound of time support of source function.

Definition at line 51 of file solver.hpp.

References SourceFunction::m1.

unsigned SourceFunction::Get_m2  )  const [inherited]
 

Get right bound of time support of source function.

Definition at line 53 of file solver.hpp.

References SourceFunction::m2.

double SourceFunction::Get_tau  )  const [inherited]
 

Get step of uniform grid of time.

Definition at line 55 of file solver.hpp.

References SourceFunction::tau.


Member Data Documentation

unsigned SourceFunction::N [protected, inherited]
 

Definition at line 28 of file solver.hpp.

Referenced by SourceFunction::GetN().

unsigned SourceFunction::M [protected, inherited]
 

Definition at line 28 of file solver.hpp.

Referenced by SourceFunction::GetM().

unsigned SourceFunction::m1 [protected, inherited]
 

Definition at line 29 of file solver.hpp.

Referenced by SourceFunction::Get_m1().

unsigned SourceFunction::m2 [protected, inherited]
 

Definition at line 29 of file solver.hpp.

Referenced by SourceFunction::Get_m2().

double SourceFunction::h [protected, inherited]
 

Definition at line 30 of file solver.hpp.

double SourceFunction::tau [protected, inherited]
 

Definition at line 30 of file solver.hpp.

Referenced by SourceFunction::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