spring_element_3d Interface

public interface spring_element_3d

Contents


Module Procedures

private pure function se3d_init(k, nd1, nd2, direction) result(rst)

Initializes a new [[spring_element_3d]].

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: k

The spring stiffness.

class(node), intent(in) :: nd1

The first node of the element.

class(node), intent(in) :: nd2

The second node of the element.

real(kind=real64), intent(in), optional, dimension(:) :: direction

An optional 3-element vector defining the spring axis. The vector must be non-zero and is normalized internally. If not supplied, the axis is defined by the vector from node 1 to node 2, in which case the nodes must not be coincident.

Return Value type(spring_element_3d)

The new [[spring_element_3d]].