Rheolef  7.2
an efficient C++ finite element environment
 
Loading...
Searching...
No Matches
dirichlet_hdg_average.icc
Go to the documentation of this file.
1
26 size_t k = uh.get_space().degree();
27 size_t d = uh.get_geo().dimension();
28 space Zh (uh.get_geo(), "P0");
29 trial zeta(Zh); test xi(Zh);
30 integrate_option iopt;
31 iopt.invert = true;
32 if (k >= 1) {
33 form inv_mz = integrate (zeta*xi, iopt);
34 iopt.set_order(2*k+2);
35 field lh = integrate (uh*xi, iopt);
36 return inv_mz*lh;
37 }
38 const space& Mh = lambda_h.get_space();
39 trial lambda (Mh); test mu (Mh);
40 form inv_ms = integrate("sides", lambda*mu, iopt);
41 field inv_sh = inv_ms*field(Mh,1);
42 field lh = integrate (on_local_sides(inv_sh*lambda_h*xi));
43 return (1./(d+1))*lh;
44}
field lh(Float epsilon, Float t, const test &v)
see the field page for the full documentation
see the form 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
field dirichlet_hdg_average(field uh, field lambda_h)