interface.node.normal

Syntax

Vector Access

v = interface.node.normal(in<,i>)

Get the normal vector for the interface node, which is an area weighted average of the interface elements it is connected to. Returns a vector, unless an optional component argument i is supplied, in which case it returns the component value.

Returns:

v - normal vector or component

Arguments:

in - interface element pointer

i - optional vector component, from 1 to 3

Component Access

f = interface.node.normal.x(in)

Get the x-component for the interface normal.

Returns:f - x-component normal vector
Accepts:f - x-component normal vector
Arguments:in - interface element pointer
f = interface.node.normal.y(in)

Get the y-component for the interface node.

Returns:f - y-component normal vector
Accepts:f - y-component normal vector
Arguments:in - interface node pointer
f = interface.node.normal.z(in)

Get the z-component for the interface node.

Returns:f - z-component normal vector
Accepts:f - z-component normal vector
Arguments:in - interface node pointer