Rheolef  7.1
an efficient C++ finite element environment
burgers_diffusion_operators.icc
Go to the documentation of this file.
1 field lh (Float epsilon, Float t, const test& v) {
26 #ifdef NEUMANN
27  return field (v.get_vf_space(), 0);
28 #else // NEUMANN
29  size_t d = v.get_vf_space().get_geo().dimension();
30  size_t k = v.get_vf_space().degree();
31  Float beta = (k+1)*(k+d)/Float(d);
32  return epsilon*integrate ("boundary",
33  beta*penalty()*g(epsilon,t)*v
34  - g(epsilon,t)*dot(grad_h(v),normal()));
35 #endif // NEUMANN
36 }
37 field gh (Float epsilon, Float t, const field& uh, const test& v) {
38  return - integrate (dot(compose(f,uh),grad_h(v)))
39  + integrate ("internal_sides",
40  compose (phi, normal(), inner(uh), outer(uh))*jump(v))
41  + integrate ("boundary",
42  compose (phi, normal(), uh, g(epsilon,t))*v);
43 }
g
u_exact g
Definition: burgers_diffusion_exact.h:33
gh
field gh(Float epsilon, Float t, const field &uh, const test &v)
Definition: burgers_diffusion_operators.icc:37
field
see the field page for the full documentation
rheolef::normal
details::field_expr_v2_nonlinear_terminal_function< details::normal_pseudo_function< Float > > normal()
normal: see the expression page for the full documentation
Definition: field_expr_terminal.h:439
phi
Definition: phi.h:25
rheolef::integrate
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:202
rheolef::details::compose
class rheolef::details::field_expr_v2_nonlinear_node_unary compose
lh
field lh(Float epsilon, Float t, const test &v)
Definition: burgers_diffusion_operators.icc:25
test
see the test page for the full documentation
Float
see the Float page for the full documentation
mkgeo_ball.d
d
Definition: mkgeo_ball.sh:154
rheolef::penalty
details::field_expr_v2_nonlinear_terminal_function< details::penalty_pseudo_function< Float > > penalty()
penalty(): see the expression page for the full documentation
Definition: field_expr_terminal.h:626
rheolef::grad_h
std::enable_if< details::is_field_convertible< Expr >::value,details::field_expr_v2_nonlinear_terminal_field< typename Expr::scalar_type,typename Expr::memory_type,details::differentiate_option::gradient >>::type grad_h(const Expr &expr)
grad_h(uh): see the expression page for the full documentation
Definition: field_expr_terminal.h:949
epsilon
Float epsilon
Definition: transmission_error.cc:25
f
Definition: cavity_dg.h:29
rheolef::details::dot
rheolef::details::is_vec dot
rk::beta
Float beta[][pmax+1]
Definition: runge_kutta_semiimplicit.icc:60