The Mossolov problem by the augmented Lagrangian method – solver class body.
The Mossolov problem by the augmented Lagrangian method – solver class body
derr << "# k residue" << endl;
for (size_t k = 0; true; ++k) {
field gamma_h = lazy_interpolate(
Th, c*(sigma_h + r*grad_uh));
field delta_sigma_h = r*(grad_uh - gamma_h);
sigma_h += delta_sigma_h;
derr << k <<
" " <<
residue << endl;
derr << endl << endl;
}
field rhs = (1/r)*(
lh - integrate(dot(sigma_h - r*gamma_h, grad(v))));
}
}
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 test page for the full documentation
field residue(Float p, const field &uh)
int solve(field &sigma_h, field &uh) const
The projection for yield-stress rheologies – vector-valued case for the Mossolov problem.