|
[Sponsors] |
September 9, 2005, 19:40 |
Write .def file from command line
|
#1 |
Guest
Posts: n/a
|
Hi! I'm using CFX5.7.1 and I have lots of mesh files .gtm, and for each of them I have to write a .def file which I will later simulate. So I don't have to define each time the boundary conditions for each .gtm, I just reread the mesh file and write a new .def file (I'm simulating airfoils at different attack angles). Is there a way in which I can reread a .gtm file from the command line, and afterwards write a .def file? Thanks!!!
|
|
September 10, 2005, 08:49 |
Re: Write .def file from command line
|
#2 |
Guest
Posts: n/a
|
Hi Alejandro,
If you're modelling an aerofoil at different angles of attack you can often get away with just one mesh. Set the front and top of your box as inlets, then set the boundary conditions to angle the inlet flow. The aerofoil stays at the same angle as your domain but the fluid angle changes relative to it. Regards Paul |
|
September 11, 2005, 00:50 |
Re: Write .def file from command line
|
#3 |
Guest
Posts: n/a
|
CFX-Pre was set up to be completely scriptable. Run cfx5pre -help from the command line to see what the options are. There should be an option to run CFX-Pre in batch mode.
Jeff |
|
September 11, 2005, 19:14 |
Re: Write .def file from command line
|
#4 |
Guest
Posts: n/a
|
Thanks Paul and Jeff! I don't think I'm doing it the "right way", but either way its working, I got around with just one mesh, and to change the velocity angle I changed its x and y components, exporting to a text file the .def file, I did a script to generate many different texts files just changing the air speed, and then writing again the .def files and running them, everything in one batch file.. so it got pretty automated.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 15:11 |
Installation of OpenFOAM-1.6 on Ubuntu 9.10 | marval | OpenFOAM Installation | 2 | March 17, 2010 09:33 |
[Gmsh] Compiling gmshFoam with OpenFOAM-1.5 | BlGene | OpenFOAM Meshing & Mesh Conversion | 10 | August 6, 2009 05:26 |
Results saving in CFD | hawk | Main CFD Forum | 16 | July 21, 2005 21:51 |
PHI file structure | Eugene | Phoenics | 9 | November 2, 2001 23:00 |