The transport benchmark by the discontinuous Galerkin method.
The transport benchmark by the discontinuous Galerkin method
int main(
int argc,
char**argv) {
space Xh (omega, argv[2]);
Float alpha = (argc > 3) ? atof(argv[3]) : 1;
+ integrate (
"boundary", max(0., -dot(
u,normal()))*
phi*
psi)
+ integrate ("internal_sides",
- dot(
u,normal())*jump(
phi)*average(
psi)
+ 0.5*alpha*abs(dot(
u,normal()))*jump(
phi)*jump(
psi));
field lh = integrate (
"boundary", max(0, -dot(
u,normal()))*
psi);
}
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 point page for the full documentation
see the problem page for the full documentation
see the catchmark 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