6#include <amdis/AMDiS.hpp>
7#include <amdis/LocalOperators.hpp>
8#include <amdis/ProblemStat.hpp>
16int main(
int argc,
char** argv)
22 using Grid = Dune::YaspGrid<GRIDDIM>;
27 using namespace Dune::Functions::BasisFactory;
28 ProblemStat prob(
"ellipt", *grid, power<2>(lagrange<2>()));
29 prob.initialize(INIT_ALL);
37 prob.addMatrixOperator(opL, 1, 1);
41 prob.addMatrixOperator(opM, 0, 0);
43 prob.addMatrixOperator(opM2, 0, 1);
47 prob.addVectorOperator(opForce, 1);
53 auto predicate = [](
auto const& x){
return x[0] < 1.e-8 || x[1] < 1.e-8; };
54 auto dbcValues = [](
auto const& x){
return 0.0; };
55 prob.addDirichletBC(predicate, 1, 1, dbcValues);
59 prob.buildAfterAdapt(adaptInfo,
Flag(0));
60 prob.solve(adaptInfo);
61 prob.writeFiles(adaptInfo);
Holds adapt parameters and infos about the problem.
Definition: AdaptInfo.hpp:26
Establishes an environment for sequential and parallel AMDiS programs.
Definition: Environment.hpp:20
The Flag class encapsulates flags which represents simple information. Used e.g. while mesh traversal...
Definition: Flag.hpp:14
Definition: ProblemStat.hpp:55
auto makeOperator(Tag const &tag, Expr &&expr, int gridFctDeg=-1)
Definition: GridFunctionOperator.hpp:235
A creator class for dune grids.
Definition: MeshCreator.hpp:52
static std::shared_ptr< Grid > create(std::string name)
Static create mthod. See create()
Definition: MeshCreator.hpp:70
Definition: SecondOrderGradTestGradTrial.hpp:20
Definition: ZeroOrderTestTrial.hpp:18
Definition: ZeroOrderTest.hpp:17