Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to change orientation of 3D circle inlet #213

Open
panyue1359 opened this issue Jul 27, 2024 · 0 comments
Open

Option to change orientation of 3D circle inlet #213

panyue1359 opened this issue Jul 27, 2024 · 0 comments

Comments

@panyue1359
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant