Hi, splendid piece of software, many thanks. I'd like to invoke a BEM ideally from within a Python environment, but can't see any details in the help about running the solver outside of the Tk GUI. Can you help me out please?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I know this is an old thread and that the project is unmaintained. But as another user of TNT-MMTL, I think it's useful to answer this question.
BEM can be invoked manually in the command-line by running the executable "bem" with the following command-line arguments:
bem <filename> <c-seg> <p-seg>
<filename> - name of the graphic file
<c-seg> - number of contour segments
<p-seg> - number of plane/dielectric segments
<filename> is the xsctn file generated by MMTL, without the .xsctn extension name.
After running MMTL, the simulation output file is written to the same directory.
It should be pretty easy just to take a look at the xsctn file and programmatically generate it. For example, this is the xsctn file of a microstrip. The meaning of the options and commands in the file are mostly self-explanatory.
Unfortunately, the output file is in plaintext and it's not machine-readable. Try parsing it with some regular expressions. I have a plan to write a fork of TNT-MMTL and add support for machine-readable json output.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, splendid piece of software, many thanks. I'd like to invoke a BEM ideally from within a Python environment, but can't see any details in the help about running the solver outside of the Tk GUI. Can you help me out please?
I know this is an old thread and that the project is unmaintained. But as another user of TNT-MMTL, I think it's useful to answer this question.
BEM can be invoked manually in the command-line by running the executable "bem" with the following command-line arguments:
<filename>
is the xsctn file generated by MMTL, without the.xsctn
extension name.After running MMTL, the simulation output file is written to the same directory.
It should be pretty easy just to take a look at the xsctn file and programmatically generate it. For example, this is the xsctn file of a microstrip. The meaning of the options and commands in the file are mostly self-explanatory.
Unfortunately, the output file is in plaintext and it's not machine-readable. Try parsing it with some regular expressions. I have a plan to write a fork of TNT-MMTL and add support for machine-readable json output.