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

CFX macro: Name of mesh File as Variable

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2011, 13:05
Default CFX macro: Name of mesh File as Variable
  #1
Senior Member
 
Saima
Join Date: Apr 2009
Location: Canada
Posts: 185
Rep Power: 16
Saima is an unknown quantity at this point
Hello Guys,

I am writing CFX macro file in CFX pre. I have to chane folder name every time but file name is same. That means not absolute path of file ...variable path of file. such as:

Folder_1 : balde.msh
Folder_2: blade.msh
.
.
Folder_10:balde.msh

How can Iadded this option in macro???

Thank you very much for your help, in advance.

Best Regards,
__________________
Best Redards,
Saima
Saima is offline   Reply With Quote

Old   May 19, 2011, 23:26
Default
  #2
New Member
 
Xu xing
Join Date: May 2011
Location: Beijing,China
Posts: 2
Rep Power: 0
xuxing918 is on a distinguished road
Quote:
Originally Posted by Saima View Post
Hello Guys,

I am writing CFX macro file in CFX pre. I have to chane folder name every time but file name is same. That means not absolute path of file ...variable path of file. such as:

Folder_1 : balde.msh
Folder_2: blade.msh
.
.
Folder_10:balde.msh

How can Iadded this option in macro???

Thank you very much for your help, in advance.

Best Regards,
i think you can ignore the file path,then CFX-Pre will use the working directory as the file path,you can just change the wd.
xuxing918 is offline   Reply With Quote

Old   May 27, 2011, 19:59
Default
  #3
Senior Member
 
Saima
Join Date: Apr 2009
Location: Canada
Posts: 185
Rep Power: 16
Saima is an unknown quantity at this point
Quote:
Originally Posted by xuxing918 View Post
i think you can ignore the file path,then CFX-Pre will use the working directory as the file path,you can just change the wd.

How can I chnage working directory?

Is there any way to change it in macro.

Becaue I am runing it automatically in optimization loop.

Best Regards
__________________
Best Redards,
Saima
Saima is offline   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
paraview installation woes vex OpenFOAM Installation 15 January 30, 2011 08:11
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 05:26
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51


All times are GMT -4. The time now is 15:45.