# Example 9 - Hydrodinamic Journal Bearings (using Fluid Flow methods)¶

In this example, we use the hydrodinamic bearing seen in Example 5.5.1 from .

It is the same bearing of Example 7, only this time we stick to the methods provided by the Fluid Flow subpackage of ROSS. We instantiate a Pressure Matrix object with the data given by the Example 5.5.1 from the book: The oil-film bearing has a diameter of 100 mm, is 30 mm long, and supports a static load of 525 N. The radial clearance is 0.1 mm and the oil film has a viscosity of 0.1 Pa s. When instantiated, a Pressure Matrix must be given either the eccentricity, or load of the bearing, or both. The one not parameter not given is them calculated based on the other one.

from ross.fluid_flow import fluid_flow as flow
from ross.fluid_flow.fluid_flow_geometry import (
sommerfeld_number,
modified_sommerfeld_number,
)
from ross.fluid_flow.fluid_flow_graphics import plot_eccentricity, plot_pressure_theta
from ross.fluid_flow.fluid_flow_coefficients import (
calculate_stiffness_and_damping_coefficients,
)

import numpy as np

# Instantiating a Pressure Matrix
nz = 8
ntheta = 128
length = 0.03
omega = 157.1
p_in = 0.0
p_out = 0.0
visc = 0.1
rho = 860.0
my_fluid_flow = flow.FluidFlow(
nz,
ntheta,
length,
omega,
p_in,
p_out,
visc,
rho,
)

# Getting the eccentricity

my_fluid_flow.eccentricity

2.7489700001412917e-05

# Calculating the modified sommerfeld number and the sommerfeld number

modified_s = modified_sommerfeld_number(
my_fluid_flow.omega,
my_fluid_flow.viscosity,
my_fluid_flow.length,

3.5718916513907613

# Plotting the eccentricity