Skip to content

Commit

Permalink
Merge branch 'SutherlandsLaw' of github.com:DanielDoehring/Trixi.jl i…
Browse files Browse the repository at this point in the history
…nto SutherlandsLaw
  • Loading branch information
DanielDoehring committed Mar 22, 2024
2 parents 5c4c001 + e743e8d commit c9a26ae
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 c9a26ae

Please sign in to comment.