Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
6300cd4e
Commit
6300cd4e
authored
6 years ago
by
Mark OLESEN
Browse files
Options
Downloads
Patches
Plain Diff
ENH: add PDRblock::null() member - reference to NullObject
parent
cd0976ce
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/mesh/blockMesh/PDRblockMesh/PDRblock.C
+6
-0
6 additions, 0 deletions
src/mesh/blockMesh/PDRblockMesh/PDRblock.C
src/mesh/blockMesh/PDRblockMesh/PDRblock.H
+14
-2
14 additions, 2 deletions
src/mesh/blockMesh/PDRblockMesh/PDRblock.H
with
20 additions
and
2 deletions
src/mesh/blockMesh/PDRblockMesh/PDRblock.C
+
6
−
0
View file @
6300cd4e
...
@@ -72,6 +72,12 @@ bool Foam::PDRblock::checkMonotonic
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
src/mesh/blockMesh/PDRblockMesh/PDRblock.H
+
14
−
2
View file @
6300cd4e
...
@@ -94,10 +94,12 @@ public:
...
@@ -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:
...
@@ -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:
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment