Writing objective function sensitivities into OpenFOAM cell format when running in parallel #390
-
Hi, I am faced with a bit of an issue when it comes to writing out the objective function sensitivities. I understand that the file "totalDerivHist.txt" writes out the total derivative of the objective function with respect to the design variable in a list format. But I want this in the OpenFOAM cell ordered format so that I can visualize it on Paraview. I did this option in the runScript.py
And surely, I was getting the cell ordered dictionary "sens_FI_beta". But if you see the file, there is no connectivity information when I decompose it into say 4 cores (see file sens_FI_beta.txt ) you will notice that the dictionary terminates with boundary{} but no information on the patch. I went into the code for pyDAFoam.py and found this
So if you see, this file does the writing of the sensitivity map and there is nothing about the decomposing and reconstruction of the boundary fields. There are three solutions for this
Please let me know what you think and how I can proceed to fix this issue. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
For now, I do this procedure:
Here is the python script if anyone is interested - source_code.txt Of course you have to make changes to this
and also make sure that the python script is in the case directory. |
Beta Was this translation helpful? Give feedback.
-
You can also check the discussion from this thread: #102 |
Beta Was this translation helpful? Give feedback.
You can also check the discussion from this thread: #102