50#include "MR_rect_tree.hpp"
51#include "MR_cell_cplx.hpp"
52#include "MR_rt_to_cc.hpp"
55typedef mjr::tree15b2d1rT tt_t;
56typedef mjr::MRccT5 cc_t;
57typedef mjr::MR_rt_to_cc<tt_t, cc_t> tc_t;
60tt_t::rrpt_t ear_yz(tt_t::drpt_t xvec) {
61 tt_t::src_t y = xvec[0];
62 tt_t::src_t z = xvec[1];
63 tt_t::src_t m = y*y-z;
65 return std::numeric_limits<double>::quiet_NaN();
67 return std::sqrt(m)*z;
77 tree.refine_grid(7, ear_yz);
80 tree.refine_recursive_if_cell_vertex_is_nan(8, ear_yz);
85 tc_t::construct_geometry_fans(ccplx,
88 {{tc_t::val_src_spc_t::FRANGE, 0},
89 {tc_t::val_src_spc_t::FDOMAIN, 0},
90 {tc_t::val_src_spc_t::FDOMAIN, 1}},
94 ccplx.create_named_datasets({
"y",
"z",
"x=f(x,z)"});
97 ccplx.mirror({0, 0, 1}, 1.0e-5);
101 ccplx.write_xml_vtk(
"ear_surface_glue.vtu",
"ear_surface_glue");