Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
bff4962d
Commit
bff4962d
authored
Apr 09, 2019
by
Mark OLESEN
Committed by
Andrew Heather
Apr 09, 2019
Browse files
ENH: add PDRblock::null() member - reference to NullObject
parent
d8d95a6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/mesh/blockMesh/PDRblockMesh/PDRblock.C
View file @
bff4962d
...
...
@@ -72,6 +72,12 @@ bool Foam::PDRblock::checkMonotonic
}
const
Foam
::
PDRblock
&
Foam
::
PDRblock
::
null
()
{
return
NullObjectRef
<
PDRblock
>
();
}
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
void
Foam
::
PDRblock
::
adjustSizes
()
...
...
src/mesh/blockMesh/PDRblockMesh/PDRblock.H
View file @
bff4962d
...
...
@@ -94,10 +94,12 @@ public:
//- Grid locations in an axis direction.
// The number of points is one larger than the number of elements
// it represents
struct
location
class
location
:
public
scalarList
{
public:
//- The locations are valid if they contain 2 or more points
inline
bool
valid
()
const
;
...
...
@@ -187,7 +189,11 @@ private:
// Private Member Functions
//- 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
void
adjustSizes
();
...
...
@@ -242,6 +248,12 @@ private:
public:
// Static Member Functions
//- Return a PDRblock reference to a nullObject
static
const
PDRblock
&
null
();
// Constructors
//- Construct zero-size
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment