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

Using a macro to write a plot to a file, and supress the popups

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 3, 2011, 07:43
Default Using a macro to write a plot to a file, and supress the popups
  #1
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 7
stevenvanharen is on a distinguished road
Hi everybody,

I use a macro to write a line plot every 100 iterations.

This works fine, but I also get a pop-up every 100 iterations on my screen.

Can I suppress the fact that the macro creates these pop-ups? Or can I write this line plot to a file in a different way?

Thanks for your help!

Regards,

Steven
stevenvanharen is offline   Reply With Quote

Old   October 3, 2011, 20:44
Default
  #2
New Member
 
Jack cosby
Join Date: Jul 2011
Posts: 15
Rep Power: 6
3DmaniacSLDWRKS is on a distinguished road
please explain what you mean when you say line plot????
and also what sort of pop up????

if by pop-up you mean the overwrite message you can suppress that by typing
file confirm-overwrite no in the TUI

hope that helps
3DmaniacSLDWRKS is offline   Reply With Quote

Old   October 4, 2011, 02:37
Default
  #3
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 7
stevenvanharen is on a distinguished road
Quote:
Originally Posted by 3DmaniacSLDWRKS View Post
please explain what you mean when you say line plot????
and also what sort of pop up????

if by pop-up you mean the overwrite message you can suppress that by typing
file confirm-overwrite no in the TUI

hope that helps
I create a line plot by selelecting plot --> XY plot. I select a line as a surface and click the 'write to file' option to write the XY data to a file.

I record all these steps in a macro (solve --> execute commands), and then execute this macro every 1000 iterations. However this macro will open the XY plot window and write file window. This is what I mean when I refer to popups.

These popups I would like to supress.
stevenvanharen is offline   Reply With Quote

Old   October 4, 2011, 05:42
Default
  #4
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Shiraz, Iran
Posts: 739
Blog Entries: 1
Rep Power: 14
Amir is on a distinguished road
Quote:
Originally Posted by stevenvanharen View Post
I create a line plot by selelecting plot --> XY plot. I select a line as a surface and click the 'write to file' option to write the XY data to a file.

I record all these steps in a macro (solve --> execute commands), and then execute this macro every 1000 iterations. However this macro will open the XY plot window and write file window. This is what I mean when I refer to popups.

These popups I would like to supress.
Dear steven,
If you use journal file instead of macro, these pop-ups will be suppressed.

Bests,
__________________
Amir
Amir is offline   Reply With Quote

Old   October 4, 2011, 05:55
Default
  #5
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 7
stevenvanharen is on a distinguished road
Dear Amir,

Thanks for your tip. I will try it with a journal file.

Regards,

Steven
stevenvanharen is offline   Reply With Quote

Old   October 4, 2011, 08:15
Default
  #6
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 7
stevenvanharen is on a distinguished road
I solved it using:

How to write XY-plot with journal

If I put these TUI commands in a macro I have no more annoying pop-ups!

Thanks for staying tuned

Last edited by stevenvanharen; October 5, 2011 at 09:28.
stevenvanharen 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



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