Skip to content
GitLab
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
1b443b2f
Commit
1b443b2f
authored
Jan 18, 2022
by
Michel Henry
Browse files
add small-depot
parent
6c65abcf
Pipeline
#10143
failed with stages
in 62 minutes and 21 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
paraview_utils/show_problem.py
View file @
1b443b2f
...
...
@@ -101,7 +101,7 @@ if isfile(fluidFile):
fluidDisplay
=
showFluid
(
fluid
,
renderView
,
animationScene
)
if
isfile
(
particleProblemFile
):
Hide
(
fluid
,
renderView
)
showFluidVelocity
(
fluid
,
renderView
)
#
showFluidVelocity(fluid, renderView)
else
:
animationScene
.
GoToLast
()
fluidDisplay
.
RescaleTransferFunctionToDataRange
(
False
,
True
)
...
...
testcases/depot-2d/depot-small.py
View file @
1b443b2f
...
...
@@ -75,7 +75,7 @@ rho = 1000 # fluid density
nu
=
1e-6
# kinematic viscosity
# Numerical parameters
outf
=
100
# number of iterations between output files
outf
=
2
# number of iterations between output files
dt
=
1e-3
# time step
tEnd
=
100
# final time
...
...
@@ -118,7 +118,7 @@ tic = time.time()
# COMPUTATION LOOP
#
while
t
<
tEnd
:
time_integration
.
iterate
(
fluid
,
p
,
dt
,
min_nsub
=
5
,
external_particles_forces
=
g
*
p
.
mass
(),
use_predictor_corrector
=
True
)
time_integration
.
iterate
(
fluid
,
p
,
dt
,
min_nsub
=
5
,
external_particles_forces
=
g
*
p
.
mass
(),
use_predictor_corrector
=
False
,
check_residual_norm
=
1e-3
)
t
+=
dt
# Output files writting
...
...
testcases/depot-2d/depot.py
View file @
1b443b2f
...
...
@@ -63,7 +63,7 @@ def genInitialPosition(filename, r, H, ly, lx, rhop) :
p
.
write_vtk
(
filename
,
0
,
0
)
# Define output directory
outputdir
=
"output"
outputdir
=
"output
_incompressible
"
if
not
os
.
path
.
isdir
(
outputdir
)
:
os
.
makedirs
(
outputdir
)
...
...
@@ -75,7 +75,7 @@ rho = 1000 # fluid density
nu
=
1e-6
# kinematic viscosity
# Numerical parameters
outf
=
100
# number of iterations between output files
outf
=
2
# number of iterations between output files
dt
=
1e-3
# time step
tEnd
=
100
# final time
...
...
@@ -102,7 +102,7 @@ ii = 0
#
# FLUID PROBLEM
#
fluid
=
fluid
.
FluidProblem
(
2
,
g
,[
nu
*
rho
],[
rho
],
drag_in_stab
=
1
,
solver
=
"petsc"
,
solver_options
=
"-pc_type lu"
,
usolid
=
True
)
fluid
=
fluid
.
FluidProblem
(
2
,
g
,[
nu
*
rho
],[
rho
],
drag_in_stab
=
1
,
solver
=
"petsc
4py
"
,
solver_options
=
"-pc_type lu"
,
usolid
=
True
)
# Set the mesh geometry for the fluid computation
fluid
.
load_msh
(
"mesh.msh"
)
fluid
.
set_wall_boundary
(
"Bottom"
)
...
...
testcases/depot-2d/mesh.geo
View file @
1b443b2f
L = 0.
1
;
H = 0.
1
;
L = 0.
2
;
H = 0.
3
;
y = 0;
lc = 0.01;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment