CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Macros

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 6, 2009, 20:45
Default Macros
  #1
New Member
 
mahadevan.swamy@gmail.com
Join Date: Apr 2009
Posts: 15
Rep Power: 16
mahadevan.swamy is on a distinguished road
Hi,

I am running a simulation in Fluent and this simulation will take me 5 hrs. I know how to create macros but I want to know how to view the code in which it is programmed in. How do I view the code?

In Fluent, I got to Execute commands and input the macros to be called in after every 1000th iteration. I created a macro which will write case and data files. The problem here is when I record a macro and show how I am writing a case and data file, I have to include a proper filename for the case and datafiles. Because if I enter an arbitary filename under the macro recording, the macro when executed will use the same filename as was done in the recording, which is not what I want. For instance, under macro recording, I named my case and datafile as "0001". When the macro is executed, it should recognize that there is a file called 0001 and then create a new case and data file naming them to be 0002.

Any idea how to achieve this? Thanks
mahadevan.swamy is offline   Reply With Quote

Old   July 7, 2009, 03:18
Default
  #2
Senior Member
 
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17
coglione is on a distinguished road
have you ever noticed the build-in autosave option of Fluent?
coglione is offline   Reply With Quote

Old   July 7, 2009, 08:34
Default
  #3
New Member
 
mahadevan.swamy@gmail.com
Join Date: Apr 2009
Posts: 15
Rep Power: 16
mahadevan.swamy is on a distinguished road
Yes I have used that and it is quite helpful. Do you have any idea how to view the code behind the macro? Thanks
mahadevan.swamy 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
CFX-Post Macros Felix CFX 17 March 15, 2012 01:39
help with macros F_ID and C_ID Jack Martinez FLUENT 0 August 19, 2007 08:27
What are UDF macros C_T_S , C_T_AP,...???? Asghari FLUENT 0 January 28, 2007 10:54
Orientation of Face Variable Macros hirokata FLUENT 0 February 17, 2006 00:12
previous time step macros Bryan FLUENT 0 January 12, 2006 15:02


All times are GMT -4. The time now is 16:55.