CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   how to save the hardcopy in every time step (https://www.cfd-online.com/Forums/fluent/76472-how-save-hardcopy-every-time-step.html)

yubaibai88 May 26, 2010 10:48

how to save the hardcopy in every time step
 
I'm doing a 2-stroke engine simulation,before the process run,I creat a view for vector of velocity magnitude,and I want to save the view after every time step.
could anyone tell me how to do it
thanks in advance!

yubaibai88 May 26, 2010 20:37

maybe it requires to use execute commands,but I don't know how to write the macro.could anyone tell me how to do it?or any tutorial for write macro in execute commands windows.
thanks in advance!

-mAx- May 27, 2010 01:34

go to generating the images
http://www.fluent.com/about/news/new...00v9i2/a23.htm

I remembered I had problems If you have multiple display-windows.
So you need to activate the one you are using for the pictures.
This can be done by adding this line prior to the other in solve/execute:
> dis set-w 0
where 0 is the number of the window you are using

yubaibai88 May 27, 2010 04:53

hi max:
thank you very much for your reply.
I visit the website you give me,read through it and have a idea about how to do my work.
another question,the article says:"Since you will be entering text commands in this panel, it is a good idea for you to practice with the text interface first to make sure that you issue the commands correctly".for example I save a new view for velocity vector or the pathline of air entering from the inlet.how can I write the text commands?or how to practice myself?
thanks in advance!

-mAx- May 27, 2010 05:06

on 6.3 it was possible to navigate in the pull down menus with the mouse.
But you could also do the same by entering names of sections in the script window (where you get transcripts from fluent).
For instance by typing "grid"
you are in the grid section.
Then a "check", call the check
this is Text User Interface (TUI).

So before entering your macros in solve/execute, make sur your commands run well, by testing them.

gurupalani May 27, 2010 05:07

small correction
 
wow..that works..
except that i am using fluent v6.3 and in it, the executable command is "display contour" and not "display contours"..
"contour" is what that is available in the TUI..

:)

yubaibai88 May 27, 2010 05:27

1 Attachment(s)
Quote:

Originally Posted by -mAx- (Post 260467)
on 6.3 it was possible to navigate in the pull down menus with the mouse.
But you could also do the same by entering names of sections in the script window (where you get transcripts from fluent).
For instance by typing "grid"
you are in the grid section.
Then a "check", call the check
this is Text User Interface (TUI).

So before entering your macros in solve/execute, make sur your commands run well, by testing them.

I typing "grid" in the text interface,then check.fluent check my grid.but it says "invalid command" after typing define.shown in picture 1,what can I do.
then,could you tell me how to check my command?

-mAx- May 27, 2010 05:41

I don't remember but I think you are trying to switch to another section.
so try typing "/define"

yubaibai88 May 27, 2010 06:15

yeah,I do it,thank you!
by the way,if I want save the hardcopy every time step for velocity,is the command"disp vector velo-mag 0 10"right?how to write the command I need is the basic problem.

-mAx- May 27, 2010 06:54

what you mentionned is just for the display.
you need, to write as hard-copy:
> dis h-c name_your_picture_%t.jpg

yubaibai88 May 27, 2010 07:22

2 Attachment(s)
Quote:

Originally Posted by -mAx- (Post 260493)
what you mentionned is just for the display.
you need, to write as hard-copy:
> dis h-c name_your_picture_%t.jpg

I run the process,the windows show nothing.shown in picture
and my command is shown
I think the command is not right.
any idea?

-mAx- May 27, 2010 07:58

the black window you are showing is affected with number 1.
That is the trouble I had...
Befor you run the macros, I would open the right window, display the geometry, zoom and adapt it as you wish for your pictures.
Then don't close the window, and run the iterations (with macros)
Once you will uinderstand, it will be easier (but admit it is fuzzy)

yubaibai88 May 27, 2010 09:28

hi,it still don't work.
but I try to write the command as "disp contour velo-mag",it works
maybe something is wrong with the command?


All times are GMT -4. The time now is 09:58.