How to programmatically modify geometry and mesh in a *.pre file?
We need a way to run a few iterations of simulations, where the scattering geometry will be rotated and/or translated in each iteration. The usual workflow is to use the parameter sweep macro. However, we do not need to iterate every possible combination, rather what we need is an optimization scheme where we
(a) simulate one geometry configuration (b) process the data (c) decide how to modify the geometry based on this data.
The next best thing is to use Lua based API. We gave it a shot, but stopped for two reasons: 1. Lua does not offer the advanced math libraries we need to process the data, 2. we want to avoid using the CADFEKO GUI.
So I was looking to modify the *.pre file generated by the CADFEKO interface when we import the geometry and set up the initial settings. But it appears the prefeko files import mesh files instead of geometry.
What is the best possible way to programmatically modify a geometry and mesh it without explicitly opning the CADFEKO GUI?
Answers
-
Have you tried the cadfeko_bath option that let's you update the model via the variables without opening the GUI? Here is some helpful information on cadfeko_batch:
https://2022.help.altair.com/2022.1.2/feko/topics/feko/user_guide/cadfeko/mesh_batch_feko_c.htm
0