CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Journal Batch-mode Solution Animation (http://www.cfd-online.com/Forums/fluent/119423-journal-batch-mode-solution-animation.html)

RoterFuchs June 17, 2013 09:25

Journal Batch-mode Solution Animation
 
Hello,

I'm using Fluent 14.5 and want to start it in the batch-mode. It's about an transient job where I don't want to save cas and dat every time step because of the size, instead I want Fluent to save pictures of specific views (and there different vectors or contours). Therefor I used in the online mode "Calculations Activities" --> "Solution Animations", defined my perspectives and everything worked.
For batch mode I wanted to do the same, found out which commands are to use in the TUI:

file/read-case "MyFilename.cas"
file/read-data "MyFilename.dat"
/display/views/restore-view view1
/display/vector/velocity/velocity-magnitude 0 0.2 0.0025 1
/solve/animate/define/define-monitor,1 yes yes 1 vector
ppm,
/display/views/restore-view view2
/display/vector/velocity/velocity-magnitude 0 2 0.005 1
/solve/animate/define/define-monitor,1 yes yes 1 vector
ppm,
solve/set/time-step 2.77e-04
solve/dual-time-iterate 360 50
file/write-data "MyFilename_%t.dat"
exit
yes

view1 and view2 are saved in the data (or case) file. Everything works in the online mode of Fluent via the TUI. But when I start the journal via excutive command it interrups after the line (display/vector/velocity/velocity-magnitude 0 0.2 0.0025 1) and before the text "invalid command [view1]" appears after that line (/display/views/restore-view view1)

Could someone please help me? :)

thanks a lot for reading

DudaAPD February 13, 2014 12:54

Hi,

I am also trying to do something similar. Did you manage to solve your problem?

Thx

obylong June 18, 2014 17:40

Hey, can anyone kindly help out here urgently? I am trying to run a transient simulation in batch mode but I keep having an error message:

Error: No graphics functions are available.
Error Object: ()


My TUI commands is:

; Read case and data files

file read-case-data Rc_transient.cas

solve/set/time-step 2.0e-4

solve/dual-time-iterate 100 20

file write-data transient1.dat

Exit

DudaAPD June 18, 2014 20:50

Quote:

Originally Posted by obylong (Post 497691)
Hey, can anyone kindly help out here urgently? I am trying to run a transient simulation in batch mode but I keep having an error message:

Error: No graphics functions are available.
Error Object: ()


My TUI commands is:

; Read case and data files

file read-case-data Rc_transient.cas

solve/set/time-step 2.0e-4

solve/dual-time-iterate 100 20

file write-data transient1.dat

Exit

I didnīt understand exactly what you want to do. Is this your journal file? Runnig in a cluster? How are you executing the command for fluent (e.g. fluent 2ddp -g .....). Where does the error appear and when exactly...

I am no expert, but in order to try to help, please give more details...

For now I think (not sure) you should correct the following:

file/read-case-data Rc_transient.cas
file/write-data transient1.dat

And try to do read case and read data separetly if you haven't tried that.

Kind Regards,

DudaAPD

obylong June 18, 2014 21:09

Quote:

Originally Posted by DudaAPD (Post 497704)
I didnīt understand exactly what you want to do. Is this your journal file? Runnig in a cluster? How are you executing the command for fluent (e.g. fluent 2ddp -g .....). Where does the error appear and when exactly...

I am no expert, but in order to try to help, please give more details...

For now I think (not sure) you should correct the following:

file/read-case-data Rc_transient.cas
file/write-data transient1.dat

And try to do read case and read data separetly if you haven't tried that.

Kind Regards,

DudaAPD



Hi (thanks for reaching out)

Yes those are the commands in my journal file (valiantsim.jou) running in a cluster. The commands are executed with fluent 3d -g -ssh -pdefault -t${cpus} -i valiantsim.jou


Also the errors appear just seconds after the simulation begins to run and appears just after it reads the the solve/dual-time-iterate command and just about to start running. see below;

> solve/dual-time-iterate 100 20
Updating solution at time levels N and N-1.
done.
iter continuity x-velocity y-velocity z-velocity kl kt omega delta_time time
Error: No graphics functions are available.
Error Object: ()
time/iter

DudaAPD June 20, 2014 13:48

I may be wrong, but I don't think it is a problem with your journal file... Probably with your case set up.


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