MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HSolveUtils::Grid Class Reference

#include <HSolveUtils.h>

+ Collaboration diagram for HSolveUtils::Grid:

Public Member Functions

double entry (unsigned int i)
 
 Grid (double min, double max, unsigned int divs)
 
bool operator== (const Grid &other)
 
unsigned int size ()
 

Public Attributes

unsigned int divs_
 
double dx_
 
double max_
 
double min_
 

Detailed Description

Definition at line 42 of file HSolveUtils.h.

Constructor & Destructor Documentation

HSolveUtils::Grid::Grid ( double  min,
double  max,
unsigned int  divs 
)
inline

Definition at line 45 of file HSolveUtils.h.

References divs_, dx_, max_, and min_.

46  :
47  min_( min ),
48  max_( max ),
49  divs_( divs )
50  {
51  dx_ = ( max_ - min_ ) / divs_;
52  }
unsigned int divs_
Definition: HSolveUtils.h:67

Member Function Documentation

double HSolveUtils::Grid::entry ( unsigned int  i)

Definition at line 198 of file HSolveUtils.cpp.

Referenced by HSolveUtils::rates().

199 {
200  assert( i <= divs_ + 1 );
201 
202  return ( min_ + dx_ * i );
203 }
unsigned int divs_
Definition: HSolveUtils.h:67

+ Here is the caller graph for this function:

bool HSolveUtils::Grid::operator== ( const Grid other)
inline

Definition at line 57 of file HSolveUtils.h.

References divs_, max_, and min_.

58  {
59  return
60  min_ == other.min_ &&
61  max_ == other.max_ &&
62  divs_ == other.divs_;
63  }
unsigned int divs_
Definition: HSolveUtils.h:67
unsigned int HSolveUtils::Grid::size ( )

Definition at line 193 of file HSolveUtils.cpp.

References divs_.

Referenced by HSolveActive::createLookupTables(), and HSolveUtils::rates().

194 {
195  return divs_ + 1;
196 }
unsigned int divs_
Definition: HSolveUtils.h:67

+ Here is the caller graph for this function:

Member Data Documentation

unsigned int HSolveUtils::Grid::divs_

Definition at line 67 of file HSolveUtils.h.

Referenced by Grid(), operator==(), and size().

double HSolveUtils::Grid::dx_

Definition at line 68 of file HSolveUtils.h.

Referenced by Grid().

double HSolveUtils::Grid::max_

Definition at line 66 of file HSolveUtils.h.

Referenced by Grid(), and operator==().

double HSolveUtils::Grid::min_

Definition at line 65 of file HSolveUtils.h.

Referenced by Grid(), and operator==().


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