Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
lbmpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
lbmpy
Commits
f728f40e
Commit
f728f40e
authored
4 years ago
by
Frederik Hennig
Browse files
Options
Downloads
Patches
Plain Diff
Fixed some doc comments
parent
a6c37fa1
No related branches found
No related tags found
1 merge request
!53
Link-Wise Extrapolation Outflow
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lbmpy/boundaries/boundaryconditions.py
+9
-11
9 additions, 11 deletions
lbmpy/boundaries/boundaryconditions.py
with
9 additions
and
11 deletions
lbmpy/boundaries/boundaryconditions.py
+
9
−
11
View file @
f728f40e
...
...
@@ -221,7 +221,7 @@ class SimpleExtrapolationOutflow(LbBoundary):
Args:
normal_direction: direction vector normal to the outflow
stencil: stencil used
for
the lattice
B
oltzmann method
stencil: stencil used
by
the lattice
b
oltzmann method
name: optional name of the boundary.
"""
...
...
@@ -242,7 +242,7 @@ class SimpleExtrapolationOutflow(LbBoundary):
lb_method: Lattice Boltzmann method. See :func:`lbmpy.creationfunctions.create_lb_method`
Returns:
list containing
LbmWeightInfo and
NeighbourOffsetArrays
list containing NeighbourOffsetArrays
"""
return
[
NeighbourOffsetArrays
(
lb_method
.
stencil
)]
...
...
@@ -260,9 +260,10 @@ class SimpleExtrapolationOutflow(LbBoundary):
class
ExtrapolationOutflow
(
LbBoundary
):
r
"""
Outflow boundary condition :cite:`geier2015`, equation F.2, with u neglected (listed below).
This boundary condition interpolates missing on the boundary in normal direction. For this interpolation, the
PDF values of the last time step are used. They are interpolated between fluid cell and boundary cell.
To get the PDF values from the last time step an index array is used which stores them.
This boundary condition interpolates populations missing on the boundary in normal direction.
For this interpolation, the PDF values of the last time step are used. They are interpolated
between fluid cell and boundary cell. To get the PDF values from the last time step an index
array is used which stores them.
.. math ::
f_{\overline{1}jkxyzt} = f_{\overline{1}jk(x - \Delta x)yz(t - \Delta t)} c \theta^{\frac{1}{2}}
...
...
@@ -353,16 +354,13 @@ class ExtrapolationOutflow(LbBoundary):
@property
def
additional_data
(
self
):
"""
Used internally only. For the ExtrapolationOutflow information of the previous PDF values is needed. This
information is
add
ed
to
the
boundary
"""
information is
stor
ed
in
the
index vector.
"""
data
=
[(
'
pdf
'
,
create_type
(
"
double
"
)),
(
'
pdf_nd
'
,
create_type
(
"
double
"
))]
return
data
@property
def
additional_data_init_callback
(
self
):
"""
The initialisation of the additional data is implemented internally for this class.
Thus no callback can be provided
"""
if
callable
(
self
.
init_callback
):
return
self
.
init_callback
return
self
.
init_callback
def
get_additional_code_nodes
(
self
,
lb_method
):
"""
Return a list of code nodes that will be added in the generated code before the index field loop.
...
...
@@ -371,7 +369,7 @@ class ExtrapolationOutflow(LbBoundary):
lb_method: Lattice Boltzmann method. See :func:`lbmpy.creationfunctions.create_lb_method`
Returns:
list containing
LbmWeightInfo and
NeighbourOffsetArrays
list containing NeighbourOffsetArrays
"""
return
[
NeighbourOffsetArrays
(
lb_method
.
stencil
)]
...
...
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