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

command line? & create batch file

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 7, 2013, 17:54
Question command line? & create batch file
  #1
New Member
 
Join Date: Jan 2013
Posts: 17
Rep Power: 13
mansoor is on a distinguished road
Hi
I did this steps
step 1- Define the problem in Workbench (build geometry in DM, mesh in Mesh and assign BCs in Pre)
step 2- In Workbench, double click on Solution to launch Solver Manager which generates the definition (.def) file;

I follow 2 steps and in next step I've many problems that I can't create batch file! I don't know where must type ــــــــــcd C:\...... in below step

step 3 - Create a text batch file with the extension .bat with the following
cd C:\your_directory_path
"C:\Program Files\Ansys Inc\V121\CFX\bin\cfx5solve" -batch -def Fluid_Flow.def

my .def is save at this:
C:\Users\mansoor_PC\Desktop\Airfoil\abc_files\dp0\ CFX\CFX

And can anyone tell me the works for solve my problem?
ــــــــــــــــــــــــــــــــــــــــــــــــــ ــ
Thanks
Mansoor

Last edited by mansoor; February 8, 2013 at 01:53. Reason: I didn't type steps!
mansoor is offline   Reply With Quote

Old   February 8, 2013, 02:02
Default try this
  #2
Member
 
Rahul Vaibhav
Join Date: Nov 2009
Location: India
Posts: 33
Rep Power: 16
rahulv is on a distinguished road
Write the code in a notepad file and save it as filename.bat

double click it


cd C:\Users\mansoor_PC\Desktop\Airfoil\abc_files\dp0\ CFX\CFX
"C:\Program Files\Ansys Inc\V121\CFX\bin\cfx5solve" -batch -def 1.def

cd C:\Users\mansoor_PC\Desktop\Airfoil\abc_files\dp0\ CFX\CFX
"C:\Program Files\Ansys Inc\V121\CFX\bin\cfx5solve" -batch -def 2.def
rahulv is offline   Reply With Quote

Old   February 8, 2013, 06:45
Question create Batch mode for several from one
  #3
New Member
 
Join Date: Jan 2013
Posts: 17
Rep Power: 13
mansoor is on a distinguished road
First Thank you
Then I have a questions

It is for one airfoil with 16 point for define it. I displace randomly those points (with MATLAB) and create several airfoils.
in next step I should modify batch file and create it for new airfoils.
How do it?

Last edited by mansoor; February 9, 2013 at 00:54.
mansoor is offline   Reply With Quote

Old   February 9, 2013, 01:26
Question Edit batch file
  #4
New Member
 
Join Date: Jan 2013
Posts: 17
Rep Power: 13
mansoor is on a distinguished road
And is it possible to edit geometry from batch file? (with explanation in top)
mansoor is offline   Reply With Quote

Old   February 9, 2013, 06:15
Default
  #5
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,655
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
If you modify the geometry you will need to run it through CFX-Pre as well. But CFX-pre can be scripted to run from the command line as well so you can still do this all in a single batch file.
ghorrocks is offline   Reply With Quote

Old   February 9, 2013, 13:50
Question
  #6
New Member
 
Join Date: Jan 2013
Posts: 17
Rep Power: 13
mansoor is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
If you modify the geometry you will need to run it through CFX-Pre as well. But CFX-pre can be scripted to run from the command line as well so you can still do this all in a single batch file.
Please tell me more, because I,m new new in cfx and a brief hint can help me to do it early.
Thank you
mansoor is offline   Reply With Quote

Old   February 10, 2013, 05:27
Default
  #7
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,655
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Record a session file in CFX-Pre. Then you can play that session file fro mthe command line using command line parameters. The command line is all described in the documentation.
ghorrocks is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 17:02
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 06:18
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 10:56
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 10:50


All times are GMT -4. The time now is 06:38.