Rheolef  7.2
an efficient C++ finite element environment
elasticity_solve.icc
Go to the documentation of this file.
26  size_t d = Xh.get_geo().dimension();
27  point f (0,0,0);
28  f[d-1] = -1;
29  trial u (Xh); test v (Xh);
30  field lh = integrate (dot(f,v));
31  form a = integrate (lambda*div(u)*div(v) + 2*ddot(D(u),D(v)));
32  field uh (Xh, 0);
33  problem p (a);
34  p.solve (lh, uh);
35  return uh;
36 }
field lh(Float epsilon, Float t, const test &v)
see the Float page for the full documentation
see the field page for the full documentation
see the form page for the full documentation
see the point page for the full documentation
see the problem page for the full documentation
see the space page for the full documentation
see the test page for the full documentation
see the test page for the full documentation
point u(const point &x)
field elasticity_solve(const space &Xh, Float lambda)
rheolef::details::is_vec dot
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
std::enable_if< details::has_field_rdof_interface< Expr >::value,details::field_expr_v2_nonlinear_terminal_field< typename Expr::scalar_type,typename Expr::memory_type,details::differentiate_option::gradient >>::type D(const Expr &expr)
D(uh): see the expression page for the full documentation.
std::enable_if< details::has_field_rdof_interface< Expr >::value,details::field_expr_v2_nonlinear_terminal_field< typename Expr::scalar_type,typename Expr::memory_type,details::differentiate_option::divergence >>::type div(const Expr &expr)
div(uh): see the expression page for the full documentation
T ddot(const tensor_basic< T > &a, const tensor_basic< T > &b)
ddot(x,y): see the expression page for the full documentation
Definition: tensor.cc:278
Definition: cavity_dg.h:29
Definition: sphere.icc:25
Definition: leveque.h:25