Menu

#2 Request: pure command line interface

2.0
wont-fix
nobody
None
2014-01-06
2013-11-11
JasonSh
No

Hi me again... :)
A big wish from me would be do the entire mesh generation from a single command line command. I am planning on using construct2d as a background mesh generator and as such I need to run the mesh generation programmatically (without any input from the user to navigate the menus). Being able to specify an airfoil path and a settings file path at the command line and having the finished mesh automatically pop out the other end would keep me from having to write a pexpect module around construct2d.

Discussion

  • Dan

    Dan - 2013-11-11

    Hey Jason,

    That is a good point. I will take a look into it and think about implementing it in the next update. On the other hand, you can still use this code in batch mode. First, create the settings file grid_options.in. Then, create a file which contains your commands. Let's call this input.txt. A simple example of the contents of this file would be:

    GRID
    SMTH
    QUIT

    Then you can run the program from the command line like this:

    ./construct2d (airfoil path) < inputs.txt

    If you want to store the program output in another file you can do:

    ./construct2d (airfoil path) < inputs.txt > outputs.txt

    I just tested this on my own and it works fine. Let me know if this helps.

    Dan

     
  • Dan

    Dan - 2014-01-06
    • status: open --> wont-fix
     
  • Dan

    Dan - 2014-01-06

    Please see my previous post. You can run this in batch mode by creating a file with the desired inputs. Therefore, I am changing the status of this ticket to won't-fix.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.