Rheolef  7.2
an efficient C++ finite element environment
Loading...
Searching...
No Matches
level_set_sphere.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 "sphere.icc"
int main (int argc, char**argv) {
environment rheolef (argc,argv);
geo lambda (argv[1]);
= (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;
}
see the field page for the full documentation
see the geo page for the full documentation
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.
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
geo_basic< T, M > level_set(const field_basic< T, M > &fh, const level_set_option &opt)
Definition level_set.cc:925
STL namespace.
rheolef - reference manual
The level set function for the sphere geometry.
Definition phi.h:25