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

The vorticity associated to a vector field.

The vorticity associated to a vector field

#include "rheolef.h"
using namespace rheolef;
using namespace std;
int main(int argc, char** argv) {
environment rheolef (argc, argv);
field uh;
din >> uh;
const space& Xh = uh.get_space();
string grad_approx = "P" + to_string(Xh.degree()-1) + "d";
string valued = (uh.get_geo().dimension() == 3) ? "vector" : "scalar";
space Lh (uh.get_geo(), grad_approx, valued);
field curl_uh = lazy_interpolate (Lh, curl(uh));
dout << catchmark("w") << curl_uh;
}
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.
STL namespace.
rheolef - reference manual