| 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 | ||
| logical, | public | :: | wall_supplied | = | .false. |
Wall the Mason-Thomson damping measures from, supplied by the case through configure_wall_damping (the ABL case uses its kappa and z0) |
|
| real(kind=dp), | public | :: | von_karman_constant | = | 0._dp | ||
| real(kind=dp), | public | :: | roughness_length | = | 0._dp | ||
| logical, | public | :: | abl_wall_boundary_enabled | = | .false. | ||
| real(kind=dp), | public | :: | abl_wall_sampling_height | = | 0._dp |
y-vertex the wall model samples the velocity at (1 is the wall). |
|
| integer, | public | :: | abl_wall_sample_plane | = | 2 | ||
| 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 |
Supply the wall the Mason-Thomson damping measures from. The wall distance is taken from the lower y boundary, so this suits cases with a single wall there.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(les_t), | intent(inout) | :: | self | |||
| real(kind=dp), | intent(in) | :: | kappa | |||
| real(kind=dp), | intent(in) | :: | roughness_length |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(les_t), | intent(inout) | :: | self | |||
| real(kind=dp), | intent(in) | :: | kappa | |||
| real(kind=dp), | intent(in) | :: | roughness_length | |||
| real(kind=dp), | intent(in) | :: | sampling_height | |||
| integer, | intent(in) | :: | sample_plane |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(les_t), | intent(inout) | :: | self | |||
| class(base_backend_t), | intent(inout) | :: | backend |