[Error] While Using My Own Mesh #563
Replies: 5 comments 4 replies
-
This error was probably related to FFD because my FFD did not enclose design surface fully. After enclosing it, I am not getting this error anymore.
But I am still unsure why I am getting negative value of "CL". Also, I had to increase primalMinResTol to 1e-5 otherwise i was getting error discussed here https://dafoam.github.io/mydoc_get_started_faq.html#how-to-fix-the-primal-solution-failed-for-the-baseline-design-error. I ran primal solution in SU2 with same mesh and I obtained CD=0.011906 & CL=0.27989 with same boundary conditions (without any constraints). I have commented most of the lines of DVCon in my runScript_v2.py because I don't want to apply constraints on the model. (Actually for my project, I don't want to use FFD at all. I just need volume deformation, primal and adjoint solutions. IDK why we need correctly defined FFD box for running primal, its not the case in SU2.) All of the files are here in a zip file. |
Beta Was this translation helpful? Give feedback.
-
The problem is in your coordinate system. Your mesh has z as the vertical and y as the spanwise directions, but your script says otherwise... |
Beta Was this translation helpful? Give feedback.
-
For my mesh, when I run "runAdjoint", I get the following error. What could be the issue?
|
Beta Was this translation helpful? Give feedback.
-
Hi @friedenhe! Could you please check this one too? I ran OneraM6 tutorial but objective function values are significantly different than the ones mentioned on website. Thank you for your assistance.
|
Beta Was this translation helpful? Give feedback.
-
This is because the Onera tutorial mesh is coarse while the tutorial used much finer mesh. We have updated the tutorial website to mention this. |
Beta Was this translation helpful? Give feedback.
-
I have created tetrahedral mesh in gmsh. Then converted that to OpenFoam format using
gmshToFoam
command. I also checked the quality of mesh and it said ok. See the following output.After generating mesh, I created a new folder "0" and copied the contents of "0.orig" here. Then I edited all files according to my boundary names in both folders.
Then I edited boundary file in 'constant\polymesh' folder. I did not change fvSolutions & fvSchemes files. These are the same as tutorial files of OneraM6.
Finally I ran edited "runScript_v2.py" with task as "runPrimal", but it gave errors related to following lines (idk why). So, I just commented these lines to see if it runs ....
Then i ran the script again using this command "
mpirun -np 1 python runScript_v2.py 2>&1 | tee logOpt.txt
" and got the following error (I have copied last few lines of error as follows, if you want to view full error then you can see logOpt.txt)I have read this FAQ https://dafoam.github.io/mydoc_get_started_faq.html#can-i-use-my-own-mesh, but I don't know which openFoam solver should i use for OneraM6. I tried
simpleFoam
but it gives error that there is no transportproperties file. If I place this file to the required directory then it gives this errorSo, which OpenFoam solver should I used for this test case?
Beta Was this translation helpful? Give feedback.
All reactions