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

command line? & create batch file

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 7, 2013, 16:54
Question command line? & create batch file
  #1
New Member
 
Join Date: Jan 2013
Posts: 17
Rep Power: 3
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 00:53. Reason: I didn't type steps!
mansoor is offline   Reply With Quote

Old   February 8, 2013, 01:02
Default try this
  #2
Member
 
rahul verma
Join Date: Nov 2009
Location: India
Posts: 31
Rep Power: 6
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, 05:45
Question create Batch mode for several from one
  #3
New Member
 
Join Date: Jan 2013
Posts: 17
Rep Power: 3
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 8, 2013 at 23:54.
mansoor is offline   Reply With Quote

Old   February 9, 2013, 00:26
Question Edit batch file
  #4
New Member
 
Join Date: Jan 2013
Posts: 17
Rep Power: 3
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, 05:15
Default
  #5
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 9,340
Rep Power: 74
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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, 12:50
Question
  #6
New Member
 
Join Date: Jan 2013
Posts: 17
Rep Power: 3
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, 04:27
Default
  #7
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 9,340
Rep Power: 74
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
swak4foam building problem GGerber OpenFOAM 45 July 30, 2013 15:08
funkySetFields compilation error tayo OpenFOAM 39 December 3, 2012 05:18
error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Native Meshers: blockMesh 2 March 14, 2012 10:56
mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 12 December 12, 2011 04:16
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 09:50


All times are GMT -4. The time now is 00:58.