Editing .geo file to be used with DAKOTA!
Hi,
I am following some examples on how to couple DAKOTA with OpenFoam. The examples were created by Wolf-Dynamics. I have noticed that most of the examples deal with SnappyHEX mesh only. However, I have come to a mesh that is created with gmsh. The mesh has one design variable that I wish to be changed through the optimization process. For instance, Code:
D = 5; // Diameter Thanks in advance for you kind help. Regards, |
Ok.
I put the geo file in the templatedir and named it geo.template putting theta={x1}. In the simulator_script file, I used; Code:
dprepro $1 geo.template geo.in Code:
Point(1) = {-7.5*D, 10*D, 0, 0}; Best, |
Alright, the problem is solved by simply changing the dprepro file to the following :D;
Code:
# default delimiters are curly braces { } Code:
# default delimiters are curly braces { } Best, |
Regarding the .geo file and the dprepo
Hi I came across this post and this is the only one of the kind. Could you possibly upload the case setup directory if you still probably have it?
I was facing issues doing this and for some reason the .geo file is not being modified. Thanks in advance |
Solved it
wrote a python code to modify the gmsh file. and dprepo modified the the variable within the python code.
|
All times are GMT -4. The time now is 01:33. |