Previous section-----Next section

DDistanceDT
2D/3D

DDistanceDT[point1, point2] returns the time derivative of the absolute distance between the two points.

DDistanceDT[point1, point2] is equivalent to Dt[Distance[point1, point2], T], except that the local coordinates of the points are assumed to have no implicit dependence on any Mech system variables.
• See also:
Distance, D2DistanceDT2.

Further Examples

Load the Modeler2D package and define a simple model.

If the distance between two points is calculated simply as the magnitude of the vector between the two points, then some obvious simplifications are missed, like the fact that the two points lie on the same body.

Distance checks for such simplifications.

DDistanceDT assumes that c is constant in the following, while direct differentiation with Dt cannot.

In[6]:=
Out[6]=
In[7]:=
Out[7]=

Similarly, D2DistanceDT2 assumes that local point coordinates are constant.


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information