tutorials/fluid/aerofoilNACA0012Steady/0/U: Use $<scalar>angle instead of scoping cos and sin

to improve the handling of 0 angle of attack.
This commit is contained in:
Henry Weller
2023-06-23 17:12:05 +01:00
parent 0657826ab9
commit 755eae4aa9
2 changed files with 16 additions and 15 deletions

View File

@ -18,8 +18,8 @@ angleOfAttack 0; // degs
angle #calc "degToRad($angleOfAttack)";
liftDir #calc "vector(-::sin($angle), 0, ::cos($angle))";
dragDir #calc "vector(::cos($angle), 0, ::sin($angle))";
liftDir #calc "vector(-sin($<scalar>angle), 0, cos($<scalar>angle))";
dragDir #calc "vector(cos($<scalar>angle), 0, sin($<scalar>angle))";
Uinlet #calc "$speed*$<vector>dragDir";