#----------------------------------------------------------
#  create elastic pile section
#  Python version of elasticPileSection.tcl
#----------------------------------------------------------

import openseespy.opensees as ops


def elasticPileSection():
    """Create the elastic pile section and return the tag of the combined 3D section."""

    ops.section('Elastic', 1, 25000000, 0.785, 0.049, 0.049, 9615385, 0.098)

    # elastic torsional material for combined 3D section
    ops.uniaxialMaterial('Elastic', 3000, 1.e10)

    # create combined 3D section
    secTag3D = 3
    ops.section('Aggregator', secTag3D, 3000, 'T', '-section', 1)

    return secTag3D
