Hi,
in an earlier post, the option of using history files was mentioned in order to automate some operations.
This is a great idea but it appears that there is a missed opportunity here. The binary history files cannot easily be edited (it may be possible to set this up though) and I would propose to get this into clear text files instead. It would then also be an option to convert this into ‘journal files’ similar to what is done in Ansys Fluent to automate some analysis:
This is different to what is proposed here:
For example, a journal file would allow import of different .inp files or allow to rerun the same simulations but scaling the geometry etc. and would in general be more flexible (I think).
I agree that binary files limit the possibility of editing them. But converting them to clear text files is not possible. The binary files are, namely, direct copies of the objects in memory. They are not structured with parameters and functions. To add this structuring, all commands will have to be rewritten (a huge amount of work). That is why binary files are used, since they were very easy to integrate.
But I am investigating this approach while adding Python support. In this way, a Python script will be used to automate PrePoMax functions. This will require even more work, but would open up many more options.
Currently, the results of applying a binary file can be varied by using parameters. If you have a model where some features are defined by a parameter, and you have its history recorded, you can rerun the history from the command line with different parameter values.
Fully appreciate this @Matej, but very happy to hear that an Python API may be in the pipeline! I fully appreciate how much work this must cause and didn’t dare to suggest this (yet)
An API like in other commercial FEA solvers would be a great addition. This would allow geometric pre-processors such as TexGen to be used directly:
There is for example a scripting guide for TexGen here:
The benefit of such geometry pre-processors is that not only the geometry is generated, they can also create a mesh and assign periodic boundary conditions.