MADNESS 0.10.1
navstokes_cosines.cc File Reference

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

Include dependency graph for navstokes_cosines.cc:

Classes

struct  FunctorInterfaceWrapper

Macros

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

Typedefs

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

Functions

template<typename T, int NDIM>
void adv (const myfun &uu, myfun &advu)
template<typename T, int NDIM>
static Function< T, NDIM > diff (const Function< T, NDIM > &f, int axis)
functionT div (const functT &uint)
static double fxexact (const coordT3d &r)
static double fyexact (const coordT3d &r)
static double fzexact (const coordT3d &r)
static double init_zero (const coordT3d &r)
functionT lap (const functionT &uint)
int main (int argc, char **argv)
template<typename T, int NDIM>
myfun operator- (const myfun &l, const myfun &r)
static double pexact (const coordT3d &r)
void testNavierStokes (int argc, char **argv)
static double uxexact (const coordT3d &r)
static double uyexact (const coordT3d &r)
static double uzexact (const coordT3d &r)

Variables

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

Detailed Description

Example Solving the Navier-Stokes equations.

Macro Definition Documentation

◆ myfun

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

Referenced by adv(), and operator-().

Typedef Documentation

◆ coordT

typedef Vector<double, 3> coordT

◆ coordT1d

typedef Vector<double, 1> coordT1d

◆ coordT3d

typedef Vector<double, 3> coordT3d

◆ functionT

typedef Function<double, 3> functionT

◆ functT

typedef std::vector<functionT> functT

Function Documentation

◆ adv()

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

References diff(), and myfun.

Referenced by testNavierStokes().

◆ diff()

◆ div()

functionT div ( const functT & uint)
inline

References diff().

Referenced by testNavierStokes().

◆ fxexact()

double fxexact ( const coordT3d & r)
static

References cc, mu, mytime, and pow().

Referenced by testNavierStokes().

◆ fyexact()

double fyexact ( const coordT3d & r)
static

References cc, mu, mytime, and pow().

Referenced by testNavierStokes().

◆ fzexact()

double fzexact ( const coordT3d & r)
static

References cc, mu, mytime, and pow().

Referenced by testNavierStokes().

◆ init_zero()

double init_zero ( const coordT3d & r)
static

◆ lap()

functionT lap ( const functionT & uint)
inline

References diff().

Referenced by testNavierStokes().

◆ main()

int main ( int argc,
char ** argv )

References testNavierStokes().

◆ operator-()

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

References myfun, pworld, and madness::sub().

◆ pexact()

double pexact ( const coordT3d & r)
static

References cc, and mytime.

◆ testNavierStokes()

◆ uxexact()

double uxexact ( const coordT3d & r)
static

References cc, and mytime.

Referenced by testNavierStokes().

◆ uyexact()

double uyexact ( const coordT3d & r)
static

References cc, and mytime.

Referenced by testNavierStokes().

◆ uzexact()

double uzexact ( const coordT3d & r)
static

References cc, and mytime.

Referenced by testNavierStokes().

Variable Documentation

◆ cc

◆ deltaT

const double deltaT = pi*0.0001

Referenced by testNavierStokes().

◆ k

const int k = 10

◆ L

const double L = 2*pi

◆ mu

const double mu = 1

Referenced by madness::GFit< T, NDIM >::GFit(), madness::FunctionCommonData< T, NDIM >::_init_quadrature(), apply_BSH(), apply_bsh(), apply_BSH_new(), madness::CCPotentials::apply_KffK(), madness::ExchangeCommutator::apply_KffK_lowrank_three_range(), bind_operators(), madness::GFit< T, NDIM >::bsh_fit(), madness::GFit< T, NDIM >::bsh_fit_ndim(), madness::GFit< T, NDIM >::bsh_spherical_moments(), madness::GFit< T, NDIM >::BSHFit(), madness::BSHOperator(), madness::BSHOperator3D(), madness::BSHOperatorPtr(), madness::BSHOperatorPtr3D(), madness::DiagnosticMatrix< T, NDIM >::build_Gab_bra(), madness::ExchangeCommutator::compute_lrf_exchange_operator(), compute_reduced_mass(), madness::MolecularOptimizer::compute_reduced_mass(), madness::SCF::dipole(), errsq(), madness::F2GOperator(), madness::F2GOperatorPtr(), madness::FGOperator(), madness::FGOperatorPtr(), fxexact(), fyexact(), fzexact(), madness::GaussOperator(), madness::GaussOperatorPtr(), gen_ce(), madness::GradBSHOperator(), GradBSHOperator_Joel(), madness::GradCoulombOperator(), gradPbarA(), madness::GradSlaterOperator(), madness::population::iao_population(), madness::TwoElectronInterface< T, NDIM >::initialize(), madness::Localizer::localize_boys(), madness::Localizer::localize_cholesky(), madness::Localizer::localize_new(), main(), main(), madness::TwoElectronInterface< T, NDIM >::make_coeff(), make_grad_operator(), makedata(), nuclear_potential(), madness::LRFunctorF12< T, NDIM, LDIM >::MacroTaskLRFInner::operator()(), opposing_field_potential(), optimize_coeffs(), madness::PeriodicBSHOp(), madness::PeriodicBSHOperator3D(), madness::PeriodicBSHOperatorPtr3D(), madness::PeriodicBSHOpPtr(), madness::FunctionImpl< T, NDIM >::phi_for_mul(), madness::PM_q(), madness::population::projection_population(), pw_rhs(), madness::population::PopulationAnalysis::run(), madness::SlaterF12Operator(), madness::SlaterF12OperatorPtr(), madness::SlaterF12OperatorPtr_ND(), madness::SlaterF12sqOperator(), madness::SlaterF12sqOperatorPtr(), madness::SlaterOperator(), madness::SlaterOperatorPtr(), madness::SlaterOperatorPtr_ND(), sympgrad6(), test(), test_bsh(), test_combined_operators(), test_coulomb_gfit_discard_large_alpha(), test_gence(), test_periodic_bsh(), test_recursive_apply(), testbsh(), and testNavierStokes().

◆ mytime

double mytime = 0.0

◆ N

const double N = 8.0

◆ Nts

const int Nts = L/deltaT+10

Referenced by testNavierStokes().

◆ pi

const double pi =madness::constants::pi

◆ pthresh

const double pthresh = 1.e-9

Referenced by testNavierStokes().

◆ pthresh1

const double pthresh1 = 1e-10

Referenced by testNavierStokes().

◆ pworld

World* pworld

Referenced by operator-(), and testNavierStokes().

◆ uthresh

const double uthresh = pthresh

◆ uthresh1

const double uthresh1 = pthresh1

Referenced by testNavierStokes().