Skip to content

Commit

Permalink
fix: Documenter stopped accepting empty cells
Browse files Browse the repository at this point in the history
  • Loading branch information
agdestein committed Oct 18, 2023
1 parent 9b65756 commit 914b71a
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 7 deletions.
1 change: 1 addition & 0 deletions examples/Actuator3D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ plot_vorticity(setup, V, t_end)

# Plot streamfunction
## plot_streamfunction(setup, V, t_end)
nothing

# Plot force
plot_force(setup, t_end)
1 change: 1 addition & 0 deletions examples/BackwardFacingStep3D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,4 @@ plot_vorticity(setup, V, t_end)

# Plot streamfunction
## plot_streamfunction(setup, V, t_end)
nothing
1 change: 1 addition & 0 deletions examples/DecayingTurbulence2D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ device = identity
# Note: `cu` converts to Float32
## using CUDA
## device = cu
nothing

# Viscosity model
viscosity_model = LaminarModel(; Re = T(10_000))
Expand Down
1 change: 1 addition & 0 deletions examples/DecayingTurbulence3D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ device = identity
# Note: `cu` converts to Float32
## using CUDA
## device = cu
nothing

# Viscosity model
viscosity_model = LaminarModel(; Re = T(10_000))
Expand Down
1 change: 1 addition & 0 deletions examples/LidDrivenCavity2D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ device = identity
# For GPU (note that `cu` converts to `Float32`)
## using CUDA
## device = cu
nothing

# Available viscosity models are:
#
Expand Down
1 change: 1 addition & 0 deletions examples/LidDrivenCavity3D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,4 @@ plot_vorticity(setup, V, t_end)

# Plot streamfunction
## plot_streamfunction(setup, V, t_end)
nothing
1 change: 1 addition & 0 deletions examples/ShearLayer2D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,4 @@ plot_vorticity(setup, V, t_end)

# Plot streamfunction
## plot_streamfunction(setup, V, t_end)
nothing
1 change: 1 addition & 0 deletions examples/TaylorGreenVortex2D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ plot_vorticity(setup, V, t_end)

# Plot streamfunction
## plot_streamfunction(setup, V, t_end)
nothing

# Energy history
outputs[1]
19 changes: 12 additions & 7 deletions examples/TaylorGreenVortex3D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ device = identity
# For GPU (note that `cu` converts to `Float32`)
## using CUDA
## device = cu
nothing

# Viscosity model
viscosity_model = LaminarModel(; Re = T(2_000))
Expand Down Expand Up @@ -66,11 +67,12 @@ V₀, p₀ = create_initial_conditions(
);

# Solve steady state problem
V, p = solve_steady_state(setup, V₀, p₀; npicard = 6)
## V, p = solve_steady_state(setup, V₀, p₀; npicard = 6)
nothing

# Iteration processors
processors = (
field_plotter(device(setup); nupdate = 5),
## field_plotter(device(setup); nupdate = 5),
## energy_history_plotter(device(setup); nupdate = 1),
## energy_spectrum_plotter(device(setup); nupdate = 100),
## animator(device(setup), "vorticity.mp4"; nupdate = 4),
Expand All @@ -94,23 +96,26 @@ V, p, outputs = solve_unsteady(
inplace = true,
device,
);
#md current_figure()

# ## Post-process
#
# We may visualize or export the computed fields `(V, p)`

# Export to VTK
save_vtk(setup, setup, V, p, "output/solution")
save_vtk(setup, V, p, t_end, "output/solution")

# Plot pressure
plot_pressure(setup, p; levels = 3, alpha = 0.05)
nothing #md
plot_pressure(setup, p; levels = 3, alpha = 0.05) #!md

# Plot velocity
plot_velocity(setup, V, t_end; levels = 3, alpha = 0.05)
nothing #md
plot_velocity(setup, V, t_end; levels = 3, alpha = 0.05) #!md

# Plot vorticity
plot_vorticity(setup, V, t_end; levels = 5, alpha = 0.05)
nothing #md
plot_vorticity(setup, V, t_end; levels = 5, alpha = 0.05) #!md

# Plot streamfunction
## plot_streamfunction(setup, V, t_end)
nothing

0 comments on commit 914b71a

Please sign in to comment.