.. _UserDefined-BeamIntegration: UserDefined ^^^^^^^^^^^^ Create a UserDefined beamIntegration object. This option allows the user to specified locations and weights of the integration points. .. function:: beamIntegration 'UserDefined' tag N secTags locs wts .. csv-table:: :header: "Argument", "Type", "Description" :widths: 10, 10, 40.. csv-table:: :header: "Argument", "Type", "Description" :widths: 10, 10, 40 ``tag``, |integer|, tag of the beam integration ``N``, |integer|, number of integration points along the element. ``secTags``, |listi|, A list previous-defined section objects. ``locs``, |listf|, Locations of integration points along the element. ``wts``, |listf|, weights of integration points. Places ``N`` integration points along the element, which are defined in ``locs`` on the natural domain [0, 1]. The weight of each integration point is defined in the ``wts`` also on the [0, 1] domain. The force-deformation response at each integration point is defined by the ``secs``. The ``locs``, ``wts``, and ``secs`` should be of length ``N``. In general, there is no accuracy for this approach to numerical integration. .. admonition:: Example: The following examples demonstrate the command in Tcl and Python script to add a Lobatto beam integration with tag 2 and 6 integration points that uses the previously defined section whose tag is 1. 1. **Tcl Code** .. code-block:: tcl locs = [0.1, 0.3, 0.5, 0.7, 0.9] wts = [0.2, 0.15, 0.3, 0.15, 0.2] secs = [1, 2, 2, 2, 1] beamIntegration 'UserDefined' 1 5 secs locs wtsa 2. **Python Code** .. code-block:: python locs = [0.1, 0.3, 0.5, 0.7, 0.9] wts = [0.2, 0.15, 0.3, 0.15, 0.2] secs = [1, 2, 2, 2, 1] beamIntegration('UserDefined',1,len(secs),*secs,*locs,*wts)