GaPFlow.models.viscous#
Viscous stress tensor components.
This module contains functions that calculate the (generalized) Newtonian stress tensor components at the walls of the bottom and top surface, and averaged across the gap.
Functions
|
Gap-averaged viscous stress tensor (normal and in-plane shear components). |
|
Viscous stress tensor at the bottom wall. |
|
Viscous stress tensor at the top wall. |
- GaPFlow.models.viscous.stress_avg(q, h, U, V, eta, zeta, Lsb=0.0, Lst=0.0)#
Gap-averaged viscous stress tensor (normal and in-plane shear components).
- Parameters:
q (numpy.ndarray) – Height-averaged variables field. First index is mass density, 2nd and 3rd mass flux in x and y direction, respectively.
h (numpy.ndarray) – Gap height field. First index is actual height, 2nd and 3rd heihgt gradients in x and y direction, respectively.
U (float) – Lower wall velocity in x direction.
V (float) – Upper wall velocity in y direction.
eta (float) – Dynamic shear viscosity
zeta (float) – Dynamic bulk viscosity
Lsb (float, optional) – Slip length bottom (default is 0. –> no slip)
Lst (float, optional) – Slip length top (default is 0. –> no slip)
- Returns:
Gap-averaged viscous stress tensor components
- Return type:
numpy.ndarray
- GaPFlow.models.viscous.stress_bottom(q, h, U, V, eta, zeta, Lsb=0.0, Lst=0.0)#
Viscous stress tensor at the bottom wall.
- Parameters:
q (numpy.ndarray) – Height-averaged variables field. First index is mass density, 2nd and 3rd mass flux in x and y direction, respectively.
h (numpy.ndarray) – Gap height field. First index is actual height, 2nd and 3rd heihgt gradients in x and y direction, respectively.
U (float) – Lower wall velocity in x direction.
V (float) – Upper wall velocity in y direction.
eta (float) – Dynamic shear viscosity
zeta (float) – Dynamic bulk viscosity
Lsb (float, optional) – Slip length bottom (default is 0. –> no slip)
Lst (float, optional) – Slip length top (default is 0. –> no slip)
- Returns:
Viscous stress tensor components
- Return type:
numpy.ndarray
- GaPFlow.models.viscous.stress_top(q, h, U, V, eta, zeta, Lsb=0.0, Lst=0.0)#
Viscous stress tensor at the top wall.
- Parameters:
q (numpy.ndarray) – Height-averaged variables field. First index is mass density, 2nd and 3rd mass flux in x and y direction, respectively.
h (numpy.ndarray) – Gap height field. First index is actual height, 2nd and 3rd heihgt gradients in x and y direction, respectively.
U (float) – Lower wall velocity in x direction.
V (float) – Upper wall velocity in y direction.
eta (float) – Dynamic shear viscosity
zeta (float) – Dynamic bulk viscosity
Lsb (float, optional) – Slip length bottom (default is 0. –> no slip)
Lst (float, optional) – Slip length top (default is 0. –> no slip)
- Returns:
Viscous stress tensor components
- Return type:
numpy.ndarray