3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Functions
freeflow/navierstokes/sincos/main.cc File Reference

Test for the instationary staggered grid Navier-Stokes model with analytical solution. More...

#include <config.h>
#include <ctime>
#include <iostream>
#include <type_traits>
#include <tuple>
#include <dune/common/parallel/mpihelper.hh>
#include <dune/common/timer.hh>
#include <dune/grid/io/file/dgfparser/dgfexception.hh>
#include <dune/grid/io/file/vtk.hh>
#include <dumux/assembly/staggeredfvassembler.hh>
#include <dumux/assembly/diffmethod.hh>
#include <dumux/common/dumuxmessage.hh>
#include <dumux/common/parameters.hh>
#include <dumux/common/properties.hh>
#include <dumux/common/valgrind.hh>
#include <dumux/io/grid/gridmanager.hh>
#include <dumux/io/staggeredvtkoutputmodule.hh>
#include <dumux/linear/seqsolverbackend.hh>
#include <dumux/nonlinear/newtonsolver.hh>
#include "problem.hh"

Description

Test for the instationary staggered grid Navier-Stokes model with analytical solution.

Functions

template<class Scalar , class Problem >
auto createAnalyticalSolution (const Scalar time, const Problem &problem)
 Creates analytical solution. Returns a tuple of the analytical solution for the pressure, the velocity and the velocity at the faces. More...
 
template<class Problem >
auto createSource (const Problem &problem)
 
template<class Problem , class SolutionVector , class GridGeometry >
void printL2Error (const Problem &problem, const SolutionVector &x, const GridGeometry &gridGeometry)
 
int main (int argc, char **argv)
 

Function Documentation

◆ createAnalyticalSolution()

template<class Scalar , class Problem >
auto createAnalyticalSolution ( const Scalar  time,
const Problem &  problem 
)

Creates analytical solution. Returns a tuple of the analytical solution for the pressure, the velocity and the velocity at the faces.

Parameters
timethe time at which to evaluate the analytical solution
problemthe problem for which to evaluate the analytical solution

◆ createSource()

template<class Problem >
auto createSource ( const Problem &  problem)

◆ main()

int main ( int  argc,
char **  argv 
)

◆ printL2Error()

template<class Problem , class SolutionVector , class GridGeometry >
void printL2Error ( const Problem &  problem,
const SolutionVector &  x,
const GridGeometry &  gridGeometry 
)
Include dependency graph for freeflow/navierstokes/sincos/main.cc: