TubeInitializer Steppable ------------------------------ .. _blob_initializer: blob_initializer ``TubeInitializer`` arranges cells in a cylinder shape. It is intended for **3D simulations**. See **Blob Initializer** for 2D circles. Properties =================== **InnerRadius**: Determines how hollow to make the tube. Set to 0 to fill the tube completely with cells. **OuterRadius**: Determines the size of the tube. It must be greater than InnerRadius. **Extrude**: Controls the length of the tube. The rings of the tube are placed around the imaginary axis created between the **From** and **To** points. * **From** and **To**: Specify the top and bottom of the tube in positive integer 3D coordinates. **Width**: Controls the thickness of each ring of cells in the tube. **NumSlices**: Controls how many cells should be placed on each ring. * Default: 8 **CellShape**: Must be either ``Cube`` or ``Wedge``. * Default: Wedge **Gap**: Places the rings farther apart, and makes the slices "exploded" from one another (i.e. spaced out). * Default: 0 =================== **Example Syntax:** Basic 3D Tube, Wedge-Shaped Cells ****************************************************************** Add the below Steppable to your XML file. This example is on a 50x50x50 lattice and uses all the default properties. .. code-block:: xml 3 12 0 5 8 Condensing,NonCondensing Wedge **Result** .. image:: images/tube1.png :scale: 50% Notice that one end of the tube is at (15, 25, 0) and the other end is at (15, 25, 0), so the tube is extruded along the z-axis. Since there are two cell types, the cells are randomly chosen to be red or yellow. =================== **Example Syntax:** Diagonal 3D Tube, Wedge-Shaped Cells ****************************************************************** Now, **NumSlices** is 12,the **InnerRadius** is larger, and the **From** and **To** points have been changed to place the tube at an angle. .. code-block:: xml 8 12 0 3 12 Condensing,NonCondensing **Result** .. image:: images/tube2.png :scale: 50% =================== **Example Syntax:** Two-layer 3D Tube, Cube-Shaped Cells ****************************************************************** Tubes can be nested within one another by specifying multiple ``Region`` tags and by making the ``InnerRadius``/``OuterRadius`` smaller for one. The cells have been made square-shaped by writing ``Cube``. .. code-block:: xml 8 11 0 2 Condensing Cube 0 7 0 2 NonCondensing Cube **Result** .. image:: images/tube3-1.png :width: 40% .. image:: images/tube3-2.png :width: 40%