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
5adbf949
Commit
5adbf949
authored
Jul 01, 2020
by
Nathan Coppin
Browse files
allowing by default rotation when friction is enabled
parent
21c7b306
Pipeline
#7842
passed with stages
in 3 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
python/scontact.py
View file @
5adbf949
...
...
@@ -92,7 +92,7 @@ class ParticleProblem :
buf
=
(
size
*
c_int
).
from_address
(
ptr
)
return
np
.
ctypeslib
.
as_array
(
buf
)
def
__init__
(
self
,
dim
,
friction_enabled
=
False
,
rotation_enabled
=
Fals
e
)
:
def
__init__
(
self
,
dim
,
friction_enabled
=
False
,
rotation_enabled
=
Tru
e
)
:
"""Builds the particles contanier structure.
Keyword arguments:
...
...
@@ -104,7 +104,7 @@ class ParticleProblem :
"""
self
.
_dim
=
dim
self
.
_friction_enabled
=
friction_enabled
self
.
_rotation_enabled
=
rotation_enabled
self
.
_rotation_enabled
=
False
if
not
friction_enabled
else
rotation_enabled
if
dim
==
2
:
if
friction_enabled
:
self
.
_lib
=
lib2f
if
rotation_enabled
else
lib2fwr
...
...
Write
Preview
Markdown
is supported
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