CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Write .def file from command line

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 9, 2005, 19:40
Default Write .def file from command line
  #1
Alejandro
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!!!
  Reply With Quote

Old   September 10, 2005, 08:49
Default Re: Write .def file from command line
  #2
Paul Lewis
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
  Reply With Quote

Old   September 11, 2005, 00:50
Default Re: Write .def file from command line
  #3
Jeff
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
  Reply With Quote

Old   September 11, 2005, 19:14
Default Re: Write .def file from command line
  #4
Alejandro
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.
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 10:35.