ENTRANCE_ANGLED
Overview
Calculate the loss coefficient (K) for an angled sharp entrance to a pipe flush with a reservoir wall.
Excel Usage
=ENTRANCE_ANGLED(angle)
angle(float, required): Angle of inclination (90° = straight, 0° = parallel), [degrees]
Returns (float): Loss coefficient K for the angled entrance [-]
Examples
Example 1: 30 degree angle entrance
Inputs:
| angle |
|---|
| 30 |
Excel formula:
=ENTRANCE_ANGLED(30)
Expected output:
| Result |
|---|
| 0.9798 |
Example 2: 45 degree angle entrance
Inputs:
| angle |
|---|
| 45 |
Excel formula:
=ENTRANCE_ANGLED(45)
Expected output:
| Result |
|---|
| 0.8821 |
Example 3: 60 degree angle entrance
Inputs:
| angle |
|---|
| 60 |
Excel formula:
=ENTRANCE_ANGLED(60)
Expected output:
| Result |
|---|
| 0.77 |
Example 4: 90 degree (straight) entrance
Inputs:
| angle |
|---|
| 90 |
Excel formula:
=ENTRANCE_ANGLED(90)
Expected output:
| Result |
|---|
| 0.57 |
Python Code
import micropip
await micropip.install(["fluids"])
from fluids.fittings import entrance_angled as fluids_entrance_angled
def entrance_angled(angle):
"""
Calculate the loss coefficient (K) for an angled sharp entrance to a pipe flush with a reservoir wall.
See: https://fluids.readthedocs.io/fluids.fittings.html#fluids.fittings.entrance_angled
This example function is provided as-is without any representation of accuracy.
Args:
angle (float): Angle of inclination (90° = straight, 0° = parallel), [degrees]
Returns:
float: Loss coefficient K for the angled entrance [-]
"""
try:
angle = float(angle)
except (ValueError, TypeError):
return "Error: Angle must be a number."
if angle < 0 or angle > 90:
return "Error: Angle must be between 0 and 90 degrees."
try:
result = fluids_entrance_angled(angle=angle, method='Idelchik')
return float(result)
except Exception as e:
return f"Error: {str(e)}"