[docs]@_geodocsdefcylinder(network,throat_diameter='throat.diameter',throat_length='throat.length',):r""" Calculate surface area for a cylindrical throat Parameters ---------- %(network)s %(Dt)s %(Lt)s Returns ------- surface_areas : ndarray A numpy ndarray containing throat surface area values """return_np.pi*network[throat_diameter]*network[throat_length]
[docs]@_geodocsdefcuboid(network,throat_diameter='throat.diameter',throat_length='throat.length',):r""" Calculate surface area for a cuboid throat Parameters ---------- %(network)s %(Dt)s %(Lt)s Returns ------- """return4*network[throat_diameter]*network[throat_length]
[docs]@_geodocsdefextrusion(network,throat_perimeter='throat.perimeter',throat_length='throat.length',):r""" Calculate surface area for an arbitrary shaped throat give the perimeter and length. Parameters ---------- %(network)s %(Pt)s %(Lt)s Returns ------- """returnnetwork[throat_perimeter]*network[throat_length]
[docs]@_geodocsdefrectangle(network,throat_length='throat.length',):r""" Calculate surface area for a rectangular throat Only suitable for true 2D simulations Parameters ---------- %(network)s %(Lt)s Returns ------- """return2*network[throat_length]