numerics 0.1.0
Loading...
Searching...
No Matches
num::Grid2D Struct Reference

#include <grid2d.hpp>

Public Member Functions

double x (int i) const
 
double y (int j) const
 
int flat (int i, int j) const
 
int size () const
 

Public Attributes

int N
 interior nodes per side
 
double h
 grid spacing = 1/(N+1)
 

Detailed Description

Definition at line 13 of file grid2d.hpp.

Member Function Documentation

◆ flat()

int num::Grid2D::flat ( int  i,
int  j 
) const
inline

Definition at line 19 of file grid2d.hpp.

References N.

◆ size()

int num::Grid2D::size ( ) const
inline

Definition at line 20 of file grid2d.hpp.

References N.

◆ x()

double num::Grid2D::x ( int  i) const
inline

Definition at line 17 of file grid2d.hpp.

References h.

Referenced by num::ScalarField2D::fill().

◆ y()

double num::Grid2D::y ( int  j) const
inline

Definition at line 18 of file grid2d.hpp.

References h.

Referenced by num::ScalarField2D::fill().

Member Data Documentation

◆ h

double num::Grid2D::h

grid spacing = 1/(N+1)

Definition at line 15 of file grid2d.hpp.

Referenced by num::ScalarField2D::h(), x(), and y().

◆ N


The documentation for this struct was generated from the following file: