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
3c661e12
Commit
3c661e12
authored
Dec 02, 2021
by
Michel Henry
Browse files
fix remove coeff_stab unused
parent
ad37ebcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/fluid.py
View file @
3c661e12
...
...
@@ -126,7 +126,7 @@ def _load_msh(mesh_file_name, lib, dim) :
class
FluidProblem
:
"""Creates the numerical representation of the fluid."""
def
__init__
(
self
,
dim
,
g
,
mu
,
rho
,
sigma
=
0
,
coeff_stab
=
0.01
,
volume_drag
=
0.
,
quadratic_drag
=
0.
,
solver
=
None
,
solver_options
=
""
,
drag_in_stab
=
1
,
drag_coefficient_factor
=
1
,
ip_factor
=
1
,
temporal
=
True
,
advection
=
True
,
order
=
[
1
,
1
,
1
],
stability
=
True
):
def
__init__
(
self
,
dim
,
g
,
mu
,
rho
,
sigma
=
0
,
volume_drag
=
0.
,
quadratic_drag
=
0.
,
solver
=
None
,
solver_options
=
""
,
drag_in_stab
=
1
,
drag_coefficient_factor
=
1
,
ip_factor
=
1
,
temporal
=
True
,
advection
=
True
,
order
=
[
1
,
1
,
1
],
stability
=
True
):
"""Builds the fluid structure.
Keyword arguments:
...
...
@@ -168,7 +168,7 @@ class FluidProblem :
self
.
_n_fluids
=
n_fluids
self
.
_dim
=
dim
self
.
_fp
=
c_void_p
(
self
.
_lib
.
fluid_problem_new
(
_np2c
(
g
),
n_fluids
,
_np2c
(
mu
),
_np2c
(
rho
),
c_double
(
sigma
),
c_double
(
coeff_stab
),
_np2c
(
g
),
n_fluids
,
_np2c
(
mu
),
_np2c
(
rho
),
c_double
(
sigma
),
c_double
(
volume_drag
),
c_double
(
quadratic_drag
),
c_int
(
drag_in_stab
),
c_double
(
drag_coefficient_factor
),
c_double
(
ip_factor
),
c_int
(
temporal
),
c_int
(
advection
),
_np2c
(
np
.
array
(
self
.
order_fields
,
dtype
=
np
.
int32
),
dtype
=
np
.
int32
),
c_int
(
stability
)
...
...
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