Class SphereLogicalVolume

Inheritance Relationships

Base Type

Class Documentation

class SphereLogicalVolume : public opensn::LogicalVolume

Spherical logical volume.

Public Functions

explicit SphereLogicalVolume(const InputParameters &params)
virtual bool Inside(const Vector3 &point) const override

Logical operation for surface mesh.

virtual bool GetBoundingBox(Vector3 &lo, Vector3 &hi) const override

Gets an axis-aligned box [lo, hi] that contains every point for which Inside() is true, so that callers can skip points outside it.

A bound may be infinite. Returns false, and leaves lo and hi unchanged, when the volume does not provide a box.

Public Static Functions

static InputParameters GetInputParameters()
static std::shared_ptr<SphereLogicalVolume> Create(const ParameterBlock &params)

Protected Attributes

double r_
double x0_
double y0_
double z0_