Loading...
Searching...
No Matches
level_set_torus.cc

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

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 = lazy_interpolate(Xh, phi);
geo gamma = level_set (phi_h, opts);
dout << gamma;
}
field
see the field page for the full documentation
geo
see the geo page for the full documentation
rheolef::environment
see the environment page for the full documentation
Definition environment.h:121
space
see the space page for the full documentation
main
int main()
Definition field2bb.cc:58
rheolef
This file is part of Rheolef.
Definition compiler_eigen.h:39
rheolef::lazy_interpolate
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
rheolef::level_set
geo_basic< T, M > level_set(const field_basic< T, M > &fh, const level_set_option &opt)
Definition level_set.cc:925
std
STL namespace.
rheolef.h
rheolef - reference manual
lambda
Definition yield_slip_circle.h:34
phi
Definition phi.h:25
rheolef::level_set_option
Definition level_set.h:69
rheolef::level_set_option::split_to_triangle
bool split_to_triangle
Definition level_set.h:70
torus.icc
The torus benchmark – level set, right-hand-side and exact solution.