elflux2ΒΆ

Purpose:

Draw element flow arrows for two dimensional elements.

Syntax:

[sfac] = elflux2(Ex, Ey, Es)
[sfac] = elflux2(Ex, Ey, Es, plotpar)
elflux2(Ex, Ey, Es, plotpar, sfac)
Description:

elflux2 displays element heat flux vectors (or corresponding quantities) for a number of elements of the same type. The flux vectors are displayed as arrows at the element centroids. Note that only the flux vectors are displayed. To display the element mesh, use eldraw2.

Input variables are the coordinate matrices Ex and Ey, and the element flux matrix Es defined in flw2ts or flw2qs.

The variable plotpar sets plot parameters for the flux arrows:

plotpar\(= [\, arrowtype \;\; arrowcolor \,]\)

where

\(arrowtype\)

\(arrowcolor\)

1

solid line

1

black

2

dashed line

2

blue

3

dotted line

3

magenta

4

red

Default, if plotpar is omitted, is solid black arrows.

The scale factor sfac is a scalar that the values are multiplied with to get a suitable arrow size in relation to the element size. The scale factor is set automatically if it is omitted in the input list.

Limitations:

Supported elements are triangular 3 node and quadrilateral 4 node elements.