23 "r", AllowableRangeLowLimit::New(0.0,
false));
31 r_(params.GetParamValue<double>(
"r")),
32 x0_(params.GetParamValue<double>(
"x")),
33 y0_(params.GetParamValue<double>(
"y")),
34 z0_(params.GetParamValue<double>(
"z"))
40 double dx = point.
x -
x0_;
41 double dy = point.
y -
y0_;
42 double dz = point.
z -
z0_;
44 double R2 = dx * dx + dy * dy + dz * dz;
46 if (R2 <= (
r_ *
r_))
return true;
static chi::InputParameters GetInputParameters()
static chi::InputParameters GetInputParameters()
bool Inside(const chi_mesh::Vector3 &point) const override
SphereLogicalVolume(const chi::InputParameters ¶ms)
RegisterChiObject(chi_mesh, BooleanLogicalVolume)