Searching on circular disk given as origin, normal (gets normalised) and radius. Optionally it can be an annular ring. More...
Public Member Functions | |
TypeName ("searchableDisk") | |
searchableDisk (const IOobject &io, const point &originPoint, const vector &normalVector, const scalar outerRadius, const scalar innerRadius=0) | |
searchableDisk (const IOobject &io, const dictionary &dict) | |
virtual | ~searchableDisk ()=default |
virtual const wordList & | regions () const |
virtual bool | hasVolumeType () const |
virtual volumeType | outsideVolumeType () const |
virtual label | size () const |
virtual tmp< pointField > | coordinates () const |
virtual void | boundingSpheres (pointField ¢res, scalarField &radiusSqr) const |
virtual tmp< pointField > | points () const |
virtual bool | overlaps (const boundBox &bb) const |
virtual void | findNearest (const pointField &sample, const scalarField &nearestDistSqr, List< pointIndexHit > &) const |
virtual void | findLine (const pointField &start, const pointField &end, List< pointIndexHit > &) const |
virtual void | findLineAny (const pointField &start, const pointField &end, List< pointIndexHit > &) const |
virtual void | findLineAll (const pointField &start, const pointField &end, List< List< pointIndexHit >> &) const |
virtual void | getRegion (const List< pointIndexHit > &, labelList ®ion) const |
virtual void | getNormal (const List< pointIndexHit > &, vectorField &normals) const |
virtual void | getVolumeType (const pointField &points, List< volumeType > &volType) const |
bool | writeData (Ostream &) const |
![]() | |
TypeName ("searchableSurface") | |
declareRunTimeSelectionTable (autoPtr, searchableSurface, dict,(const IOobject &io, const dictionary &dict),(io, dict)) | |
searchableSurface (const IOobject &io) | |
virtual autoPtr< searchableSurface > | clone () const |
virtual | ~searchableSurface ()=default |
virtual bool | global () const |
virtual fileName | filePath () const |
virtual const boundBox & | bounds () const |
virtual boundBox & | bounds () |
virtual label | globalSize () const |
virtual void | findNearest (const pointField &samples, const scalarField &nearestDistSqr, const labelList ®ionIndices, List< pointIndexHit > &info) const |
virtual void | findNearest (const pointField &sample, const scalarField &nearestDistSqr, List< pointIndexHit > &, vectorField &normal, labelList ®ion) const |
virtual void | distribute (const List< treeBoundBox > &, const bool keepNonLocal, autoPtr< mapDistribute > &faceMap, autoPtr< mapDistribute > &pointMap) |
virtual void | setField (const labelList &values) |
virtual void | getField (const List< pointIndexHit > &, labelList &values) const |
![]() | |
TypeName ("regIOobject") | |
regIOobject (const IOobject &io, const bool isTimeObject=false) | |
regIOobject (const regIOobject &rio) | |
regIOobject (const regIOobject &rio, bool registerCopy) | |
regIOobject (const word &newName, const regIOobject &, bool registerCopy) | |
regIOobject (const IOobject &io, const regIOobject &rio) | |
virtual | ~regIOobject () |
bool | checkIn () |
bool | checkOut () |
virtual void | addWatch () |
bool | ownedByRegistry () const |
bool | store () |
void | release (const bool unregister=false) |
label | eventNo () const |
label & | eventNo () |
bool | upToDate (const regIOobject &) const |
bool | upToDate (const regIOobject &, const regIOobject &) const |
bool | upToDate (const regIOobject &, const regIOobject &, const regIOobject &) const |
bool | upToDate (const regIOobject &, const regIOobject &, const regIOobject &, const regIOobject &) const |
void | setUpToDate () |
virtual void | rename (const word &newName) |
const dictionary * | findMetaData () const noexcept |
dictionary & | getMetaData () noexcept |
void | removeMetaData () |
virtual void | updateMetaData () |
bool | headerOk () |
Istream & | readStream (const word &, const bool valid=true) |
void | close () |
virtual bool | readData (Istream &) |
virtual bool | read () |
virtual label | addWatch (const fileName &) |
const labelList & | watchIndices () const |
labelList & | watchIndices () |
virtual bool | modified () const |
virtual bool | readIfModified () |
virtual bool | writeObject (IOstreamOption streamOpt, const bool valid) const |
virtual bool | write (const bool valid=true) const |
void | operator= (const IOobject &io) |
virtual bool | writeObject (IOstreamOption::streamFormat fmt, IOstreamOption::versionNumber ver, IOstreamOption::compressionType comp, const bool valid) const |
![]() | |
TypeName ("IOobject") | |
IOobject (const IOobject &)=default | |
virtual | ~IOobject ()=default |
IOobject (const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
IOobject (const fileName &path, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
IOobject (const IOobject &io, const objectRegistry ®istry) | |
IOobject (const IOobject &io, const word &name) | |
IOobject (const IOobject &io, readOption, writeOption) | |
autoPtr< IOobject > | clone () const |
autoPtr< IOobject > | clone (const objectRegistry ®istry) const |
const objectRegistry & | db () const noexcept |
const Time & | time () const |
const word & | name () const noexcept |
const word & | headerClassName () const noexcept |
word & | headerClassName () noexcept |
const string & | note () const noexcept |
string & | note () noexcept |
bool | registerObject () const noexcept |
bool | registerObject (bool on) noexcept |
bool | globalObject () const noexcept |
bool | globalObject (bool on) noexcept |
unsigned | labelByteSize () const noexcept |
unsigned | scalarByteSize () const noexcept |
bool | isHeaderClassName (const word &clsName) const |
template<class Type > | |
bool | isHeaderClassName () const |
readOption | readOpt () const noexcept |
readOption | readOpt (readOption opt) noexcept |
writeOption | writeOpt () const noexcept |
writeOption | writeOpt (writeOption opt) noexcept |
word | group () const |
word | member () const |
const fileName & | rootPath () const |
const fileName & | caseName () const |
const fileName & | instance () const noexcept |
fileName & | instance () noexcept |
const fileName & | local () const noexcept |
fileName | path () const |
fileName | path (const word &instance, const fileName &local=fileName::null) const |
fileName | objectPath () const |
fileName | objectRelPath () const |
fileName | localFilePath (const word &typeName, const bool search=true) const |
fileName | globalFilePath (const word &typeName, const bool search=true) const |
IOstreamOption | parseHeader (const dictionary &headerDict) |
bool | readHeader (Istream &is) |
bool | readHeader (dictionary &headerDict, Istream &is) |
template<class Type > | |
bool | typeHeaderOk (const bool checkType=true, const bool search=true, const bool verbose=true) |
template<class Type > | |
void | warnNoRereading () const |
bool | writeHeader (Ostream &os) const |
bool | writeHeader (Ostream &os, const word &objectType) const |
void | writeHeader (dictionary &dict, IOstreamOption streamOpt) const |
void | writeHeader (dictionary &dict, const word &objectType, IOstreamOption streamOpt) const |
bool | good () const noexcept |
bool | bad () const noexcept |
InfoProxy< IOobject > | info () const |
void | operator= (const IOobject &io) |
readOption & | readOpt () noexcept |
writeOption & | writeOpt () noexcept |
bool & | registerObject () noexcept |
bool & | globalObject () noexcept |
template<> | |
bool | isHeaderClassName () const |
template<class StringType > | |
Foam::word | groupName (StringType base, const word &group) |
![]() | |
plane () | |
plane (const vector &normalVector) | |
plane (const point &originPoint, const vector &normalVector, const bool doNormalise=true) | |
plane (const point &point1, const point &point2, const point &point3) | |
plane (const scalarList &coeffs) | |
plane (const FixedList< scalar, 4 > &coeffs) | |
plane (const dictionary &dict) | |
plane (Istream &is) | |
const vector & | normal () const |
const point & | origin () const |
point & | origin () |
const point & | refPoint () const |
void | flip () |
FixedList< scalar, 4 > | planeCoeffs () const |
point | nearestPoint (const point &p) const |
scalar | distance (const point &p) const |
scalar | signedDistance (const point &p) const |
scalar | normalIntersect (const point &pnt0, const vector &dir) const |
scalar | normalIntersect (const ray &r) const |
template<class Point , class PointRef > | |
scalar | lineIntersect (const line< Point, PointRef > &l) const |
ray | planeIntersect (const plane &plane2) const |
point | planePlaneIntersect (const plane &plane2, const plane &plane3) const |
point | somePointInPlane (const scalar dist=1e-3) const |
side | sideOfPlane (const point &p) const |
int | sign (const point &p, const scalar tol=SMALL) const |
point | mirror (const point &p) const |
void | writeDict (Ostream &os) const |
Additional Inherited Members | |
![]() | |
enum | objectState : char { GOOD, BAD } |
enum | readOption : char { MUST_READ, MUST_READ_IF_MODIFIED, READ_IF_PRESENT, NO_READ } |
enum | writeOption : char { AUTO_WRITE = 0, NO_WRITE = 1 } |
enum | fileCheckTypes : char { timeStamp, timeStampMaster, inotify, inotifyMaster } |
![]() | |
enum | side { FRONT = 1, BACK = -1, NORMAL = 1, FLIP = -1 } |
![]() | |
static autoPtr< searchableSurface > | New (const word &surfaceType, const IOobject &io, const dictionary &dict) |
![]() | |
template<class Type > | |
static Type & | store (Type *p) |
template<class Type > | |
static Type & | store (autoPtr< Type > &ptr) |
template<class Type > | |
static Type & | store (autoPtr< Type > &&ptr) |
template<class Type > | |
static Type & | store (refPtr< Type > &ptr) |
template<class Type > | |
static Type & | store (refPtr< Type > &&ptr) |
template<class Type > | |
static Type & | store (tmp< Type > &ptr) |
template<class Type > | |
static Type & | store (tmp< Type > &&ptr) |
![]() | |
static bool | bannerEnabled () noexcept |
static bool | bannerEnabled (bool on) noexcept |
static bool | fileNameComponents (const fileName &path, fileName &instance, fileName &local, word &name) |
template<class StringType > | |
static word | groupName (StringType base, const word &group) |
static word | group (const word &name) |
static word | member (const word &name) |
static word | scopedName (const std::string &scope, const word &name) |
static IOobject | selectIO (const IOobject &io, const fileName &altFile, const word &ioName="") |
static Ostream & | writeBanner (Ostream &os, const bool noSyntaxHint=false) |
static Ostream & | writeDivider (Ostream &os) |
static Ostream & | writeEndDivider (Ostream &os) |
![]() | |
static const Enum< fileCheckTypes > | fileCheckTypesNames |
static char | scopeSeparator |
static fileCheckTypes | fileModificationChecking |
static float | fileModificationSkew |
static int | maxFileModificationPolls |
![]() | |
bool | readHeaderOk (const IOstreamOption::streamFormat fmt, const word &typeName) |
![]() | |
void | setBad (const string &s) |
![]() | |
static void | writeHeaderContent (Ostream &os, const IOobject &io, const word &objectType, const dictionary *metaDataDict=nullptr) |
static void | writeHeaderContent (dictionary &dict, const IOobject &io, const word &objectType, IOstreamOption streamOpt, const dictionary *metaDataDict=nullptr) |
![]() | |
static bool | masterOnlyReading = false |
Searching on circular disk given as origin, normal (gets normalised) and radius. Optionally it can be an annular ring.
Dictionary parameters
Property | Description | Required | Default |
---|---|---|---|
type | disk | selector | |
origin | centre of disk | yes | |
normal | normal vector | yes | |
radius | disk radius | yes | |
innerRadius | inner disk radius | no | 0 |
searchableDisk
Definition at line 93 of file searchableDisk.H.
searchableDisk | ( | const IOobject & | io, |
const point & | originPoint, | ||
const vector & | normalVector, | ||
const scalar | outerRadius, | ||
const scalar | innerRadius = 0 |
||
) |
Definition at line 121 of file searchableDisk.C.
References VectorSpace::max, VectorSpace::min, Foam::sqr(), Foam::sqrt(), x, and y.
searchableDisk | ( | const IOobject & | io, |
const dictionary & | dict | ||
) |
Definition at line 150 of file searchableDisk.C.
|
virtualdefault |
TypeName | ( | "searchableDisk" | ) |
|
virtual |
Implements searchableSurface.
Definition at line 168 of file searchableDisk.C.
References List::resize().
|
inlinevirtual |
Reimplemented from searchableSurface.
Definition at line 171 of file searchableDisk.H.
|
inlinevirtual |
Implements searchableSurface.
Definition at line 177 of file searchableDisk.H.
References volumeType::UNKNOWN.
|
inlinevirtual |
Implements searchableSurface.
Definition at line 183 of file searchableDisk.H.
|
inlinevirtual |
Implements searchableSurface.
Definition at line 190 of file searchableDisk.H.
References tmp::New(), and plane::origin().
Referenced by searchableDisk::points().
|
virtual |
Implements searchableSurface.
Definition at line 180 of file searchableDisk.C.
References Foam::sqr().
|
inlinevirtual |
Implements searchableSurface.
Definition at line 204 of file searchableDisk.H.
References searchableDisk::coordinates().
Implements searchableSurface.
Definition at line 210 of file searchableDisk.H.
References NotImplemented.
|
virtual |
Implements searchableSurface.
Definition at line 197 of file searchableDisk.C.
References forAll, List::resize(), and samples().
|
virtual |
Implements searchableSurface.
Definition at line 213 of file searchableDisk.C.
References stdFoam::end(), forAll, and List::resize().
|
virtual |
Implements searchableSurface.
Definition at line 229 of file searchableDisk.C.
References stdFoam::end().
|
virtual |
Implements searchableSurface.
Definition at line 240 of file searchableDisk.C.
References List::clear(), stdFoam::end(), forAll, PointIndexHit::hit(), and List::setSize().
|
virtual |
Implements searchableSurface.
Definition at line 267 of file searchableDisk.C.
References List::resize().
|
virtual |
Implements searchableSurface.
Definition at line 278 of file searchableDisk.C.
|
virtual |
Implements searchableSurface.
Definition at line 289 of file searchableDisk.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.