Rheolef  7.2
an efficient C++ finite element environment
 
Loading...
Searching...
No Matches
p_laplacian1.icc
Go to the documentation of this file.
1
25#include "eta.h"
26#include "nu.h"
27#include "dirichlet.icc"
28p_laplacian::p_laplacian (Float p1, const geo& omega, string approx)
29 : p(p1), Xh(), lh(), m(), pm(), a1(), pa1() {
30 Xh = space (omega, approx);
31 Xh.block ("boundary");
32 trial u (Xh); test v (Xh);
33 lh = integrate (v);
34 m = integrate (u*v);
35 pm = problem (m);
36}
38 field uh (Xh, 0);
39 dirichlet (lh, uh);
40 return uh;
41}
42field p_laplacian::residue (const field& uh) const {
43 trial u (Xh); test v (Xh);
44 form a = integrate (compose(eta(p), norm2(grad(uh)))*dot(grad(u),grad(v)));
45 field mrh = a*uh - lh;
46 mrh.set_b() = 0;
47 return mrh;
48}
49void p_laplacian::update_derivative (const field& uh) const {
50 size_t d = Xh.get_geo().dimension();
51 trial u (Xh); test v (Xh);
52 a1 = integrate (dot(compose(nu<eta>(eta(p),d), grad(uh))*grad(u),grad(v)));
53 pa1 = problem (a1);
54}
56 field delta_uh (Xh,0);
57 pa1.solve (rh, delta_uh);
58 return delta_uh;
59}
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 form page for the full documentation
see the geo page for the full documentation
field derivative_solve(const field &mrh) const
problem pa1
Definition p_laplacian.h:43
p_laplacian(Float p, const geo &omega, string approx)
field initial() const
void update_derivative(const field &uh) const
field residue(const field &uh) const
problem pm
Definition p_laplacian.h:41
see the problem 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 with homogeneous Dirichlet boundary condition – solver function.
void dirichlet(const field &lh, field &uh)
Definition dirichlet.icc:25
The p-Laplacian problem – the eta function.
The p-Laplacian problem – the nu function.
Definition eta.h:25
Definition nu.h:26
Definition sphere.icc:25
Definition leveque.h:25