Note
Go to the end to download the full example code.
Rectangular pad under a sliding surface¶
The surface over the pad moves in x at 0, 10 and 30 m/s. Sliding drags gas through the film, which shifts the pressure field, adds a tilting moment and a drag force, and moves supply flow from the leading to the trailing edge.

Rectangular pad, sliding in x
0 m/s: load 1192.5 N, drag 0.000 N at 2 µm
10 m/s: load 1173.8 N, drag 0.290 N at 2 µm
30 m/s: load 1067.6 N, drag 0.869 N at 2 µm
import matplotlib.pyplot as plt
import numpy as np
from openairbearing import core
from openairbearing.plots import COLOURS
# the series of every plot in blue, red, black and grey, in that order
plt.rcParams["axes.prop_cycle"] = plt.cycler(color=COLOURS)
LX, LY = 40e-3, 80e-3
PS = 0.41e6 + 101325.0
POROUS = core.Porous(kappa=1e-15, hp=4.5e-3)
SPEEDS = (0.0, 10.0, 30.0)
def main(n_gaps=14):
gaps = np.linspace(2e-6, 12e-6, n_gaps)
fig, axes = plt.subplots(2, 2, figsize=(10, 8))
print("Rectangular pad, sliding in x")
for speed in SPEEDS:
film = core.rectangular_pad(
LX, LY, porous=POROUS, ps=PS, velocity=lambda x, u=speed: (u, 0.0)
)
states = [core.solve_static(film, [h, 0.0, 0.0]) for h in gaps]
label = f"{speed:.0f} m/s"
um = gaps * 1e6
axes[0, 0].plot(um, [s.force("h") for s in states], label=label)
axes[0, 1].plot(um, [s.force("ry") for s in states], label=label)
axes[1, 0].plot(um, [-s.shear[0] for s in states], label=label)
axes[1, 1].plot(
um,
[s.flow_out["right"] / s.flow_supply for s in states],
label=label,
)
print(
f" {label:>7}: load {states[0].force('h'):7.1f} N, "
f"drag {-states[0].shear[0]:6.3f} N at {gaps[0] * 1e6:.0f} µm"
)
for ax, label in zip(
axes.ravel(),
[
"Load [N]",
"Moment about y [N·m]",
"Drag [N]",
"Share of flow leaving downstream",
],
strict=True,
):
ax.set_xlabel("Film thickness [µm]")
ax.set_ylabel(label)
axes[0, 0].legend()
fig.tight_layout()
plt.show()
if __name__ == "__main__":
main()
Total running time of the script: (0 minutes 14.547 seconds)