Note
Go to the end to download the full example code.
New Way 35 mm thrust bushing (S253502), vented vs. unvented corner¶
The porous journal (bore) and the porous annular thrust face meet at the inner
corner and are solved as one connected film (core.thrust_bushing), so
pressure and flow are continuous around it. Two sharp-cornered configurations
are compared: no vent (the corner pressure floats) and vented (the corner is
held at ambient pressure).
Outputs:
summary at the datasheet condition, and the no-vent radial/thrust cross-coupling at four journal positions
load capacity, stiffness, tilt stiffness and supply flow versus thrust film thickness (journal centred) and versus radial displacement
pressure maps on the unwrapped film with the shaft displaced downward
Stiffness is core.stiffness at every sweep point, about the bushing axis on
the thrust face plane with the other directions held fixed.
Datasheet values (S253502): bore 35.020 mm, thrust face 76.2 mm, length 66.68 mm, air gap 3.81 µm, flow on shaft 5.62 - 9.08 NLPM at 0.41 MPa.
Assumptions:
The datasheet air gap is the thrust film thickness; the journal runs on a 35.000 mm shaft.
The porous surfaces cover the full bore length and the full thrust annulus.
Graphite thicknesses are estimates. Both surfaces share one permeability, calibrated so that the flow of the unvented bushing at the datasheet pressure matches the middle of the datasheet range.
Set OAB_QUICK=1, or call main(quick=True), for a coarse mesh and short sweeps solved in this process; figures are then not saved.
Calibrated permeability: 4.55e-15 m² (hp journal 3.0 mm, thrust 4.5 mm)
Supply pressure: 0.41 MPa gauge, gaps: thrust 3.81 µm, journal 10.0 µm radial
no vent vented
thrust load (N) 1.33e+03 1.25e+03
thrust stiffness (N/µm) 56.9 86.9
radial stiffness (N/µm) 15.6 31.3
radial load, 95% ecc. (N) 142 281
tilt stiffness (N m/mrad) 91.7 98.9
radial force per tilt (N/mrad) 1e+03 1.04e+03
total flow (NLPM) 7.35 13.7
No-vent cross-coupling at thrust gap 3.81 µm
(constant load in the other directions; +h opens the thrust gap)
journal at C_xx C_xz C_hx C_hz ∂h/∂x ∂ry/∂x ∂x/∂h ∂ry/∂h
µm/N µm/N µm/N µm/N µm/µm µrad/µm µm/µm µrad/µm
0% 1.58e-01 0.00e+00 -0.00e+00 -1.76e-02 0.00e+00 -9.28e+00 0.00e+00 0.00e+00
20% 1.57e-01 -2.93e-06 -2.84e-05 -1.76e-02 -1.81e-04 -9.24e+00 1.67e-04 -7.21e-04
50% 1.56e-01 -1.78e-05 -1.24e-04 -1.76e-02 -7.97e-04 -9.02e+00 1.01e-03 -9.53e-04
80% 1.54e-01 -5.70e-05 -3.07e-04 -1.75e-02 -1.99e-03 -8.51e+00 3.25e-03 6.69e-03
import os
from concurrent.futures import ProcessPoolExecutor
from contextlib import nullcontext
from pathlib import Path
import matplotlib.pyplot as plt
import numpy as np
from scipy.optimize import brentq
from openairbearing import core, study
from openairbearing.plots import COLOURS, plot_field, plot_output
# the series of every plot in blue, red, black and grey, in that order
plt.rcParams["axes.prop_cycle"] = plt.cycler(color=COLOURS)
PA = 101325.0
PS = PA + 0.41e6 # datasheet supply pressure, 0.41 MPa gauge
Q_DATASHEET = 0.5 * (5.62 + 9.08) / 6e4 # m³/s free gas, middle of datasheet range
BORE_D = 35.020e-3
SHAFT_D = 35.000e-3 # assumed
THRUST_GAP = 3.81e-6
JOURNAL_GAP = 0.5 * (BORE_D - SHAFT_D)
HP_JOURNAL = 3e-3 # estimated graphite thickness
HP_THRUST = 4.5e-3 # estimated graphite thickness
JOURNAL_POSITIONS = (0.0, 0.2, 0.5, 0.8) # fraction of radial clearance
MAP_DISPLACEMENT = 0.8 # shaft displacement in the pressure maps, of clearance
DOFS = ("x", "y", "z", "rx", "ry", "rz")
OUTPUT_DIR = Path(__file__).with_name("ex09_output")
def bushing(kappa, vented, mesh):
"""Case document of the bushing; mesh overrides the default mesh density."""
return {
"kind": "thrust_bushing",
"bore_diameter": BORE_D,
"shaft_diameter": SHAFT_D,
"length": 66.68e-3,
"thrust_diameter": 76.2e-3,
"thrust_gap": THRUST_GAP,
"porous": {"kappa": kappa, "hp": HP_JOURNAL},
"porous_thrust": {"kappa": kappa, "hp": HP_THRUST},
"ps": PS,
"pa": PA,
"rotor_round": 0.0,
"bushing_chamfer": 0.0,
"vented": vented,
**mesh,
}
def calibrate_kappa(mesh):
"""Permeability at which the centred unvented bushing uses the datasheet flow."""
def excess_flow(log_kappa):
film = core.cases.case_from_dict(bushing(10**log_kappa, False, mesh)).film()
return core.solve_static(film, np.zeros(6)).flow_normal - Q_DATASHEET
return 10 ** brentq(excess_flow, -17, -13, xtol=1e-4)
def values(result, case, key):
"""One output of one case of a study result, in SI units along the sweep."""
return np.array(result["cases"][case]["outputs"][key]["values"], dtype=float)
def stiffness_matrix(result, case, index):
keys = [f"stiffness.{a}.{b}" for a in DOFS for b in DOFS]
return np.reshape([values(result, case, key)[index] for key in keys], (6, 6))
def coupling_terms(K):
"""Radial/thrust cross-coupling from one stiffness matrix K (SI units).
The shaft is carried only by this bushing, and every direction other than
the primary one carries a constant load (e.g. gravity): dq_other =
-K_oo^-1 K_op dq_p, and dq = K^-1 dF for a load change at the bushing axis
on the thrust face plane. +h opens the thrust gap (h = -z), +F_z pushes
the runner toward the face. rz does not change the film and is left out.
"""
x, z, ry, free = 0, 2, 4, list(range(5))
C = np.linalg.inv(K[:5, :5])
def follow(primary):
others = [d for d in free if d != primary]
dq = np.zeros(5)
dq[primary] = 1.0
dq[others] = -np.linalg.solve(K[np.ix_(others, others)], K[others, primary])
return dq
dq_x, dq_z = follow(x), follow(z)
return {
"C_xx": C[x, x] * 1e6,
"C_xz": C[x, z] * 1e6,
"C_hx": -C[z, x] * 1e6,
"C_hz": -C[z, z] * 1e6,
"∂h/∂x": -dq_x[z],
"∂ry/∂x": dq_x[ry],
"∂x/∂h": -dq_z[x],
"∂ry/∂h": -dq_z[ry],
}
COUPLING_UNITS = ("µm/N",) * 4 + ("µm/µm", "µrad/µm", "µm/µm", "µrad/µm")
def print_summary(kappa, by_x):
print(
f"Calibrated permeability: {kappa:.3g} m² "
f"(hp journal {HP_JOURNAL * 1e3:.1f} mm, thrust {HP_THRUST * 1e3:.1f} mm)\n"
f"Supply pressure: {(PS - PA) * 1e-6:.2f} MPa gauge, gaps: thrust "
f"{THRUST_GAP * 1e6:.2f} µm, journal {JOURNAL_GAP * 1e6:.1f} µm radial"
)
rows = { # name: (output, index along the radial sweep, factor)
"thrust load (N)": ("force.z", 0, -1.0),
"thrust stiffness (N/µm)": ("stiffness.z.z", 0, 1e-6),
"radial stiffness (N/µm)": ("stiffness.x.x", 0, 1e-6),
"radial load, 95% ecc. (N)": ("force.x", -1, -1.0),
"tilt stiffness (N m/mrad)": ("stiffness.ry.ry", 0, 1e-3),
"radial force per tilt (N/mrad)": ("stiffness.x.ry", 0, 1e-3),
"total flow (NLPM)": ("flow_normal", 0, 6e4),
}
names = [case["name"] for case in by_x["cases"]]
print(f"{'':32s}" + "".join(f"{name:>12s}" for name in names))
for name, (key, index, factor) in rows.items():
row = [values(by_x, n, key)[index] * factor for n in range(len(names))]
print(f"{name:32s}" + "".join(f"{v:>12.3g}" for v in row))
def print_cross_coupling(by_x):
fractions = np.array(by_x["axes"][0]["values"]) / JOURNAL_GAP
print(f"\nNo-vent cross-coupling at thrust gap {THRUST_GAP * 1e6:.2f} µm")
print("(constant load in the other directions; +h opens the thrust gap)")
for n, target in enumerate(JOURNAL_POSITIONS):
j = int(np.argmin(np.abs(fractions - target)))
terms = coupling_terms(stiffness_matrix(by_x, 0, j))
if n == 0:
print(f"{'journal at':>10s}" + "".join(f"{name:>12s}" for name in terms))
print(f"{'':10s}" + "".join(f"{unit:>12s}" for unit in COUPLING_UNITS))
print(f"{fractions[j]:>10.0%}" + "".join(f"{v:>12.2e}" for v in terms.values()))
def plot_performance(by_gap, by_x):
"""Load, stiffness, tilt stiffness and flow along both sweeps."""
fig, axes = plt.subplots(2, 4, figsize=(18, 8))
sweeps = ((by_gap, "z", "Thrust"), (by_x, "x", "Radial"))
for row, (result, dof, direction) in zip(axes, sweeps, strict=True):
plot_output(result, f"stiffness.{dof}.{dof}", row[1])
plot_output(result, "stiffness.ry.ry", row[2])
plot_output(result, "flow_normal", row[3])
x = np.array(result["axes"][0]["values"]) * 1e6
for n, case in enumerate(result["cases"]): # load is minus the film force
row[0].plot(x, -values(result, n, f"force.{dof}"), label=case["name"])
row[0].set(xlabel=row[1].get_xlabel(), ylabel=f"{direction} load capacity [N]")
row[0].legend()
for n, case in enumerate(by_x["cases"]): # off-centre, the two tilt axes differ
k = values(by_x, n, "stiffness.rx.rx") * 1e-3
axes[1, 2].plot(x, k, f"C{n}--", label=f"{case['name']}, rx, rx")
axes[1, 2].legend()
for ax in axes.flat:
ax.set_ylim(bottom=0)
fig.suptitle(
"Top: journal centred. Bottom: thrust film thickness "
f"{THRUST_GAP * 1e6:.2f} µm, radial clearance {JOURNAL_GAP * 1e6:.1f} µm"
)
fig.tight_layout()
return fig
def plot_pressure_maps(fields, names):
"""Gauge pressure on the unwrapped film, shaft displaced along -y."""
fig, axes = plt.subplots(
1, 2, figsize=(13, 4.5), sharey=True, constrained_layout=True
)
for ax, f, name in zip(axes, fields, names, strict=True):
plot_field(f, ax=ax, gauge=True, colorbar=False, vmin=0, vmax=(PS - PA) * 1e-6)
ax.axvline(0.0, color="white", lw=0.8)
ax.set(title=name, xlabel="s [mm]: thrust face s < 0, bore s > 0", ylabel="")
axes[0].set(ylabel="θ [°], narrow gap at 270°", yticks=np.arange(0, 361, 90))
fig.colorbar(ax.collections[-1], ax=axes, label="Gauge pressure [MPa]")
fig.suptitle(f"Shaft displaced {MAP_DISPLACEMENT:.0%} of the radial clearance")
return fig
def main(quick=None, workers=None):
quick = bool(os.environ.get("OAB_QUICK")) if quick is None else quick
workers = workers or (1 if quick else os.cpu_count())
mesh = {"n_theta": 16, "n_journal": 12, "n_thrust": 8} if quick else {}
n_gap, n_x = (3, 5) if quick else (30, 20)
gaps = np.union1d(np.linspace(0.5e-6, 15e-6, n_gap), [THRUST_GAP])
fractions = (*JOURNAL_POSITIONS, 0.95) if quick else np.linspace(0.0, 0.95, n_x)
kappa = calibrate_kappa(mesh)
entries = [
{"name": name, "case": bushing(kappa, vented, mesh)}
for name, vented in (("no vent", False), ("vented", True))
]
x = (np.array(fractions) * JOURNAL_GAP).tolist()
sweeps = (
{"path": "thrust_gap", "values": gaps.tolist()},
{"path": "position.x", "values": x},
)
with ProcessPoolExecutor(workers) if workers > 1 else nullcontext() as pool:
by_gap, by_x = (
study.run(
{"cases": entries, "sweep": [sweep], "stiffness": True}, executor=pool
)
for sweep in sweeps
)
displaced = [
study.field(entry["case"], {"y": -MAP_DISPLACEMENT * JOURNAL_GAP})
for entry in entries
]
print_summary(kappa, by_x)
print_cross_coupling(by_x)
figures = {
"performance": plot_performance(by_gap, by_x),
"pressure_map": plot_pressure_maps(displaced, [e["name"] for e in entries]),
}
if not quick:
OUTPUT_DIR.mkdir(exist_ok=True)
for name, fig in figures.items():
fig.savefig(OUTPUT_DIR / f"{name}.pdf")
plt.show()
return by_gap, by_x
if __name__ == "__main__":
main()
Total running time of the script: (10 minutes 30.578 seconds)

