How to calculate load carrying capacity using matlab code for journal bearing ?

7 views (last 30 days)
After discretization of Reynold's equation, found pressure at each node in journal bearing. Now to found load carrying capacity we need to integrate pressure P(I,J) *cos thetha(I,J) .We need the loop to apply the integration.

Answers (1)

recent works
recent works on 7 Sep 2023
function load_carrying_capacity = integrate_pressure(pressure, theta)
"""
Integrates the pressure over the bearing area.
Args:
pressure: The pressure at each node in the bearing.
theta: The angle at each node in the bearing.
Returns:
The load carrying capacity of the bearing.
"""
load_carrying_capacity =
0
for i = 1:size(pressure, 1)
for j = 1:size(pressure, 2)
load_carrying_capacity = load_carrying_capacity + pressure(
i, j) * cos(theta(i, j))
end
return load_carrying_capacity
To use this code, you would first need to define the arrays pressure and theta. You could do this by reading the data from a file or by calculating it using a numerical method.
Once you have defined these arrays, you could then call the function integrate_pressure() to calculate the load carrying capacity of the bearing.
pressure = [1 2 3; 4 5 6]
theta = [0 1 2; 3 4 5]
load_carrying_capacity = integrate_pressure(pressure, theta)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!