:class:`ISPHFluidPart` ====================== .. py:class:: ansys.dyna.core.pre.dynaisph.ISPHFluidPart(pid, minpoint, length, numdirx, numdiry, numdirz) Bases: :py:obj:`ansys.dyna.core.pre.dynabase.Part` Generates ISPH particles inside a box. :Parameters: **pid** : :class:`python:int` Part ID. **minpoint** : :obj:`Point` Minimum x,y,z-coordinate. **length** : :obj:`Point` Box length in the x,y,z-direction. **numdirx** : :class:`python:int` Number of ISPH particles in the x-direction. **numdiry** : :class:`python:int` Number of ISPH particles in the y-direction. **numdirz** : :class:`python:int` Number of ISPH particles in the z-direction. .. !! processed by numpydoc !! .. py:currentmodule:: ISPHFluidPart Overview -------- .. tab-set:: .. tab-item:: Methods .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~set_smoothing_length` - Calculate the smoothing length of the particles. * - :py:attr:`~create_particles` - Create ISPH particles inside the box. * - :py:attr:`~create_massflow_plane` - Measure ISPH mass flow rate across a defined plane. * - :py:attr:`~set_property` - Set properties for an ISPH fluid part. .. tab-item:: Attributes .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~stub` - * - :py:attr:`~type` - * - :py:attr:`~minpoint` - * - :py:attr:`~length` - * - :py:attr:`~numdirx` - * - :py:attr:`~numdiry` - * - :py:attr:`~numdirz` - * - :py:attr:`~cslh` - * - :py:attr:`~hmin` - * - :py:attr:`~hmax` - * - :py:attr:`~sphini` - * - :py:attr:`~massflowplane` - Import detail ------------- .. code-block:: python from ansys.dyna.core.pre.dynaisph import ISPHFluidPart Attribute detail ---------------- .. py:attribute:: stub .. py:attribute:: type :value: 'ISPHFLUID' .. py:attribute:: minpoint .. py:attribute:: length .. py:attribute:: numdirx .. py:attribute:: numdiry .. py:attribute:: numdirz .. py:attribute:: cslh :value: 1.2 .. py:attribute:: hmin :value: 0.2 .. py:attribute:: hmax :value: 2.0 .. py:attribute:: sphini :value: 0 .. py:attribute:: massflowplane :value: None Method detail ------------- .. py:method:: set_smoothing_length(initial, min, max, optional) Calculate the smoothing length of the particles. :Parameters: **initial** : :class:`python:float` Constant for calculating the initial smoothing length of the particles. **min** : :class:`python:float` Scale factor for the minimum smoothing length. **max** : :class:`python:float` Scale factor for the maximum smoothing length. **optional** : :class:`python:float`, :obj:`optional` Initial smoothing length, which overrides the true smoothing length. .. !! processed by numpydoc !! .. py:method:: create_particles() Create ISPH particles inside the box. .. !! processed by numpydoc !! .. py:method:: create_massflow_plane(surfaces) Measure ISPH mass flow rate across a defined plane. .. !! processed by numpydoc !! .. py:method:: set_property() Set properties for an ISPH fluid part. .. !! processed by numpydoc !!