MADNESS 0.10.1
heat2.cc File Reference

Example Green function for the 3D heat equation with a linear term. More...

Include dependency graph for heat2.cc:

Classes

class  uexact
struct  unaryexp< T, NDIM >

Functions

int main (int argc, char **argv)
static double uinitial (const coord_3d &r)
static double Vp (const coord_3d &r)

Variables

static const double alpha = 1.9
static const double c = 2.0
static const long k = 8
static const double L = 20
static const double thresh = 1e-6
static const double tstep = 0.1
static const double VVV = 0.2

Detailed Description

Example Green function for the 3D heat equation with a linear term.

Function Documentation

◆ main()

◆ uinitial()

double uinitial ( const coord_3d & r)
static

References alpha, madness::constants::pi, and pow().

◆ Vp()

double Vp ( const coord_3d & r)
static

References VVV.

Referenced by main().

Variable Documentation

◆ alpha

const double alpha = 1.9
static

◆ c

const double c = 2.0
static

◆ k

const long k = 8
static

◆ L

const double L = 20
static

◆ thresh

const double thresh = 1e-6
static

◆ tstep

const double tstep = 0.1
static

◆ VVV

const double VVV = 0.2
static

Referenced by uexact::operator()(), and Vp().