필터 지우기
필터 지우기

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

조회 수: 14 (최근 30일)
Pratyush
Pratyush 2023년 9월 7일
답변: recent works 2023년 9월 7일
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.

답변 (1개)

recent works
recent works 2023년 9월 7일
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)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by