The level set function for the sphere geometry.
The level set function for the sphere geometry
if (
d == 2)
return 26*(
pow(x[0],5) - 10*
pow(x[0],3)*sqr(x[1])
else return 3*sqr(x[0])*x[1] -
pow(x[1],3);
}
};
}
}
};
if (
d == 2)
return _f(x)/(25+sqr(
norm(x)));
}
protected:
size_t d;
f _f;
};
see the Float page for the full documentation
see the point page for the full documentation
space_mult_list< T, M > pow(const space_basic< T, M > &X, size_t n)
T norm(const vec< T, M > &x)
norm(x): see the expression page for the full documentation
Float phi(const point &x)
point operator()(const point &x) const
Float operator()(const point &x) const
point operator()(const point &x) const
u_exact(size_t d1, Float w1=acos(Float(-1)))