level_set_torus.cc

Extraction as a surface mesh of the zero level set – spherical geometry

#include "rheolef.h"
using namespace rheolef;
using namespace std;
#include "torus.icc"
int main (int argc, char**argv) {
environment rheolef (argc,argv);
geo lambda (argv[1]);
level_set_option opts;
opts.split_to_triangle
= (argc > 2 && argv[2] == std::string("-tq")) ? false : true;
space Xh (lambda, "P1");
field phi_h = interpolate(Xh, phi);
geo gamma = level_set (phi_h, opts);
dout << gamma;
}
field
see the field page for the full documentation
phi
Definition: phi.h:25
main
int main(int argc, char **argv)
Definition: level_set_torus.cc:29
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
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
torus.icc
The torus benchmark – level set, right-hand-side and exact solution.
rheolef::std
Definition: vec_expr_v2.h:391
geo
see the geo page for the full documentation
lambda
Definition: yield_slip_circle.h:34