Grid Class Reference

Computational grid Combined from 3 grid elements: L, pc, Alpha and additional array of epc values for convenience. More...

#include <Grid.h>

Collaboration diagram for Grid:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Grid ()
 Grid (ParamStructure::GridElement parameters_L, ParamStructure::GridElement parameters_pc, ParamStructure::GridElement parameters_alpha, ParamStructure::GridElement parameters_epc, string grid_filename, string grid_type, Grid SecondGrid=Grid())
 Constructor.
void Initialize (ParamStructure::GridElement parameters_L, ParamStructure::GridElement parameters_pc, ParamStructure::GridElement parameters_alpha, ParamStructure::GridElement parameters_epc, string grid_type)
 Grid initialization.
void MakeGrid (string grid_type, Grid SecondGrid=Grid())
 Makes grid.
bool IsInitialized ()
void Output (string filename)
 Output grid to a file.

Public Attributes

GridElement L
GridElement pc
GridElement alpha
GridElement epc
string type
int LSize
int pcSize
int alphaSize
int epcSize
Matrix3D< double > Jacobian
 Jacobian of the diffusion equation.


Detailed Description

Computational grid Combined from 3 grid elements: L, pc, Alpha and additional array of epc values for convenience.

Definition at line 65 of file Grid.h.


Constructor & Destructor Documentation

Grid::Grid (  )  [inline]

Definition at line 75 of file Grid.h.

Grid::Grid ( ParamStructure::GridElement  parameters_L,
ParamStructure::GridElement  parameters_pc,
ParamStructure::GridElement  parameters_alpha,
ParamStructure::GridElement  parameters_epc,
string  grid_filename,
string  grid_type,
Grid  SecondGrid = Grid() 
)

Constructor.

Create grid that can be based on second grid (ortogonal local grid for radial grid)

Parameters:
parameters_L - L parameters structure
parameters_pc - pc parameters structure
parameters_alpha - alpha parameters structure
parameters_epc - epc parameters structure
grid_filename - filename to load grid from (if any)
grid_type - type of the grid to be created (see code below for details)
SecondGrid - second grid (optional)

Definition at line 172 of file Grid.cpp.

References Matrix3D< T >::AllocateMemory(), alpha, Output::echo(), epc, VF::G(), Initialize(), Jacobian, L, MakeGrid(), pc, and GridElement::size.

Here is the call graph for this function:


Member Function Documentation

void Grid::Initialize ( ParamStructure::GridElement  parameters_L,
ParamStructure::GridElement  parameters_pc,
ParamStructure::GridElement  parameters_alpha,
ParamStructure::GridElement  parameters_epc,
string  grid_type 
)

Grid initialization.

Allocating memory for all gred alaments, copying parameters from paramStructure to the class.

Parameters:
parameters_L - L parameters structure
parameters_pc - pc parameters structure
parameters_alpha - alpha parameters structure
parameters_epc - epc parameters structure
grid_type - type of the grid to be created (see code below for details)

Definition at line 250 of file Grid.cpp.

References GridElement::AllocateMemory(), alpha, alphaSize, epc, epcSize, GridElement::Initialize(), L, LSize, pc, pcSize, GridElement::size, ParamStructure::GridElement::size, and type.

Referenced by Grid().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Grid::IsInitialized (  )  [inline]

Definition at line 92 of file Grid.h.

void Grid::MakeGrid ( string  gridType,
Grid  SecondGrid = Grid() 
)

Makes grid.

Making grid routine accordint to grid type.

Parameters:
gridType - grid type
SecondGrid - second grid (optional, depends on type).

Definition at line 281 of file Grid.cpp.

References Matrix3D< T >::AllocateMemory(), alpha, VF::B(), epc, find_alpha(), VF::G(), GridElement::GridElement_parameters, Jacobian, VF::Jc_calc(), GridElement::Kfunc(), L, ParamStructure::GridElement::max, maxERR, ParamStructure::GridElement::min, VF::mu2pc(), VF::mu_calc(), pc, VF::pc2mu(), GridElement::SetRegularGridValue(), GridElement::size, and ParamStructure::GridElement::useLogScale.

Referenced by Grid().

Here is the call graph for this function:

Here is the caller graph for this function:

void Grid::Output ( string  filename  ) 

Output grid to a file.

Parameters:
filename - file name

Definition at line 479 of file Grid.cpp.

References alpha, epc, L, VF::pfunc(), and GridElement::size.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 72 of file Grid.h.

Referenced by Initialize().

Definition at line 72 of file Grid.h.

Referenced by Initialize().

Jacobian of the diffusion equation.

In 1d_universal_solver there is a parameter 'n' represented power of variable in the equation $ x^n \frac{\partial}{\partial x} x^{-n} D_{xx} \frac{\partial f}{\partial x} $. More general case is using Jacobian: $ Jacobian \frac{\partial}{\partial x} Jacobian^{-1} D_{xx} \frac{\partial f}{\partial x} $.

Definition at line 101 of file Grid.h.

Referenced by Grid(), main(), and MakeGrid().

Definition at line 72 of file Grid.h.

Referenced by Initialize().

Definition at line 72 of file Grid.h.

Referenced by Initialize().

string Grid::type

Definition at line 71 of file Grid.h.

Referenced by Initialize(), and PSD::Interpolate().


The documentation for this class was generated from the following files:

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