<< femtruss FEMTruss localise3d >>

FEMTruss >> FEMTruss > localise2d

localise2d

Returns the position in the matrix of a given point. Dedicated to 2 dimensions structures.

Calling Sequence

L = localise2d(t)

Parameters

t

the index of the node (between 1 and npoints). We can pass several points at the same time.

L

the index (2 values because we are in 2 dimensions) of the corresponding node in the matrix.

Description

Returns the position in the matrix of a given point. Dedicated to 2 dimensions structures.

Examples

e = [
     [1, 1] .* localise2d(1) // We fix the x and y coordinate of the point number 1
     [1, 0] .* localise2d(2) // We fix the x coordinate of the point number 2
     [0, 1] .* localise2d(3) // We fix the y coordinate of the point number 3
    ];

See Also

Authors


Report an issue
<< femtruss FEMTruss localise3d >>