Rheolef  7.2
an efficient C++ finite element environment
 
Loading...
Searching...
No Matches
yield_slip_augmented_lagrangian.cc

The yield slip problem by the augmented Lagrangian method.

The yield slip problem by the augmented Lagrangian method

#include "rheolef.h"
using namespace std;
using namespace rheolef;
int main(int argc, char**argv) {
environment rheolef (argc,argv);
dlog << noverbose;
geo omega (argv[1]);
string approx = (argc > 2) ? argv[2] : "P1";
Float S = (argc > 3) ? atof(argv[3]) : 0.6;
Float n = (argc > 4) ? atof(argv[4]) : 1;
Float Cf = (argc > 5) ? atof(argv[5]) : 1;
Float r = (argc > 6) ? atof(argv[6]) : 1;
Float tol = 1e3*numeric_limits<Float>::epsilon();
size_t max_iter = 100000;
space Xh (omega, approx);
test v (Xh);
field lh = integrate(v);
field uh = poisson_robin (Cf, omega["boundary"], lh);
space Wh (omega["boundary"], Xh.get_approx());
field lambda_h = Cf*uh["boundary"];
int status = yield_slip_augmented_lagrangian(S, n, Cf, omega["boundary"],
lh, lambda_h, uh, tol, max_iter, r);
dout << setprecision(numeric_limits<Float>::digits10)
<< catchmark("S") << S << endl
<< catchmark("n") << n << endl
<< catchmark("Cf") << Cf << endl
<< catchmark("r") << r << endl
<< catchmark("u") << uh
<< catchmark("lambda") << lambda_h;
return status;
}
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 geo page for the full documentation
see the catchmark page for the full documentation
Definition catchmark.h:67
see the environment page for the full documentation
see the space page for the full documentation
see the test page for the full documentation
int main()
Definition field2bb.cc:58
This file is part of Rheolef.
STL namespace.
The Poisson problem with Robin boundary condition – solver function.
field poisson_robin(Float Cf, const geo &boundary, const field &lh)
rheolef - reference manual
The yield slip problem by the augmented Lagrangian method – solver function.
int yield_slip_augmented_lagrangian(Float S, Float n, Float Cf, geo boundary, field lh, field &lambda_h, field &uh, Float tol, size_t max_iter, Float r)