CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Delete a macro (https://www.cfd-online.com/Forums/fluent/42848-delete-macro.html)

Claudi November 13, 2006 09:39

Delete a macro
 
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!


sach November 14, 2006 00:20

Re: Delete a macro
 
Go to manage micro and delete it then write the *.cas and then start the simulation

Claudi November 14, 2006 03:31

Re: Delete a macro
 
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.

sach November 14, 2006 04:40

Re: Delete a macro
 
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?

Claudi November 14, 2006 05:56

Re: Delete a macro
 
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!

Allan Walsh November 14, 2006 13:51

Re: Delete a macro
 
Define>User-Defined>Functions>Manage

RoM November 15, 2006 06:21

Re: Delete a macro
 
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


All times are GMT -4. The time now is 19:25.