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
06fa3dca
Commit
06fa3dca
authored
Nov 13, 2018
by
Frédéric Dubois
Browse files
adding restart option to lmgc90Interface
parent
c5fcf924
Pipeline
#4576
passed with stage
in 2 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
python/lmgc90Interface.py
View file @
06fa3dca
...
...
@@ -50,7 +50,7 @@ class ParticleProblem(object):
- writeHeader() : write header file for plot
"""
def
__init__
(
self
,
dim
,
period
=
0
,
xp
=
0
,
yp
=
0
)
:
def
__init__
(
self
,
dim
,
period
=
0
,
xp
=
0
,
yp
=
0
,
restart
=
0
)
:
"""
Initialize lmgc90
"""
...
...
@@ -75,7 +75,7 @@ class ParticleProblem(object):
chipy
.
LoadBehaviours
()
chipy
.
utilities_logMes
(
'READ INI DOF'
)
chipy
.
ReadIniDof
()
chipy
.
ReadIniDof
(
restart
)
chipy
.
utilities_logMes
(
'READ DRIVEN DOF'
)
chipy
.
ReadDrivenDof
()
...
...
@@ -84,7 +84,7 @@ class ParticleProblem(object):
chipy
.
LoadTactors
()
chipy
.
utilities_logMes
(
'READ INI Vloc Rloc'
)
chipy
.
ReadIniVlocRloc
()
chipy
.
ReadIniVlocRloc
(
restart
)
if
(
period
):
chipy
.
SetPeriodicCondition
(
xperiod
=
xp
,
yperiod
=
yp
)
...
...
@@ -92,7 +92,7 @@ class ParticleProblem(object):
chipy
.
PRPRx_UseCpCundallDetection
(
30
)
chipy
.
OpenPostproFiles
()
chipy
.
OpenDisplayFiles
()
chipy
.
OpenDisplayFiles
(
restart
+
1
)
chipy
.
WriteDisplayFiles
()
...
...
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