mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: add PDRblock::null() member - reference to NullObject
This commit is contained in:
committed by
Andrew Heather
parent
d8d95a6c95
commit
bff4962dc5
@ -72,6 +72,12 @@ bool Foam::PDRblock::checkMonotonic
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const Foam::PDRblock& Foam::PDRblock::null()
|
||||||
|
{
|
||||||
|
return NullObjectRef<PDRblock>();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
void Foam::PDRblock::adjustSizes()
|
void Foam::PDRblock::adjustSizes()
|
||||||
|
|||||||
@ -94,10 +94,12 @@ public:
|
|||||||
//- Grid locations in an axis direction.
|
//- Grid locations in an axis direction.
|
||||||
// The number of points is one larger than the number of elements
|
// The number of points is one larger than the number of elements
|
||||||
// it represents
|
// it represents
|
||||||
struct location
|
class location
|
||||||
:
|
:
|
||||||
public scalarList
|
public scalarList
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
//- The locations are valid if they contain 2 or more points
|
//- The locations are valid if they contain 2 or more points
|
||||||
inline bool valid() const;
|
inline bool valid() const;
|
||||||
|
|
||||||
@ -187,7 +189,11 @@ private:
|
|||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Check that points increase monotonically
|
//- Check that points increase monotonically
|
||||||
static bool checkMonotonic(const direction cmpt, const UList<scalar>& pts);
|
static bool checkMonotonic
|
||||||
|
(
|
||||||
|
const direction cmpt,
|
||||||
|
const UList<scalar>& pts
|
||||||
|
);
|
||||||
|
|
||||||
//- Adjust sizing for updated grid points
|
//- Adjust sizing for updated grid points
|
||||||
void adjustSizes();
|
void adjustSizes();
|
||||||
@ -242,6 +248,12 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
// Static Member Functions
|
||||||
|
|
||||||
|
//- Return a PDRblock reference to a nullObject
|
||||||
|
static const PDRblock& null();
|
||||||
|
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct zero-size
|
//- Construct zero-size
|
||||||
|
|||||||
Reference in New Issue
Block a user