6#include <amdis/AMDiS.hpp>
7#include <amdis/AdaptInstationary.hpp>
8#include <amdis/LocalOperators.hpp>
9#include <amdis/ProblemInstat.hpp>
10#include <amdis/ProblemStat.hpp>
11#include <amdis/GridFunctions.hpp>
27int main(
int argc,
char** argv)
33 HeatProblem prob(
"heat");
34 prob.initialize(INIT_ALL);
36 HeatProblemInstat probInstat(
"heat", prob);
37 probInstat.initialize(INIT_UH_OLD);
43 auto invTau = std::ref(probInstat.invTau());
47 prob.addMatrixOperator(opTimeLhs);
51 prob.addMatrixOperator(opL);
55 invokeAtQP([invTau](
double u) {
return u * invTau.get(); }, prob.solution()), 2);
56 prob.addVectorOperator(opTimeRhs);
60 prob.addVectorOperator(opForce);
66 auto predicate = [](
auto const& p){
return p[0] < 1.e-8 || p[1] < 1.e-8; };
67 auto dbcValues = [](
auto const& p){
return 0.0; };
68 prob.addDirichletBC(predicate, dbcValues);
Holds adapt parameters and infos about the problem.
Definition: AdaptInfo.hpp:26
AdaptInstationary implements the adaptive procedure for time dependent problems (see ProblemInstat)....
Definition: AdaptInstationary.hpp:24
Establishes an environment for sequential and parallel AMDiS programs.
Definition: Environment.hpp:20
Standard implementation of ProblemTimeInterface for a time dependent problems.
Definition: ProblemInstat.hpp:26
Definition: ProblemStat.hpp:55
auto invokeAtQP(Functor const &f, PreGridFcts &&... gridFcts)
Generator function for ComposerGridFunction.
Definition: ComposerGridFunction.hpp:305
auto makeOperator(Tag const &tag, Expr &&expr, int gridFctDeg=-1)
Definition: GridFunctionOperator.hpp:235
Specialization of LagrangeBasis for Grid type Dune::YaspGrid for a given dimension.
Definition: ProblemStatTraits.hpp:118
Definition: SecondOrderGradTestGradTrial.hpp:20
Definition: ZeroOrderTestTrial.hpp:18
Definition: ZeroOrderTest.hpp:17