How to batch process: Generate a large amount of simulation data?

3mz
3mz Altair Community Member
edited March 26 in Community Q&A

I have a map file in ODB format, and I want to place several transmitters on this map, generate simulation results for receiving power at a certain height, and export it to ASCII format as shown below.

image

image

But I need a large amount of similar data, with varying transmitter positions, different power levels, and varying simulation heights.

May I ask if there are any recommended methods?

For instance, utilizing API methods or WinPropCLI methods?

Then by using loop statements, each time randomly generating the positions of transmitters within a certain area, and also randomly assigning power within a specified range, then generating simulation results and saving them.

Is this feasible?

Best Answer

  • Cagkan Yapar
    Cagkan Yapar Altair Community Member
    edited March 26 Answer ✓

    One solution is to use the WinPropCLI and loop using the terminal/cmd, for cmd (Windows) for example:

    for /l %x in (1, 1, 701) do WinPropCLI -F E:\folderName\sims%x.net -A

    runs from sims1.net  to sims701.net .

    CLI can be also used for preprocessing:

    for /l %x in (1, 1, 701) do WinPropCLI -I E:\foldernName\odbOib\sims%x.pre

     

    However, as far as I know (if not included in the latest version), it cannot be used for .oda to .odb conversion. If you need to loop this, API might help, or using an external macro to manipulate the GUI should work.

     

    You can prepare your simulation files (.net, .nup) externally, by putting placeholders for the parameters (Tx position, power, Rx height etc.) you want to modify, and replace them with the values you would like to use, by running an algorithm (can be in Python, Matlab, etc.) that returns the suitable values.

Answers

  • Cagkan Yapar
    Cagkan Yapar Altair Community Member
    edited March 26 Answer ✓

    One solution is to use the WinPropCLI and loop using the terminal/cmd, for cmd (Windows) for example:

    for /l %x in (1, 1, 701) do WinPropCLI -F E:\folderName\sims%x.net -A

    runs from sims1.net  to sims701.net .

    CLI can be also used for preprocessing:

    for /l %x in (1, 1, 701) do WinPropCLI -I E:\foldernName\odbOib\sims%x.pre

     

    However, as far as I know (if not included in the latest version), it cannot be used for .oda to .odb conversion. If you need to loop this, API might help, or using an external macro to manipulate the GUI should work.

     

    You can prepare your simulation files (.net, .nup) externally, by putting placeholders for the parameters (Tx position, power, Rx height etc.) you want to modify, and replace them with the values you would like to use, by running an algorithm (can be in Python, Matlab, etc.) that returns the suitable values.

  • 3mz
    3mz Altair Community Member
    edited March 21

    One solution is to use the WinPropCLI and loop using the terminal/cmd, for cmd (Windows) for example:

    for /l %x in (1, 1, 701) do WinPropCLI -F E:\folderName\sims%x.net -A

    runs from sims1.net  to sims701.net .

    CLI can be also used for preprocessing:

    for /l %x in (1, 1, 701) do WinPropCLI -I E:\foldernName\odbOib\sims%x.pre

     

    However, as far as I know (if not included in the latest version), it cannot be used for .oda to .odb conversion. If you need to loop this, API might help, or using an external macro to manipulate the GUI should work.

     

    You can prepare your simulation files (.net, .nup) externally, by putting placeholders for the parameters (Tx position, power, Rx height etc.) you want to modify, and replace them with the values you would like to use, by running an algorithm (can be in Python, Matlab, etc.) that returns the suitable values.

    Thank you for your reply, but how can I prepare a large number of .net files? It seems that .net files can only be generated and opened through WinProp. Or should I simply create many files with the .net extension? As for the .nup files, when I opened them with Notepad, I found they are project configuration files, but I didn't find where to modify transmitter positions, powers, and receiver heights. I have attached an example below.

  • Cagkan Yapar
    Cagkan Yapar Altair Community Member
    edited March 22
    3mz said:

    Thank you for your reply, but how can I prepare a large number of .net files? It seems that .net files can only be generated and opened through WinProp. Or should I simply create many files with the .net extension? As for the .nup files, when I opened them with Notepad, I found they are project configuration files, but I didn't find where to modify transmitter positions, powers, and receiver heights. I have attached an example below.

    You can find your entries of interest in the .net and .nup project files by, for example, selecting an unusual value for them in WinProp and then searching for that value in the .net and .nup files. After you find the relevant entries, you can replace them with "placeholders". You can make many copies of this file with placeholders, let's call it the parent file. Then you can replace the placeholders with the values found by your algorithm, which automatically finds suitable values for these parameters. You can use any language that runs your algorithm and can replace values in text files.