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

Delete a macro

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By RoM

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 13, 2006, 09:39
Default Delete a macro
  #1
Claudi
Guest
 
Posts: n/a
Hi everybody!

Just a short question. Does somebody know how to delete a macro from the 'Define Macro' list? I didn't found it....

Thanks a lot!

  Reply With Quote

Old   November 14, 2006, 00:20
Default Re: Delete a macro
  #2
sach
Guest
 
Posts: n/a
Go to manage micro and delete it then write the *.cas and then start the simulation
  Reply With Quote

Old   November 14, 2006, 03:31
Default Re: Delete a macro
  #3
Claudi
Guest
 
Posts: n/a
First, thanks a lot for your help.

Could you tell me where I can find 'manage micro' ? I didn't find it. Please help me, and tell me where I can find it.

Thanks.
  Reply With Quote

Old   November 14, 2006, 04:40
Default Re: Delete a macro
  #4
sach
Guest
 
Posts: n/a
Hey in gui it self you can get it follow the way as I sad go to manage micro and delete is that ok or i need to explain in details?
  Reply With Quote

Old   November 14, 2006, 05:56
Default Re: Delete a macro
  #5
Claudi
Guest
 
Posts: n/a
So that is the problem. When I type "manage micro" in the gui I get the message "invalid command [manage]". So please tell me the path where I can find manage micro.

Thanks a lot!
  Reply With Quote

Old   November 14, 2006, 13:51
Default Re: Delete a macro
  #6
Allan Walsh
Guest
 
Posts: n/a
Define>User-Defined>Functions>Manage
  Reply With Quote

Old   November 15, 2006, 06:21
Default Re: Delete a macro
  #7
RoM
Guest
 
Posts: n/a
Deleting macros is not easy an requires some scheme programming. The macros are stored in a list called *cx-macros*. You can print this list with (cx-list-macros) from the TUI. To delete a macro from this list you will first need a new scheme funtion which will do this. The defintition of that function (named "rmm" for remove macro) is

(define (rmm a-list i)(if (= i 1)(cdr a-list)(cons (car a-list)(rmm (cdr a-list) (- i 1)))))

To delete the second macro from the list type

(rmm *cx-macros* 2)

This will not yet delete the macro, it will only print out the new list. You can save the new list with

(set! *cx-macros* (rmm *cx-macros* 2))

Or if you want to clean the whole macro list just type

(set! *cx-macros* (list))

Hope this helps, RoM
SStancek and lbj007 like this.
  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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 06:09
How to delete a macro ? Anthony Wachs FLUENT 1 January 10, 2011 06:19
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55
Macro Trouble -Winows Explorer Crashes with Macro Martin Castillo FLUENT 1 July 25, 2007 04:18
Macro problem cfddummy Siemens 1 April 9, 2007 12:37


All times are GMT -4. The time now is 22:32.