Skip to main content
Today’s Script Tip comes from Ayush Kumar, Senior Applications Engineer at Ansys. GCS: Global Coordinate System

LCS: Local Coordinate System
In 3D simulations, local coordinate systems play a crucial role. Therefore, conversion of nodal coordinates from GCS to LCS is often needed. The operator
rotates the input field in GCS as per the input rotation matrix. If the LCS is at the same origin as the GCS, only one operation using the rotate operator gives the desired output. But for an LCS with a transformed origin, after rotation, a transformation along the rotated position vector of the LCS’s origin is also needed to get the correct coordinates in LCS. Below is a PyDPF example to achieve that.