Circular thrust pad: the solver against the closed form

Load, stiffness and flow over film thickness, and the pressure profile at one film thickness, from the finite-element solver and from the exact solution for a flat parallel pad.

Film thickness 5 µm
import matplotlib.pyplot as plt
import numpy as np

from openairbearing import core, display, plots
from openairbearing.core import reference

RADIUS = 18e-3
PS = 0.6e6 + 101325.0
# Restrictor that passes 5 L/min of free air when it vents straight to ambient.
POROUS = core.Porous.from_free_flow(
    5.0 / 6e4, area=np.pi * RADIUS**2, p_supply=PS, hp=4.5e-3
)


def main(n_gaps=30):
    gaps = np.linspace(1e-6, 12e-6, n_gaps)
    film = core.circular_pad(RADIUS, porous=POROUS, ps=PS)
    states = [core.solve_static(film, [h, 0.0, 0.0]) for h in gaps]
    stiff = [core.stiffness(film, [h, 0.0, 0.0])[0, 0] for h in gaps]
    exact = [reference.circular_pad(RADIUS, h, porous=POROUS, ps=PS) for h in gaps]
    exact_stiff = [
        reference.stiffness(reference.circular_pad, h, RADIUS, porous=POROUS, ps=PS)
        for h in gaps
    ]

    fig, axes = plt.subplots(2, 2, figsize=(10, 8))
    for ax, solver, closed, name, unit in [
        (
            axes[0, 0],
            [s.force("h") for s in states],
            [e.load for e in exact],
            "Load",
            "N",
        ),
        (axes[0, 1], stiff, exact_stiff, "Stiffness", "N/m"),
        (
            axes[1, 0],
            [s.flow_normal for s in states],
            [e.flow_normal for e in exact],
            "Supply flow",
            "m³/s",
        ),
    ]:
        um = display.shown(gaps, "m")
        ax.plot(um, display.shown(closed, unit), "k-", label="closed form")
        ax.plot(um, display.shown(solver, unit), "r--", label="solver")
        ax.set_xlabel(display.label("Film thickness", "m"))
        ax.set_ylabel(display.label(name, unit))
    axes[0, 0].legend()

    # Pressure across the pad at 5 µm.
    h = 5e-6
    state = core.solve_static(film, [h, 0.0, 0.0])
    profile = reference.circular_pad(RADIUS, h, porous=POROUS, ps=PS)
    gauge = display.shown(profile.p - film.pa, "Pa")
    for side in (-1, 1):  # the closed form runs along one radius
        x = display.shown(side * profile.x, "m", coordinate=True)
        axes[1, 1].plot(x, gauge, "k-")
    plots.plot_profile(state, ax=axes[1, 1], gauge=True, color="r", linestyle="--")
    axes[1, 1].set_title(f"Film thickness {h * 1e6:.0f} µm")

    fig.tight_layout()
    plt.show()


if __name__ == "__main__":
    main()

Total running time of the script: (0 minutes 19.880 seconds)