Ejemplo n.º 1
0
def max_linear_flow(Diam, HeadlossCDC, Ratio_Error, KMinor):
    """Return the maximum flow that will meet the linear requirement.
    Maximum flow that can be put through a tube of a given diameter without
    exceeding the allowable deviation from linear head loss behavior
    """
    flow = (pc.area_circle(Diam)).magnitude * np.sqrt(
        (2 * Ratio_Error * HeadlossCDC * pc.gravity) / KMinor)
    return flow.magnitude
Ejemplo n.º 2
0
def lfom_drillbit_area(FLOW, HL_LFOM, drill_series_uom):
    return pc.area_circle(
        lfom_drillbit_diameter(FLOW, HL_LFOM, drill_series_uom))
Ejemplo n.º 3
0
def drillbit_area(FLOW, HL_LFOM, drill_bits):
    return pc.area_circle(orifice_diameter(FLOW, HL_LFOM, drill_bits))
Ejemplo n.º 4
0
 def __drillbit_area(self):
     return pc.area_circle(self.drillbit_diameter())
Ejemplo n.º 5
0
from aide_design import physchem as pc
from aide_design.units import unit_registry as u
from aide_design import utility as ut

# h_drive = height of drive pipe
# A_drive = Area of drive pipe
# x_max = maximum spring compression distance, equal to plate ampltitude
# h_eff = Necessary pumping height
# A_eff = Area of effluent flow

# Minimum force balance
# k_min = minimum k value needed to open from closed position
temp = u.Quantity(22, u.degC)
# Assume room temperature.
rho = pc.density_water(temp)
g = pc.gravity
x_max = .045 * u.m
h_drive = .51 * u.m
d_drive = 0.025273 * u.m
A_drive = pc.area_circle(d_drive)
P_hydrostatic = rho * g * h_drive
k_min = P_hydrostatic * A_drive / x_max

# Equation for k value
# k = EA/L
# L_opt = optimal spring length
# A_spring = Area of spring

# Spring force = rho*g*h_drive*A_drive = E*A_spring*x/L
# L_opt = E*A_spring*x/(rho*g*h_drive*A_drive)