Navigation

Operators and Keywords

Function List:

C++ API

mechanics

Library with functions useful for numerical computation in classical mechanics and structural analysis.

Select category:

1D Mechanics

nloscillator
Implements a general nonlinear oscillator.
setnloscillator
Returns the required options structure for the function nloscillator and a description of the fields in the structure.
pendulum
Implements a general pendulum.
setpendulum
Returns the required options structure for the function pendulum and a description of the fields in the structure.

2D Mechanics

inertiamoment.m
Moment of intertia of a plane shape.
masscenter.m
Center of mass of a plane shape.
principalaxes.m
Calculates the principal axes of a shape.

3D Mechanics

EAmatrix.m
Generates the Eulerangle rotation matrix in the given convention.
mat2quat.m
This function is implemented in paclage quaternions and will be deprecated.
quat2mat.m
This function is implemented in the quaternion package and will be deprecated.
quatconj.m
Conjugate of a quaternion.
quatprod.m
Product of two quaternions.
quatvrot.m
Rotate vector v accoding to quaternionr q.
rodmassmatrix.m
Mass matrix of one dimensional rod in 3D.
RBequations_rot.m
Rotational equations of motion of rigid body fixed in one point.
RBexample.m
Example of a free rigid body (no torques)

Molecular Dynamics

lennardjones
Returns force and energy of the Lennard-Jonnes potential evaluated at DX.
mdsim
Integrates a system of particles using velocity Verlet algorithm.
verletstep
Verlet velocity step
verletstep_boxed
Verlet velocity step in periodic space

2D Structural analysis (statics)

MSNForces
This function returns the internal forces of a member for each position x.
PlotDiagrams
This function plots the internal forces for all members.
PlotFrame
Plots a 2D frame (with displacements if needed) using the following input parameters:
SolveFrame
Solves a 2D frame with the matrix displacement method for the following input parameters:
SolveFrameCases
Solves a 2D frame with the matrix displacement method for the following input parameters:

General

forcematrix
Evaluates a force function depending on the separation of multiple interacting points.