Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
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
pystencils
Commits
ecb9390a
Commit
ecb9390a
authored
7 years ago
by
Martin Bauer
Browse files
Options
Downloads
Patches
Plain Diff
Fixed bug in lbmpy boundary plot
- boundaries with same name have not been displayed correctly
parent
26f855cb
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
boundaries/boundaryhandling.py
+0
-5
0 additions, 5 deletions
boundaries/boundaryhandling.py
plot2d.py
+3
-2
3 additions, 2 deletions
plot2d.py
with
3 additions
and
7 deletions
boundaries/boundaryhandling.py
+
0
−
5
View file @
ecb9390a
...
...
@@ -76,11 +76,6 @@ class BoundaryHandling:
def
flag_array_name
(
self
):
return
self
.
flag_interface
.
flag_field_name
def
get_boundary_name_to_flag_dict
(
self
):
result
=
{
b_obj
.
name
:
b_info
.
flag
for
b_obj
,
b_info
in
self
.
_boundary_object_to_boundary_info
.
items
()}
result
[
'
domain
'
]
=
self
.
flag_interface
.
domain_flag
return
result
def
get_mask
(
self
,
slice_obj
,
boundary_obj
,
inverse
=
False
):
if
isinstance
(
boundary_obj
,
str
)
and
boundary_obj
.
lower
()
==
'
domain
'
:
flag
=
self
.
flag_interface
.
domain_flag
...
...
This diff is collapsed.
Click to expand it.
plot2d.py
+
3
−
2
View file @
ecb9390a
...
...
@@ -196,8 +196,9 @@ def vector_field_animation(run_function, step=2, rescale=True, plot_setup_functi
if
rescale
:
max_norm
=
np
.
max
(
norm
(
field
,
axis
=
2
,
ord
=
2
))
field
=
field
/
max_norm
if
'
scale
'
not
in
kwargs
:
kwargs
[
'
scale
'
]
=
1.0
kwargs
.
setdefault
(
'
scale
'
,
1
/
step
)
kwargs
.
setdefault
(
'
angles
'
,
'
xy
'
)
kwargs
.
setdefault
(
'
scale_units
'
,
'
xy
'
)
quiver_plot
=
vector_field
(
field
,
step
=
step
,
**
kwargs
)
plot_setup_function
(
quiver_plot
)
...
...
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