.. _PipeElement: Pipe and CurvedPipe Elements ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ These commands are used to construct elastic three-dimensional pipe elements, straight (Pipe) or curved (CurvedPipe), for piping networks. The elements include internal pressure, thermal effects and shear deformation. .. tabs:: .. tab:: Tcl Not available in the Tcl interpreter. .. tab:: Python .. code-block:: python ops.element('Pipe', eleTag, iNode, jNode, pipeMatTag, pipeSecTag, <'-T0', T0>, <'-p', p>, <'-noThermalLoad'>, <'-noPressureLoad'>) .. code-block:: python ops.element('CurvedPipe', eleTag, iNode, jNode, pipeMatTag, pipeSecTag, xC, yC, zC, <'-TI'>, <'-T0', T0>, <'-p', p>, <'-tolWall', tolWall>, <'-noThermalLoad'>, <'-noPressureLoad'>) .. csv-table:: :header: "Argument", "Type", "Description" :widths: 10, 10, 40 eleTag, |integer|, unique element object tag iNode jNode, |integer|, end nodes pipeMatTag, |integer|, tag of a previously defined :ref:`Pipe material ` pipeSecTag, |integer|, tag of a previously defined :ref:`Pipe section ` xC yC zC, |float|, "CurvedPipe: coordinates of the center of the curve, or of the intersection of the tangents at the ends with '-TI'" '-TI', |string|, "CurvedPipe: xC yC zC are the tangent intersection point, which is converted to the center (optional)" T0, |float|, "stress-free temperature (optional: default = 0.0)" p, |float|, "internal pressure (optional: default = 0.0)" tolWall, |float|, "CurvedPipe: tolerance for the checks of the radius and of the tangent intersection point, as a fraction of the wall thickness, between 0 and 1 (optional: default = 0.1)" '-noThermalLoad', |string|, "do not include the load due to thermal effects (optional: default = included)" '-noPressureLoad', |string|, "do not include the load due to internal pressure (optional: default = included)" .. rubric:: Discussion The elements are linear-elastic and must be used in a model with ``-ndm 3 -ndf 6``. The material properties are those of the Pipe material at the average temperature of the element, which is set with the **setNodeTemperature** command; :math:`T_0` is added to it. The internal pressure affects the axial deformation of the straight pipe element. The elements create their own linear coordinate transformation: the local x axis is along the element, and the local x-z plane contains the global Z axis, or the global X axis if the element is parallel to Z. .. note:: #. Only uniform loads are accepted, e.g. for gravity, and, unlike for other beam-column elements, the load values are in the **global** coordinate system, which is convenient for curved pipes: .. code-block:: python ops.eleLoad('-ele', *eleTags, '-type', '-beamUniform', wy, wz, wx) where wy, wz and wx are the loads per unit length in the global Y, Z and X directions. #. The element responses include the section forces at end I, the center and end J, and at any section X: .. code-block:: python res = ops.eleResponse(ele, 'sectionI') res = ops.eleResponse(ele, 'sectionC') res = ops.eleResponse(ele, 'sectionJ') res = ops.eleResponse(ele, 'sectionX', perc) where, for a curved pipe of angle :math:`2\theta_0`, perc = -1 gives section I (:math:`\theta = -\theta_0`), 0 the center section (:math:`\theta = 0`), 1 section J (:math:`\theta = \theta_0`), and other values the section at :math:`\theta = perc \, \theta_0`. The Pipe element also gives the usual **force**, **localForce** and **basicForce** responses. #. **pipe** is another name for the Pipe element. .. admonition:: Example The following example defines a pipe material and section, a straight pipe element from node **1** to node **2**, and a 90 degree curved pipe element from node **2** to node **3**, with its center at (2.0, 1.0, 0.0), with an internal pressure of **0.5**. .. code-block:: python ops.model('basic', '-ndm', 3, '-ndf', 6) ops.node(1, 0.0, 0.0, 0.0) ops.node(2, 2.0, 0.0, 0.0) ops.node(3, 3.0, 1.0, 0.0) ops.uniaxialMaterial('Pipe', 1, 1, 20.0, 29000.0, 0.3, 6.5e-6) ops.section('Pipe', 1, 10.0, 0.5, '-defaultAlphaV') ops.element('Pipe', 1, 1, 2, 1, 1, '-p', 0.5) ops.element('CurvedPipe', 2, 2, 3, 1, 1, 2.0, 1.0, 0.0, '-p', 0.5) Code Developed by: Minjie Zhu