Commit 1b443b2f authored by Michel Henry's avatar Michel Henry
Browse files

add small-depot

parent 6c65abcf
Pipeline #10143 failed with stages
in 62 minutes and 21 seconds
...@@ -101,7 +101,7 @@ if isfile(fluidFile): ...@@ -101,7 +101,7 @@ if isfile(fluidFile):
fluidDisplay = showFluid(fluid, renderView ,animationScene) fluidDisplay = showFluid(fluid, renderView ,animationScene)
if isfile(particleProblemFile): if isfile(particleProblemFile):
Hide(fluid, renderView) Hide(fluid, renderView)
showFluidVelocity(fluid, renderView) # showFluidVelocity(fluid, renderView)
else: else:
animationScene.GoToLast() animationScene.GoToLast()
fluidDisplay.RescaleTransferFunctionToDataRange(False, True) fluidDisplay.RescaleTransferFunctionToDataRange(False, True)
......
...@@ -75,7 +75,7 @@ rho = 1000 # fluid density ...@@ -75,7 +75,7 @@ rho = 1000 # fluid density
nu = 1e-6 # kinematic viscosity nu = 1e-6 # kinematic viscosity
# Numerical parameters # Numerical parameters
outf = 100 # number of iterations between output files outf = 2 # number of iterations between output files
dt = 1e-3 # time step dt = 1e-3 # time step
tEnd = 100 # final time tEnd = 100 # final time
...@@ -118,7 +118,7 @@ tic = time.time() ...@@ -118,7 +118,7 @@ tic = time.time()
# COMPUTATION LOOP # COMPUTATION LOOP
# #
while t < tEnd : 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 t += dt
# Output files writting # Output files writting
......
...@@ -63,7 +63,7 @@ def genInitialPosition(filename, r, H, ly, lx, rhop) : ...@@ -63,7 +63,7 @@ def genInitialPosition(filename, r, H, ly, lx, rhop) :
p.write_vtk(filename,0,0) p.write_vtk(filename,0,0)
# Define output directory # Define output directory
outputdir = "output" outputdir = "output_incompressible"
if not os.path.isdir(outputdir) : if not os.path.isdir(outputdir) :
os.makedirs(outputdir) os.makedirs(outputdir)
...@@ -75,7 +75,7 @@ rho = 1000 # fluid density ...@@ -75,7 +75,7 @@ rho = 1000 # fluid density
nu = 1e-6 # kinematic viscosity nu = 1e-6 # kinematic viscosity
# Numerical parameters # Numerical parameters
outf = 100 # number of iterations between output files outf = 2 # number of iterations between output files
dt = 1e-3 # time step dt = 1e-3 # time step
tEnd = 100 # final time tEnd = 100 # final time
...@@ -102,7 +102,7 @@ ii = 0 ...@@ -102,7 +102,7 @@ ii = 0
# #
# FLUID PROBLEM # 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="petsc4py",solver_options="-pc_type lu",usolid=True)
# Set the mesh geometry for the fluid computation # Set the mesh geometry for the fluid computation
fluid.load_msh("mesh.msh") fluid.load_msh("mesh.msh")
fluid.set_wall_boundary("Bottom") fluid.set_wall_boundary("Bottom")
......
L = 0.1; L = 0.2;
H = 0.1; H = 0.3;
y = 0; y = 0;
lc = 0.01; lc = 0.01;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment