[GiDlist] using external mesher
Posted: Mon Jan 27, 2003 11:28 pm
Hi Enrique,
thanks for your quick response. I have implemtented the creation of a *.spd-file in the LoadGiDProject-procedure.
I need to use an external mesher from within gid and I want to automate the creation of the input file and the execution of the external mesher in a tcl procedure within the tcl file of my problemtype. What I need to do is following:
1) create in the project directory an input file called *.in for the mesher out of some data stored in global variables
2) move that input file to the problemtype directory where the mesher is
3) feed the input file into the mesher
4) move the output file of the mesher and the input file back to the project directory
5) read that output file into gid
My problem is that I don't know how to create an input file with the extension .in within the project directory, as the pathname of that directory always changes with the name of the project. What I need is something like the filespd-argument, but for a file called *.in.
Can I use the tcl-command exec to run a subprocess for the creation of the mesh file with the external mesher?
thanks for response, Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20030127/e7303421/attachment.htm
thanks for your quick response. I have implemtented the creation of a *.spd-file in the LoadGiDProject-procedure.
I need to use an external mesher from within gid and I want to automate the creation of the input file and the execution of the external mesher in a tcl procedure within the tcl file of my problemtype. What I need to do is following:
1) create in the project directory an input file called *.in for the mesher out of some data stored in global variables
2) move that input file to the problemtype directory where the mesher is
3) feed the input file into the mesher
4) move the output file of the mesher and the input file back to the project directory
5) read that output file into gid
My problem is that I don't know how to create an input file with the extension .in within the project directory, as the pathname of that directory always changes with the name of the project. What I need is something like the filespd-argument, but for a file called *.in.
Can I use the tcl-command exec to run a subprocess for the creation of the mesh file with the external mesher?
thanks for response, Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20030127/e7303421/attachment.htm