.. _PFEMElements: PFEM Fluid Elements ^^^^^^^^^^^^^^^^^^^ These commands are used to construct the fluid elements of the Particle Finite Element Method (PFEM), for fluid and fluid-structure interaction analysis: the PFEMElementBubble element, a triangle (2D) or tetrahedron (3D) with a bubble function, for incompressible or quasi-incompressible fluids, and the PFEMElementCompressible element, a 2D triangle for compressible fluids. .. tabs:: .. tab:: Tcl .. function:: element PFEMElement2DBuble $eleTag $node1 $node2 $node3 $rho $mu $b1 $b2 <$thickness $kappa> Only the 2D bubble element is available in Tcl, under the name **PFEMElement2DBuble**. .. tab:: Python .. code-block:: python # 2D ops.element('PFEMElementBubble', eleTag, node1, node2, node3, rho, mu, b1, b2, ) # 3D ops.element('PFEMElementBubble', eleTag, node1, node2, node3, node4, rho, mu, b1, b2, b3, ) # 2D compressible ops.element('PFEMElementCompressible', eleTag, node1, node2, node3, node4, rho, mu, b1, b2, ) .. csv-table:: :header: "Argument", "Type", "Description" :widths: 10, 10, 40 $eleTag, |integer|, unique element object tag $node1 ..., |integer|, "the element nodes: 3 for the 2D bubble element, 4 for the 3D bubble element, and 4 for the compressible element, the last being the middle node" $rho, |float|, fluid density $mu, |float|, fluid viscosity $b1 $b2 $b3, |float|, "body accelerations in the x, y (and z, 3D) directions" $thickness, |float|, "element thickness, 2D only (optional: default = 1.0)" $kappa, |float|, "fluid bulk modulus (optional: default = -1, incompressible fluid, for the bubble elements; 2.15e9 for the compressible element)" .. rubric:: Discussion The elements are part of the PFEM analysis tools of OpenSeesPy, in which the fluid domain is remeshed at each time step. Each node of an element must have a pressure constraint, which provides the pressure degree of freedom on a separate pressure node; the element cannot be created without it. The pressure constraints, the meshing of the fluid domain, and the PFEM integrator, system and test are described in the OpenSeesPy documentation of the PFEM commands, https://openseespydoc.readthedocs.io/en/latest/src/fsicmds.html. For the bubble elements, a positive bulk modulus :math:`\kappa` gives a quasi-incompressible fluid; with :math:`\kappa \le 0`, the default, the fluid is incompressible. .. note:: #. The model must have ``-ndf`` equal to ``-ndm`` for the fluid nodes (2 in 2D, 3 in 3D): the velocities are the nodal degrees of freedom and the pressures are on the pressure nodes. #. The elements are usually not created one by one, but by the OpenSeesPy mesh commands, which create the fluid elements of a mesh. Code Developed by: Minjie Zhu