Skip to content

Commit

Permalink
Update src/equations/compressible_navier_stokes.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Schlottke-Lakemper <[email protected]>
  • Loading branch information
DanielDoehring and sloede authored Mar 22, 2024
1 parent e521e09 commit e743e8d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/equations/compressible_navier_stokes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ struct GradientVariablesEntropy end
"""
dynamic_viscosity(u, equations)
Wrapper for the dynamic viscosity that calls
`dynamic_viscosity(u, equations.mu, equations)` which dispatches on the type of
`equations.mu`.
For constant `equations.mu`, i.e., `equations.mu` is of `Real`-type it is returned directly.
In the opposite case, `equations.mu` is assumed to be a function with arguments
`u` and `equations` and is called with these arguments.
Wrapper for the dynamic viscosity that calls
`dynamic_viscosity(u, equations.mu, equations)`, which dispatches on the type of
`equations.mu`.
For constant `equations.mu`, i.e., `equations.mu` is of `Real`-type it is returned directly.
In all other cases, `equations.mu` is assumed to be a function with arguments
`u` and `equations` and is called with these arguments.
"""
dynamic_viscosity(u, equations) = dynamic_viscosity(u, equations.mu, equations)
dynamic_viscosity(u, mu::Real, equations) = mu
Expand Down

0 comments on commit e743e8d

Please sign in to comment.