# Path: proptools/tank_structure.py
# def crown_thickness(p_t, R, stress, weld_eff):
# def knuckle_thickness(p_t, a, b, stress, weld_eff):
# def cylinder_thickness(p_t, a, stress, weld_eff):
# def sphere_thickness(p_t, a, stress, weld_eff):
# def max_axial_load(p_t, a, t_c, l_c, E):
# def cylinder_mass(a, t_c, l_c, rho):
# def sphere_mass(a, t, rho):
# def ellipse_mass(a, b, t, rho):
# def cr_ex_press_sphere(a, t, E, v):
# def cr_ex_press_sphere_end(a, t, E):
# def cr_ex_press_ellipse_end(a, b, t, E, C_b=0.05):
# def cr_ex_press_cylinder(a, t_c, l_c, E, v):
# def sphere_volume(a):
# def ellipse_volume(a, b):
# def cylinder_volume(a, l_c):
# def knuckle_factor(ellipse_ratio):
# def ellipse_design_factor(ellipse_ratio):
#     K = knuckle_factor(a / b)
# 
# Path: proptools/units.py
# def inch2meter(x):
#     return x * 0.0254
# 
# def psi2pascal(x):
#     return x * 6895
# 
# def lbf2newton(x):
#     return x * 4.448
# 
# def lbm2kilogram(x):
#     return x * 0.4536


import unittest
from proptools import tank_structure as ts
from proptools.units import inch2meter, psi2pascal, lbf2newton, lbm2kilogram


class TestStringMethods(unittest.TestCase):

    def test_sample_8_3(self):
        # Do sample problem 8-3 from Huzel and Huang.
        stress = psi2pascal(38e3)

# Path: proptools/tank_structure.py
# def crown_thickness(p_t, R, stress, weld_eff):
# def knuckle_thickness(p_t, a, b, stress, weld_eff):
# def cylinder_thickness(p_t, a, stress, weld_eff):
# def sphere_thickness(p_t, a, stress, weld_eff):
# def max_axial_load(p_t, a, t_c, l_c, E):
# def cylinder_mass(a, t_c, l_c, rho):
# def sphere_mass(a, t, rho):
# def ellipse_mass(a, b, t, rho):
# def cr_ex_press_sphere(a, t, E, v):
# def cr_ex_press_sphere_end(a, t, E):
# def cr_ex_press_ellipse_end(a, b, t, E, C_b=0.05):
# def cr_ex_press_cylinder(a, t_c, l_c, E, v):
# def sphere_volume(a):
# def ellipse_volume(a, b):
# def cylinder_volume(a, l_c):
# def knuckle_factor(ellipse_ratio):
# def ellipse_design_factor(ellipse_ratio):
#     K = knuckle_factor(a / b)
# 
# Path: proptools/units.py
# def inch2meter(x):
#     return x * 0.0254
# 
# def psi2pascal(x):
#     return x * 6895
# 
# def lbf2newton(x):
#     return x * 4.448
# 
# def lbm2kilogram(x):
#     return x * 0.4536


# Path: proptools/tank_structure_test.py
import unittest
from proptools import tank_structure as ts
from proptools.units import inch2meter, psi2pascal, lbf2newton, lbm2kilogram



class TestStringMethods(unittest.TestCase):

    def test_sample_8_3(self):
        # Do sample problem 8-3 from Huzel and Huang.
        stress = psi2pascal(38e3)

        a = inch2meter(41.0)