Replies: 1 comment
-
That is right, the variance function does not use boxToCell at all.. If you set up your function like the above, it will just use all cells from the U field.. If you really need boxToCell, you have to implement into DAObjFunVariance.C. Or, you can use the probePoint option to prescribe discrete point as your refData. On a separate note, we are about to release the v4 version of DAFoam, we will add the boxToCell feature to variance. Stay tuned. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello professor, when I use 'DAObjFuncVariance' to do my own optimization, the optimization can proceed smoothly after changing the objective function, but I found that the program does not seem to really calculate in the box I set, because when I change the value of my box objective function and the optimization process are exactly the same, even if I set it outside the grid.
I wonder if there is something wrong with this function, or if it always defaults to calculating according to the value of the entire field?
If I want to use the box of a certain area to caculate through part of the volumemesh, can I use boxtocell?
Here is my objfunc:
and the log files:
opt_IPOPT.txt
logOpt.txt
I just want to do the variance caculation through part of the mesh. Would you help me see what the problem is?
Beta Was this translation helpful? Give feedback.
All reactions