| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=20), | public | :: | model | = | 'none' | ||
| real(kind=dp), | public | :: | smagorinsky_constant | = | 0.14_dp | ||
| logical, | public | :: | wall_damping | = | .false. | ||
| real(kind=dp), | public | :: | wall_damping_n | = | 3._dp | ||
| real(kind=dp), | public | :: | von_karman_constant | = | 0.4_dp | ||
| real(kind=dp), | public | :: | roughness_length | = | 0._dp | ||
| class(field_t), | public, | pointer | :: | nut | => | null() | |
| class(field_t), | public, | pointer | :: | mixing_length_sq | => | null() |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(les_config_t), | intent(in) | :: | config |
Smagorinsky mixing length, optionally Mason-Thomson wall-damped.
Returns zero when wall damping is requested without a wall distance, which in turn zeroes the eddy viscosity built from it.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(les_t), | intent(in) | :: | self | |||
| real(kind=dp), | intent(in) | :: | spacing(3) | |||
| real(kind=dp), | intent(in), | optional | :: | wall_distance |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(les_t), | intent(in) | :: | self | |||
| real(kind=dp), | intent(in) | :: | velocity_gradient(3,3) | |||
| real(kind=dp), | intent(in) | :: | spacing(3) | |||
| real(kind=dp), | intent(in), | optional | :: | wall_distance |
Compute the Smagorinsky eddy-viscosity field in DIR_X layout.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(les_t), | intent(inout) | :: | self | |||
| class(base_backend_t), | intent(inout) | :: | backend | |||
| type(mesh_t), | intent(in) | :: | mesh | |||
| class(field_t), | intent(in) | :: | u | |||
| class(field_t), | intent(in) | :: | v | |||
| class(field_t), | intent(in) | :: | w | |||
| type(dirps_t), | intent(in) | :: | xdirps | |||
| type(dirps_t), | intent(in) | :: | ydirps | |||
| type(dirps_t), | intent(in) | :: | zdirps |
Add div(2nutS_ij) to the momentum right-hand-side fields.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(les_t), | intent(inout) | :: | self | |||
| class(base_backend_t), | intent(inout) | :: | backend | |||
| type(mesh_t), | intent(in) | :: | mesh | |||
| class(field_t), | intent(inout) | :: | du | |||
| class(field_t), | intent(inout) | :: | dv | |||
| class(field_t), | intent(inout) | :: | dw | |||
| class(field_t), | intent(in) | :: | u | |||
| class(field_t), | intent(in) | :: | v | |||
| class(field_t), | intent(in) | :: | w | |||
| type(dirps_t), | intent(in) | :: | xdirps | |||
| type(dirps_t), | intent(in) | :: | ydirps | |||
| type(dirps_t), | intent(in) | :: | zdirps |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(les_t), | intent(inout) | :: | self | |||
| class(base_backend_t), | intent(inout) | :: | backend |