.. _getLoadFactor: getLoadFactor Command ********************* This command returns the current load factor of a load pattern, i.e. the factor by which the reference loads of the pattern are multiplied, as given by its :ref:`timeSeries` at the time of the last analysis step. .. tabs:: .. tab:: Tcl .. function:: getLoadFactor $patternTag .. tab:: Python .. code-block:: python factor = ops.getLoadFactor(patternTag) .. csv-table:: :header: "Argument", "Type", "Description" :widths: 10, 10, 40 $patternTag, |integer|, tag of the load pattern .. note:: The load factor is updated when the loads are applied, i.e. at each analysis step. Changing the time with :ref:`setTime` does not change it until the next step. .. admonition:: Example: The following example sets the variable **lambda** to the current load factor of load pattern **1**. .. tabs:: .. tab:: Tcl .. code-block:: tcl set lambda [getLoadFactor 1] .. tab:: Python .. code-block:: python lam = ops.getLoadFactor(1) Code Developed by: |fmk|