secforce2ΒΆ

Purpose:

Draw the section force diagrams of a two dimensional bar or beam element in its global position.

Syntax:

secforce2(ex, ey, es, plotpar, sfac)
secforce2(ex, ey, es, plotpar, sfac, eci)
[sfac] = secforce2(ex, ey, es)
[sfac] = secforce2(ex, ey, es, plotpar)
Description:

The input variables ex and ey are defined in bar2e or beam2e. The input variable

es\(= \begin{bmatrix} S_1 \\ S_2 \\ \vdots \\ S_n \end{bmatrix}\)

consists of a column matrix that contains section forces. The values in es are computed in, e.g., bar2s or beam2s.

The variable plotpar sets plot parameters for the diagram:

plotpar\(= [\, \text{linecolor} \;\; \text{elementcolor} \,]\)

where

linecolor

color

elementcolor

color

1

black

1

black

2

blue

2

blue

3

magenta

3

magenta

4

red

4

red

The scale factor sfac is a scalar that the section forces are multiplied with to get a suitable graphical representation. If sfac is omitted in the input list, the scale factor is set automatically.

The input variable

eci\(= \begin{bmatrix} \bar{x}_1 \\ \bar{x}_2 \\ \vdots \\ \bar{x}_n \end{bmatrix}\)

specifies the local \(\bar{x}\)-coordinates of the quantities in es. If eci is not given, uniform distance is assumed.