Loading...
Searching...
No Matches
burgers_diffusion_operators.icc
Go to the documentation of this file.
field lh (Float epsilon, Float t, const test& v) {
#ifdef NEUMANN
return field (v.get_vf_space(), 0);
#else // NEUMANN
size_t d = v.get_vf_space().get_geo().dimension();
size_t k = v.get_vf_space().degree();
Float beta = (k+1)*(k+d)/Float(d);
return epsilon*integrate ("boundary",
beta*penalty()*g(epsilon,t)*v
- g(epsilon,t)*dot(grad_h(v),normal()));
#endif // NEUMANN
}
field gh (Float epsilon, Float t, const field& uh, const test& v) {
return - integrate (dot(compose(f,uh),grad_h(v)))
+ integrate ("internal_sides",
compose (phi, normal(), inner(uh), outer(uh))*jump(v))
+ integrate ("boundary",
compose (phi, normal(), uh, g(epsilon,t))*v);
}
lh
field lh(Float epsilon, Float t, const test &v)
Definition burgers_diffusion_operators.icc:25
gh
field gh(Float epsilon, Float t, const field &uh, const test &v)
Definition burgers_diffusion_operators.icc:37
Float
see the Float page for the full documentation
field
see the field page for the full documentation
test
see the test page for the full documentation
d
size_t d
Definition neumann-laplace-lambda.cc:28
f
Definition cavity_dg.h:29
g
Definition cavity_dg.h:25
phi
Definition phi.h:25
epsilon
Float epsilon
Definition transmission_error.cc:25