OpenMD  2.5
Molecular Dynamics in the Open
OpenMD::Sphere Class Reference

#include <Sphere.hpp>

Inheritance diagram for OpenMD::Sphere:

Public Member Functions

 Sphere (Vector3d origin, RealType radius)
virtual bool isInterior (Vector3d pos)
virtual std::pair< Vector3d, Vector3dgetBoundingBox ()
virtual bool hasAnalyticalSolution ()
virtual HydroPropgetHydroProp (RealType viscosity, RealType temperature)
RealType getRadius ()
- Public Member Functions inherited from OpenMD::Shape
virtual ~Shape ()

Private Attributes

Vector3d origin_
RealType radius_

Detailed Description

Definition at line 50 of file Sphere.hpp.

Constructor & Destructor Documentation

◆ Sphere()

OpenMD::Sphere::Sphere ( Vector3d  origin,
RealType  radius 

Definition at line 49 of file Sphere.cpp.

Member Function Documentation

◆ getBoundingBox()

std::pair< Vector3d, Vector3d > OpenMD::Sphere::getBoundingBox ( )

Implements OpenMD::Shape.

Definition at line 65 of file Sphere.cpp.

References origin_, and radius_.

◆ getHydroProp()

HydroProp * OpenMD::Sphere::getHydroProp ( RealType  viscosity,
RealType  temperature 

◆ getRadius()

RealType OpenMD::Sphere::getRadius ( )

Definition at line 58 of file Sphere.hpp.

References radius_.

◆ hasAnalyticalSolution()

virtual bool OpenMD::Sphere::hasAnalyticalSolution ( )

Implements OpenMD::Shape.

Definition at line 55 of file Sphere.hpp.

References getHydroProp().

◆ isInterior()

bool OpenMD::Sphere::isInterior ( Vector3d  pos)

Implements OpenMD::Shape.

Definition at line 53 of file Sphere.cpp.

References OpenMD::Vector< Real, Dim >::length(), origin_, and radius_.

Member Data Documentation

◆ origin_

Vector3d OpenMD::Sphere::origin_

Definition at line 61 of file Sphere.hpp.

Referenced by getBoundingBox(), and isInterior().

◆ radius_

RealType OpenMD::Sphere::radius_

Definition at line 62 of file Sphere.hpp.

Referenced by getBoundingBox(), getHydroProp(), getRadius(), and isInterior().

The documentation for this class was generated from the following files: