The Poisson problem by the hybrid discontinuous Galerkin method – post-treatment.
The Poisson problem by the hybrid discontinuous Galerkin method – post-treatment
int main(
int argc,
char**argv) {
field uh, lambda_h, sigma_h;
const geo& omega = uh.get_geo();
size_t d = omega.dimension();
size_t k = uh.get_space().degree();
space Xhs (omega,
"P"+to_string(k+1)+
"d"),
Zhs (omega, "P0"),
Yhs = Xhs*Zhs;
auto us = x[0], zeta = x[1];
auto vs = y[0], xi = y[1];
form inv_ahs = integrate(dot(grad_h(us),grad_h(vs)) + zeta*vs + xi*us, iopt);
field lhs = integrate (
f(
d)*vs + xi*bar_uh
+ on_local_sides(dot(sigma_h,normal())*vs));
}
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 catchmark page for the full documentation
see the environment page for the full documentation
see the integrate_option 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
The Poisson problem by the hybrid discontinuous Galerkin method – local averaging function.
field dirichlet_hdg_average(field uh, field lambda_h)
This file is part of Rheolef.
rheolef - reference manual
The sinus product function – right-hand-side and boundary condition for the Poisson problem.