DAObjFuncForce fixedDirection for AoA-dependent drag/lift directions #932
Replies: 2 comments
-
|
Check the flowAxis and normalAxis in your patchV setup in inputInfo. In your case, the flowAxis should be x and normalAxis should be z |
Beta Was this translation helpful? Give feedback.
-
|
Dear Professor He, Thank you very much your reply. ################################################################################################ =============================================================================Imports=============================================================================from mpi4py import MPI U0 = 51.4815 alpha = 17.0 * np.pi / 180.0 Set the parameters for optimizationdaOptions = { } DASolver = PYDAFOAM(options=daOptions, comm=gcomm) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I'm using DAFoam for field inversion on an airfoil at AoA = 17°, using a mesh aligned with AoA = 0°, while changing the inlet velocity direction and hence the direction of the forces.
When I define the drag and lift directions using fixedDirection (see pic1), I get the following error:
FOAM FATAL ERROR:
the magnitude of the direction parameter is not 1.0!
The case runs fine for AoA = 0° when using:
[1, 0, 0] (Drag)
[0, 0, 1] (Lift)
I tried defining the drag and lift directions in different ways (see pic2). The vector norm prints as 1, but when used in fixedDirection it gives the same error. It looks like there is a strict check on the magnitude of the direction vector to be exactly 1.
Is there a way to go around this, or a recommended way to compute drag and lift aligned with the freestream direction when AoA is introduced via the inlet velocity?
Thanks in advance.


Beta Was this translation helpful? Give feedback.
All reactions