Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fluidparticles
MigFlow
Commits
2c38c432
Commit
2c38c432
authored
Nov 24, 2020
by
Michel Henry
Browse files
validation dieSwell
parent
acb5bd0d
Pipeline
#8734
passed with stages
in 5 minutes and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
validation/dieSwell/dieSwell.py
View file @
2c38c432
...
...
@@ -55,6 +55,8 @@ class DieSwell(unittest.TestCase):
return
tension
# Define output directory
dir_path
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
os
.
chdir
(
dir_path
)
outputdir
=
"output"
if
not
os
.
path
.
isdir
(
outputdir
)
:
os
.
makedirs
(
outputdir
)
...
...
@@ -125,4 +127,5 @@ class DieSwell(unittest.TestCase):
# The shape of low-speed capillary jets of Newtonian liquids.
# Journal of Fluid Mechanics, 25(1), 185-198."
error
=
np
.
abs
(
swelling
-
swelling_experiment
)
# print(f"swelling = {swelling}\t error = {error}")
self
.
assertLess
(
error
,
2
*
10
-
2
,
"error is too large in dieSwell"
)
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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