-
Notifications
You must be signed in to change notification settings - Fork 43
Description
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