== == A '''{{{}}}''' is a subelement of a [wiki:rp_xml_ele_field ] element's '''{{{}}}''' element that describes how the component data is to be displayed as a flow. {{{ Flow label ...more... vectors 3 output.mesh(mygrid) ...more... }}} The component's element is a list of 3 component (x,y,z) vectors. The component's mesh must be a [wiki:rp_xml_ele_mesh ] element. Each vector in is associated with a point on the mesh. The order of values must match the order of points. For uniform meshes, the order is the X mesh coordinate running fastest. {{{ 3 yes 0 6300 126 0 1500 30 0 1519.05 22 Flow label ...more... vectors 3 output.mesh(mygrid) ...more... }}} A flow may contain one or more particle injection planes. The injection plane is where particles enter the flow. The injection planes are axis-aligned and may be positioned anywhere along the flow. The '''{{{}}}''' element lets you define the particle color, size and default visibility. You can also define the axis and position of the plane along the axis. Example of flow with two particle planes: {{{ Flow label Description of the left particle plane. x lightgreen 10% 2.0 no Description for the right particle plane. x khaki 90% 1.0 yes }}} Flows may also contain boxes that define a rectangular region. A flow can have any number of boxes. The '''{{{}}}''' element lets you define the color, corner positions, line width and default visibility of the box. Example of flow with a box: {{{ Flow label Description of the region. 0 0 0 10 10 10 lightgreen 2 no }}} Flows themselves have a number of elements that modify how the flow is displayed. You can define a streams plane that displays vector glyphs and a stream texture (using Line Integral Convolution or LIC) along that plane. A volume rendering of the magnitude of the flow vector field can also be displayed along with its outline. Example of flow options: {{{ Flow label z 50% yes yes yes no ...more... }}} Descriptions of each element: '''{{{field.component.flow.label}}}''':: is the text displayed along the x-axis. '''{{{field.component.flow.description}}}''':: is the text displayed when the user hovers over the flow. '''{{{field.component.flow.axis}}}''':: is the axis where the streams plane is positioned. '''{{{field.component.flow.position}}}''':: is the position of the streams plane along the defined axis as a percentage. '''{{{field.component.flow.streams}}}''':: is a boolean indicating if the streams plane should be displayed. The default is no. '''{{{field.component.flow.arrows}}}''':: is a boolean indicating if arrow glyphs should be displayed. The default is no. '''{{{field.component.flow.volume}}}''':: is a boolean indicating if the vector field volume should be displayed. The default is yes. '''{{{field.component.flow.outline}}}''':: is a boolean indicating if the outline around the vector field should be displayed. The default is no. '''{{{field.component.flow.duration}}}''':: is the length of the flow animation. The default is '1:00'. '''{{{field.component.flow.speed}}}''':: is the speed of the flow animation. The default is '1x'. You can see working code in the [browser:trunk/examples examples] in the [browser:trunk/examples/flow flow example] or on the hub in the directory /apps/rappture/examples/flow.