Rheolef  7.2
an efficient C++ finite element environment
 
Loading...
Searching...
No Matches
yield_slip1.icc
Go to the documentation of this file.
1
25#include "d_projection_dx.h"
27 const geo& omega, const geo& boundary1, string approx)
28 : S(S1), n(n1), Cf(Cf1), r(r1), boundary(boundary1), Xh(), Wh(), Yh(),
29 lh(), mkh(), m(), mb(), a(), b(), c1(), pmb(), pa(), pA()
30{
31 Xh = space (omega, approx);
32 Wh = space (boundary, approx);
33 Yh = Xh*Wh;
34 trial u (Xh), lambda(Wh);
35 test v (Xh), mu(Wh);
36 m = integrate(u*v);
37 mb = integrate(lambda*mu);
38 a = integrate(dot(grad(u),grad(v))) - r*integrate(boundary, u*v);
39 b = integrate(boundary, u*mu);
40 lh = integrate(v);
41 pmb = problem (mb);
42 pa = problem (a);
43 field vh(Xh);
44 pa.solve (lh, vh);
45 mkh = b*vh;
46}
47field yield_slip::residue (const field& beta_h) const {
48 field vh (Xh);
49 field rhs = b.trans_mult (beta_h);
50 pa.solve (rhs, vh);
51 test mu (Wh);
52 field c0h = integrate(mu*compose(projection(S,n,Cf,r), beta_h));
53 field mrh = b*vh + c0h - mkh;
54 return mrh;
55}
56void yield_slip::update_derivative (const field& beta_h) const {
57 trial lambda (Wh); test mu (Wh);
58 c1 = integrate (lambda*mu*compose(d_projection_dx(S,n,Cf,r), beta_h));
59 form A = { { a, trans(b) },
60 { b, -c1 } };
61 A.set_symmetry (c1.is_symmetric());
62 pA = problem(A);
63}
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
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
problem pa
Definition yield_slip.h:46
problem pA
Definition yield_slip.h:47
field mkh
Definition yield_slip.h:43
problem pmb
Definition yield_slip.h:46
void update_derivative(const field &beta_h) const
yield_slip(Float S, Float n, Float Cf, Float r, const geo &omega, const geo &boundary, string approx="P1")
field residue(const field &beta_h) const
The projection for yield-stress rheology – its derivative.
Definition leveque.h:25