VirtualFluids 0.2.0
Parallel CFD LBM Solver
Loading...
Searching...
No Matches
vf::gpu::Sphere Class Reference

#include <Sphere.h>

Inheritance diagram for vf::gpu::Sphere:
vf::gpu::Object

Public Member Functions

 Sphere (const double &centerX, const double &centerY, const double &centerZ, const double &radius)
 
SPtr< Object > clone () const override
 
double getX1Centroid () const override
 
double getX1Minimum () const override
 
double getX1Maximum () const override
 
double getX2Centroid () const override
 
double getX2Minimum () const override
 
double getX2Maximum () const override
 
double getX3Centroid () const override
 
double getX3Minimum () const override
 
double getX3Maximum () const override
 
bool isPointInObject (const double &x1, const double &x2, const double &x3, const double &minOffset, const double &maxOffset) override
 
void changeSizeByDelta (double delta) override
 
int getIntersection (const Vertex &P, const Vertex &direction, Vertex &pointOnObject, real &qVal) override
 
- Public Member Functions inherited from vf::gpu::Object
virtual ~Object ()=default
 
virtual bool isCellInObject (const Cell &cell)
 
virtual void findInnerNodes (SPtr< GridImp > grid)
 

Static Public Member Functions

static SPtr< Sphere > makeShared (double centerX, double centerY, double centerZ, double radius)
 

Protected Attributes

double centerX
 
double centerY
 
double centerZ
 
double radius
 

Detailed Description

Definition at line 43 of file Sphere.h.

Constructor & Destructor Documentation

◆ Sphere()

vf::gpu::Sphere::Sphere ( const double &  centerX,
const double &  centerY,
const double &  centerZ,
const double &  radius 
)

Definition at line 44 of file Sphere.cpp.

Member Function Documentation

◆ changeSizeByDelta()

void vf::gpu::Sphere::changeSizeByDelta ( double  delta)
overridevirtual

Implements vf::gpu::Object.

Definition at line 121 of file Sphere.cpp.

◆ clone()

SPtr< Object > vf::gpu::Sphere::clone ( ) const
overridevirtual

Implements vf::gpu::Object.

Definition at line 55 of file Sphere.cpp.

◆ getIntersection()

int vf::gpu::Sphere::getIntersection ( const Vertex &  P,
const Vertex &  direction,
Vertex &  pointOnObject,
real &  qVal 
)
overridevirtual

Reimplemented from vf::gpu::Object.

Definition at line 126 of file Sphere.cpp.

◆ getX1Centroid()

double vf::gpu::Sphere::getX1Centroid ( ) const
overridevirtual

Implements vf::gpu::Object.

Definition at line 60 of file Sphere.cpp.

◆ getX1Maximum()

double vf::gpu::Sphere::getX1Maximum ( ) const
overridevirtual

Implements vf::gpu::Object.

Definition at line 70 of file Sphere.cpp.

◆ getX1Minimum()

double vf::gpu::Sphere::getX1Minimum ( ) const
overridevirtual

Implements vf::gpu::Object.

Definition at line 65 of file Sphere.cpp.

◆ getX2Centroid()

double vf::gpu::Sphere::getX2Centroid ( ) const
overridevirtual

Implements vf::gpu::Object.

Definition at line 75 of file Sphere.cpp.

◆ getX2Maximum()

double vf::gpu::Sphere::getX2Maximum ( ) const
overridevirtual

Implements vf::gpu::Object.

Definition at line 85 of file Sphere.cpp.

◆ getX2Minimum()

double vf::gpu::Sphere::getX2Minimum ( ) const
overridevirtual

Implements vf::gpu::Object.

Definition at line 80 of file Sphere.cpp.

◆ getX3Centroid()

double vf::gpu::Sphere::getX3Centroid ( ) const
overridevirtual

Implements vf::gpu::Object.

Definition at line 90 of file Sphere.cpp.

◆ getX3Maximum()

double vf::gpu::Sphere::getX3Maximum ( ) const
overridevirtual

Implements vf::gpu::Object.

Definition at line 100 of file Sphere.cpp.

◆ getX3Minimum()

double vf::gpu::Sphere::getX3Minimum ( ) const
overridevirtual

Implements vf::gpu::Object.

Definition at line 95 of file Sphere.cpp.

◆ isPointInObject()

bool vf::gpu::Sphere::isPointInObject ( const double &  x1,
const double &  x2,
const double &  x3,
const double &  minOffset,
const double &  maxOffset 
)
overridevirtual

Implements vf::gpu::Object.

Definition at line 105 of file Sphere.cpp.

◆ makeShared()

SPtr< Sphere > vf::gpu::Sphere::makeShared ( double  centerX,
double  centerY,
double  centerZ,
double  radius 
)
static

Definition at line 50 of file Sphere.cpp.

Member Data Documentation

◆ centerX

double vf::gpu::Sphere::centerX
protected

Definition at line 71 of file Sphere.h.

◆ centerY

double vf::gpu::Sphere::centerY
protected

Definition at line 72 of file Sphere.h.

◆ centerZ

double vf::gpu::Sphere::centerZ
protected

Definition at line 73 of file Sphere.h.

◆ radius

double vf::gpu::Sphere::radius
protected

Definition at line 75 of file Sphere.h.


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