Set value of parameter in merged model using the python API
Dear GMSH board
I have a task which I would like to solve using the GMSH python API. I would like to be able to merge a .geo file, chance some parameters, and then mesh it. The code below should explain what I would like to do:
# GMSH python test
import gmsh
gmsh.initialize()
# Here I would like to set the parameters "w" and "lc" in advance
gmsh.merge("cube_faces.geo")
# Or I would like to change the parameters "w" and "lc" from the merged model
gmsh.write("cube_mesh.msh")
gmsh.finalize()
The geo file is appended here: cube_faces.geo
I hope I have made myself clear, and look forward to hearing your answers.
Best regards Mads Andersen