MADNESS  version 0.9
Macros | Typedefs | Functions | Variables
navstokes_cosines.cc File Reference

Example Solving the Navier-Stokes equations. More...

#include <madness/mra/vmra.h>
#include <madness/constants.h>
Include dependency graph for navstokes_cosines.cc:

Macros

#define myfun   std::vector< Function<T,NDIM> >
 

Typedefs

typedef Vector< double, 3 > coordT3d
 
typedef Vector< double, 3 > coordT
 
typedef Vector< double, 1 > coordT1d
 
typedef Function< double, 3 > functionT
 
typedef std::vector< functionTfunctT
 

Functions

functionT div (const functT &uint)
 
functionT lap (const functionT &uint)
 
template<typename T , int NDIM>
void adv (const myfun &uu, myfun &advu)
 
template<typename T , int NDIM>
myfun operator- (const myfun &l, const myfun &r)
 
void testNavierStokes (int argc, char **argv)
 
int main (int argc, char **argv)
 

Variables

const double pi =madness::constants::pi
 
const double L = 2*pi
 
const double N = 8.0
 
const double mu = 1
 
const double deltaT = pi*0.0001
 
const int Nts = L/deltaT+10
 
const int k = 10
 
const double pthresh = 1.e-9
 
const double pthresh1 = 1e-10
 
const double uthresh = pthresh
 
const double uthresh1 = pthresh1
 
double mytime = 0.0
 
const double cc = 0
 
Worldpworld
 

Detailed Description

Example Solving the Navier-Stokes equations.

Macro Definition Documentation

#define myfun   std::vector< Function<T,NDIM> >

Typedef Documentation

typedef Vector<double, 3> coordT
typedef Vector<double, 1> coordT1d
typedef Vector<double, 3> coordT3d
typedef Function<double, 3> functionT
typedef std::vector<functionT> functT

Function Documentation

template<typename T , int NDIM>
void adv ( const myfun uu,
myfun advu 
)

Referenced by testNavierStokes().

functionT div ( const functT uint)
inline

Referenced by testNavierStokes().

functionT lap ( const functionT uint)
inline

Referenced by testNavierStokes().

int main ( int  argc,
char **  argv 
)

References testNavierStokes().

template<typename T , int NDIM>
myfun operator- ( const myfun l,
const myfun r 
)
inline

References madness::sub().

void testNavierStokes ( int  argc,
char **  argv 
)

Variable Documentation

const double cc = 0
const double deltaT = pi*0.0001

Referenced by testNavierStokes().

const int k = 10

Referenced by testNavierStokes().

const double L = 2*pi

Referenced by testNavierStokes().

const double mu = 1
double mytime = 0.0

Referenced by testNavierStokes().

const double N = 8.0
const int Nts = L/deltaT+10

Referenced by testNavierStokes().

const double pi =madness::constants::pi
const double pthresh = 1.e-9

Referenced by testNavierStokes().

const double pthresh1 = 1e-10

Referenced by testNavierStokes().

World* pworld
const double uthresh = pthresh
const double uthresh1 = pthresh1

Referenced by testNavierStokes().