DesignSPHysics icon indicating copy to clipboard operation
DesignSPHysics copied to clipboard

Option to change orientation of 3D circle inlet

Open panyue1359 opened this issue 1 year ago • 0 comments

DesignSPHysics version: 0.7.0 (15-09-2023) Platform: Windows-10-10.0.19045 FreeCAD Version: 0.21.2

According to this post [1], the direction vector does not define the orientation of circle inlet. One need to add rotateaxis tag in xml file manually like box type [2] after GenCase. It would be helpful to add an option like "enable rotation" in box type.

By default the circle's normal vector aligned to the y-axis [1], thus the rotation axis can be obtained by computing the cross product of (0, 1, 0) and the target normal vector. The rotation angle is the angle between (0, 1, 0) and the target normal vector.

[1] inlet / outlet from FreeCAD — DualSPHysics Forums [2] DualSPHysics/doc/xml_format/_FmtXML_InOut.xml at master · DualSPHysics/DualSPHysics

panyue1359 avatar Jul 27 '24 03:07 panyue1359