Rheolef  7.2
an efficient C++ finite element environment
 
Loading...
Searching...
No Matches
vorticity.cc
Go to the documentation of this file.
1
25#include "rheolef.h"
26using namespace rheolef;
27using namespace std;
28int main(int argc, char** argv) {
29 environment rheolef (argc, argv);
30 field uh;
31 din >> uh;
32 const space& Xh = uh.get_space();
33 string grad_approx = "P" + to_string(Xh.degree()-1) + "d";
34 string valued = (uh.get_geo().dimension() == 3) ? "vector" : "scalar";
35 space Lh (uh.get_geo(), grad_approx, valued);
36 field curl_uh = lazy_interpolate (Lh, curl(uh));
37 dout << catchmark("w") << curl_uh;
38}
see the field 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
int main()
Definition field2bb.cc:58
This file is part of Rheolef.
std::enable_if< details::has_field_rdof_interface< Expr >::value, details::field_expr_v2_nonlinear_terminal_field< typenameExpr::scalar_type, typenameExpr::memory_type, details::differentiate_option::curl > >::type curl(const Expr &expr)
curl(uh): see the expression page for the full documentation
field_basic< T, M > lazy_interpolate(const space_basic< T, M > &X2h, const field_basic< T, M > &u1h)
see the interpolate page for the full documentation
Definition field.h:871
STL namespace.
rheolef - reference manual