OSE Piping Workbench Ports: Unterschied zwischen den Versionen

Aus Open Source Ecology - Germany
Zur Navigation springen Zur Suche springen
Zeile 12: Zeile 12:
 
* <math>y^*</math> shows in the same direction as the angular reference, <math>y^* = r</math>.
 
* <math>y^*</math> shows in the same direction as the angular reference, <math>y^* = r</math>.
  
For example in a tee fitting, the matrix <math>A</math> is a rotation along y-axis by <math>\phi = 90^{\circ}</math>, and then a rotation along z axis by <math>\psi = -90^{\circ}</math>. See [https://www.freecadweb.org/wiki/Placement FreeCAD Rotation] for more details. Pictures (see [[#Port-orientation.svg]])
+
For example in a tee fitting, the matrix <math>A</math> is a rotation along y-axis by <math>\phi = 90^{\circ}</math>, and then a rotation along z axis by <math>\psi = -90^{\circ}</math>. See [https://www.freecadweb.org/wiki/Placement FreeCAD Rotation] for more details about rotation.
  
 
[[Datei:Port-orientation.svg|mini|Orientation of port 2 in a tee fitting.]]
 
[[Datei:Port-orientation.svg|mini|Orientation of port 2 in a tee fitting.]]

Version vom 26. November 2018, 20:19 Uhr

The OSE Piping Workbench creates fittings. It uses ports to describe the ends of the fittings. The Ports helps to fit the fittings together correctly.

Ports of a tee in OSE Piping workbench.

Every port is described by:

  • Its position
  • A normal vector which points out of the fitting and it is perpendicular to the port plane.
  • A 0 reference angle vector it shows where is the degree 0°. must lie in the port plane.

Instead of using three separate vectors, we represent the port by its position and its orientation . The position is a FreeCAD Vector . The orientation is a FreeCAD rotation matrix. When we apply matrix on vectors , , , it creates vectors , , such that

  • points in the same direction as the port's normal, .
  • shows in the same direction as the angular reference, .

For example in a tee fitting, the matrix is a rotation along y-axis by , and then a rotation along z axis by . See FreeCAD Rotation for more details about rotation.

Orientation of port 2 in a tee fitting.