Skip to content

Commit

Permalink
Update turbulent taylor couette time stepping in example (#1235)
Browse files Browse the repository at this point in the history
Description
The Taylor-Couette example was using constant time-stepping and a BDF3 time-integrator. This is not a good practice for this example. I have updated the parameter file, the prm file and also the .png files of the results. The new results are much better especially for fine meshes.
  • Loading branch information
blaisb authored Aug 8, 2024
1 parent 60c5f97 commit e27c86c
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Features
---------

- Solvers: ``lethe-fluid-matrix-free`` (with Q2-Q2 or Q3-Q3)
- Transient problem using ``bdf3`` time integrator
- Transient problem using ``bdf2`` time integrator
- Demonstrates the implementation of initial conditions for velocity and pressure
- Demonstrates the postprocessing of the enstrophy

Expand Down Expand Up @@ -237,16 +237,17 @@ To monitor the kinetic energy and the enstrophy, we set calculation to ``true``
Simulation Control
~~~~~~~~~~~~~~~~~~

The ``simulation control`` subsection controls the flow of the simulation. To maximize the temporal accuracy of the simulation, we use a third order ``bdf3`` scheme. Results are written every 2 time-steps. To ensure a more adequate visualization of the high-order elements, we set ``subdivision = 2``. This will allow Paraview to render the high-order solutions with more fidelity.
The ``simulation control`` subsection controls the flow of the simulation. To maximize the temporal accuracy of the simulation, we use a second-order ``bdf2`` scheme. Results are written every 10 time-steps. To ensure a more adequate visualization of the high-order elements, we set ``subdivision = 2``. This will allow Paraview to render the high-order solutions with more fidelity.

.. code-block:: text
subsection simulation control
set method = bdf3
set time step = 0.0125
set number mesh adapt = 0
set method = bdf2
set time step = 0.01
set adapt = true
set max cfl = 1
set time end = 60
set output frequency = 2
set output frequency = 10
set subdivision = 2
end
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,23 @@
set dimension = 3

#---------------------------------------------------
# Simulation Control
# Simulation Control
#---------------------------------------------------

subsection simulation control
set method = bdf3
set output name = taylor-couette
set output path = ./output/
set time end = 60
set time step = 0.0125
set output frequency = 2
set subdivision = 2
set method = bdf2
set output name = taylor-couette
set output path = ./output/
set time end = 60
set adapt = true
set max cfl = 1
set time step = 0.01
set output frequency = 10
set subdivision = 2
end

#------------------------ ---------------------------
# Physical Properties
# Physical Properties
#---------------------------------------------------

subsection physical properties
Expand All @@ -28,7 +30,7 @@ subsection physical properties
end

#---------------------------------------------------
# Initial conditions
# Initial conditions
#---------------------------------------------------

subsection initial conditions
Expand All @@ -46,53 +48,50 @@ end
#---------------------------------------------------

subsection mesh
set type = dealii
set type = dealii
set grid type = cylinder_shell
set grid arguments = 3.14159265359 : 0.5 : 1.0 : 5 : 4 : true
set initial refinement = 4
end


#---------------------------------------------------
# Forces
#---------------------------------------------------

subsection forces
set verbosity = quiet # Output force and torques in log <quiet|verbose>
set calculate torque = true # Enable torque calculation
set verbosity = quiet # Output force and torques in log <quiet|verbose>
set calculate torque = true # Enable torque calculation
end

#---------------------------------------------------
# FEM
#---------------------------------------------------

subsection FEM
set velocity order = 2 #3 for Q3
set pressure order = 2 #3 for Q3
set velocity order = 2 #3 for Q3
set pressure order = 2 #3 for Q3
end

#---------------------------------------------------
# Post-Processing
#---------------------------------------------------

subsection post-processing

# Kinetic energy calculation
set calculate kinetic energy = true
set calculate kinetic energy = true

# Enstrophy calculation
set calculate enstrophy = true
set calculate enstrophy = true
end


#---------------------------------------------------
# Boundary Conditions
#---------------------------------------------------

subsection boundary conditions
set number = 3
set number = 3
set fix pressure constant = true
subsection bc 0
subsection bc 0
set type = function
subsection u
set Function expression = -y
Expand All @@ -104,20 +103,29 @@ subsection boundary conditions
set Function expression = 0
end
end
subsection bc 1
subsection bc 1
set type = noslip
end
subsection bc 2
subsection bc 2
set type = periodic
set id = 2
set periodic_id = 3
set periodic_direction = 2
end
end

#---------------------------------------------------
# Timer
#---------------------------------------------------

subsection timer
set type = iteration
end

#---------------------------------------------------
# Non-Linear Solver Control
#---------------------------------------------------

subsection non-linear solver
subsection fluid dynamics
set tolerance = 1e-3
Expand Down

0 comments on commit e27c86c

Please sign in to comment.