The Helmholtz problem with Neumann boundary conditions by the discontinuous Galerkin method.
The Helmholtz problem with Neumann boundary conditions by the discontinuous Galerkin method
int main(
int argc,
char**argv) {
space Xh (omega, argv[2]);
size_t d = omega.dimension();
size_t k = Xh.degree();
form a = integrate (
u*v + dot(grad_h(
u),grad_h(v)))
+ integrate ("internal_sides",
beta*penalty()*jump(
u)*jump(v)
- jump(
u)*average(dot(grad_h(v),normal()))
- jump(v)*average(dot(grad_h(
u),normal())));
field lh = integrate (
f(
d)*v) + integrate (
"boundary",
g(
d)*v);
dout << uh;
}
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 geo page for the full documentation
see the problem page for the full documentation
see the environment 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
This file is part of Rheolef.
rheolef - reference manual
The sinus product function – right-hand-side and boundary condition for the Helmholtz problem.