an efficient C++ finite element environment
|
|
Go to the documentation of this file.
29 int main(
int argc,
char**argv) {
33 string approx = (argc > 2) ? argv[2] :
"P1";
34 pb.
Bi = (argc > 3) ? atof(argv[3]) : 0.2;
35 pb.
n = (argc > 4) ? atof(argv[4]) : 1;
36 size_t n_adapt = (argc > 5) ? atoi(argv[5]) : 0;
37 pb.
max_iter = (argc > 6) ? atoi(argv[6]) : 10000;
38 pb.err = (argc > 7) ? atof(argv[7]) : 1e-4;
44 pb.additional =
"-AbsError";
46 for (
size_t i = 0;
true; i++) {
47 pb.
reset (omega, approx);
52 if (i == n_adapt)
break;
53 space T0h (sigma_h.get_geo(),
"P"+
itos(sigma_h.get_space().degree())+
"d");
55 omega =
adapt (ch, pb);
void reset(geo omega, string approx)
geo_basic< T, M > adapt(const field_basic< T, M > &uh, const adapt_option &opts)
adapt(uh,opts): see the adapt page for the full documentation
see the field page for the full documentation
void put(odiststream &out, field &sigma_h, field &uh) const
see the space page for the full documentation
std::enable_if< details::is_field_convertible< Expr >::value,details::field_expr_v2_nonlinear_terminal_field< typename Expr::scalar_type,typename Expr::memory_type,details::differentiate_option::gradient >>::type grad(const Expr &expr)
grad(uh): see the expression page for the full documentation
rheolef - reference manual
field_basic< T, M > interpolate(const space_basic< T, M > &V2h, const field_basic< T, M > &u1h)
see the interpolate page for the full documentation
void initial(field &sigma_h, field &uh) const
see the environment page for the full documentation
rheolef::details::is_vec dot
This file is part of Rheolef.
int main(int argc, char **argv)
odiststream: see the diststream page for the full documentation
The Mossolov problem by the augmented Lagrangian method – solver class header.
std::string itos(std::string::size_type i)
itos: see the rheostream page for the full documentation
int solve(field &sigma_h, field &uh) const
see the geo page for the full documentation