Rheolef  7.2
an efficient C++ finite element environment
neumann.cc
Go to the documentation of this file.
1
21#include "rheolef.h"
22using namespace rheolef;
23using namespace std;
25int main(int argc, char**argv) {
26 environment rheolef(argc, argv);
27 geo omega (argv[1]);
28 size_t d = omega.dimension();
29 space Xh (omega, argv[2]);
30 trial u (Xh); test v (Xh);
31 form a = integrate (u*v + dot(grad(u),grad(v)));
32 field lh = integrate (f(d)*v);
33 field uh (Xh);
34 problem p (a);
35 p.solve (lh, uh);
36 dout << uh;
37}
field lh(Float epsilon, Float t, const test &v)
see the field page for the full documentation
see the form page for the full documentation
see the geo page for the full documentation
see the problem page for the full documentation
see the environment page for the full documentation
Definition: environment.h:121
see the space page for the full documentation
see the test page for the full documentation
see the test page for the full documentation
The cosinus product function – right-hand-side and boundary condition for the Helmholz problem.
point u(const point &x)
rheolef::details::is_vec dot
This file is part of Rheolef.
std::enable_if< details::has_field_rdof_interface< Expr >::value, details::field_expr_v2_nonlinear_terminal_field< typenameExpr::scalar_type, typenameExpr::memory_type, details::differentiate_option::gradient > >::type grad(const Expr &expr)
grad(uh): see the expression page for the full documentation
std::enable_if< details::is_field_expr_v2_nonlinear_arg< Expr >::value &&!is_undeterminated< Result >::value, Result >::type integrate(const geo_basic< T, M > &omega, const Expr &expr, const integrate_option &iopt, Result dummy=Result())
see the integrate page for the full documentation
Definition: integrate.h:211
STL namespace.
int main(int argc, char **argv)
Definition: neumann.cc:25
rheolef - reference manual
Definition: sphere.icc:25
Definition: leveque.h:25