Skip to content

Option to change orientation of 3D circle inlet #213

@panyue1359

Description

@panyue1359

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions