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
0e2df457
Commit
0e2df457
authored
6 years ago
by
Martin Bauer
Browse files
Options
Downloads
Patches
Plain Diff
Documentation and test for angle evaluation with circle fitting
parent
3b2cecfe
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
phasefield/contact_angle_circle_fitting.py
+12
-0
12 additions, 0 deletions
phasefield/contact_angle_circle_fitting.py
with
12 additions
and
0 deletions
phasefield/contact_angle_circle_fitting.py
+
12
−
0
View file @
0e2df457
...
...
@@ -95,6 +95,18 @@ def neumann_angles_from_surface_tensions(surface_tensions):
def
liquid_lens_neumann_angles
(
concentration
,
drop_phase_idx
=
2
,
enclosing_phase1
=
0
,
enclosing_phase2
=
1
):
"""
Assumes a liquid lens setup, where a drop is enclosed between two other phases in the middle of the domain.
Args:
concentration: array with concentrations
drop_phase_idx: index of the drop phase
enclosing_phase1: index of the first enclosing phase
enclosing_phase2: index of the second enclosing phase
Returns:
tuple with three angles
(angle enclosing phase1, angle enclosing phase2, angle droplet)
"""
circles
=
[
fit_circle
(
contour_line
(
concentration
,
enclosing_phase1
,
drop_phase_idx
)),
fit_circle
(
contour_line
(
concentration
,
enclosing_phase2
,
drop_phase_idx
))]
...
...
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