Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update turbulent taylor couette time stepping in example #1235

Merged
merged 7 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading