PSD.cpp File Reference

Makes operations with PSD (like, diffusion). More...

#include "PSD.h"
#include <math.h>
#include "../VariousFunctions/variousFunctions.h"
#include "../Exceptions/error.h"
#include <iostream>
#include <string>
#include <ctime>

Include dependency graph for PSD.cpp:

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.


Detailed Description

Makes operations with PSD (like, diffusion).

Todo:
A lot of corrections should be done in PSD class to make it more logical and less spread.
Author:
Developed under supervision of the PI Yuri Shprits
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.


Function Documentation

void checkInf ( Matrix1D< double >  arr,
int  il,
int  im,
int  ia,
double  maxNum = 1e99 
)

Checking for infinity value appears during interpolation for 1D arrays.

Parameters:
arr - array of values
il - index
im - index
ia - index
maxNum = 1e99 - max number (to compare with)

Definition at line 997 of file PSD.cpp.

void checkInf ( Matrix3D< double >  arr,
int  il,
int  im,
int  ia,
double  maxNum = 1e99 
)

Checking for infinity value appears during interpolation for 3D arrays.

Parameters:
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().

Here is the caller graph for this function:

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.

Parameters:
&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().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Thu May 27 11:53:19 2010 for VERB_CODE_2.0 by  doxygen 1.5.9