Rheolef  7.1
an efficient C++ finite element environment
level_set_sphere.cc
Go to the documentation of this file.
1 #include "rheolef.h"
26 using namespace rheolef;
27 using namespace std;
28 #include "sphere.icc"
29 int main (int argc, char**argv) {
30  environment rheolef (argc,argv);
31  geo lambda (argv[1]);
32  level_set_option opts;
34  = (argc > 2 && argv[2] == std::string("-tq")) ? false : true;
35  space Xh (lambda, "P1");
36  field phi_h = interpolate(Xh, phi);
37  geo gamma = level_set (phi_h, opts);
38  dout << gamma;
39 }
field
see the field page for the full documentation
phi
Definition: phi.h:25
space
see the space page for the full documentation
rheolef::level_set
geo_basic< T, M > level_set(const field_basic< T, M > &fh, const level_set_option &opt)
Definition: level_set.cc:924
rk::gamma
Float gamma[][pmax+1]
Definition: runge_kutta_semiimplicit.icc:70
rheolef.h
rheolef - reference manual
rheolef::level_set_option
Definition: level_set.h:66
sphere.icc
The level set function for the sphere geometry.
main
int main(int argc, char **argv)
Definition: level_set_sphere.cc:29
rheolef::interpolate
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
Definition: interpolate.cc:233
rheolef::environment
see the environment page for the full documentation
Definition: environment.h:115
rheolef
This file is part of Rheolef.
Definition: compiler_eigen.h:37
rheolef::level_set_option::split_to_triangle
bool split_to_triangle
Definition: level_set.h:67
rheolef::dout
odiststream dout(cout)
see the diststream page for the full documentation
Definition: diststream.h:430
rheolef::std
Definition: vec_expr_v2.h:402
geo
see the geo page for the full documentation
lambda
Definition: yield_slip_circle.h:34