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

journal not work without GUI?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 14, 2006, 22:09
Default journal not work without GUI?
  #1
sophie
Guest
 
Posts: n/a
Hello,Fluent users!

I write a journal file to export ascii Cell-Centered data,it works well with GUI, BUT not work without GUI, anybody tell me why this happens?

If it can't work, can somebody tell me other way out?

Thanks a lot!

sophie
  Reply With Quote

Old   October 15, 2006, 02:35
Default Re: journal not work without GUI?
  #2
sophie
Guest
 
Posts: n/a
Here is my journal file:

;************ (cx-gui-do cx-activate-item "MenuBar*FileMenu*Export...")

(cx-gui-do cx-set-toggle-button "Export*Frame1(File Type)*ToggleBox1(File Type)*ASCII" #f)

(cx-gui-do cx-activate-item "Export*Frame1(File Type)*ToggleBox1(File Type)*ASCII")

(cx-gui-do cx-set-list-selections "Export*Frame2*Table2*Frame5*List5(Functions to Write)" '( 0))

(cx-gui-do cx-activate-item "Export*Frame2*Table2*Frame5*List5(Functions to Write)")

(cx-gui-do cx-activate-item "Export*Frame2*Table2*Frame1*PushButton2(SelectAll )")

(cx-gui-do cx-set-toggle-button "Export*Frame2*Table2*Frame6(Location)*ToggleBox6( Location)*Cell-Centered" #f)

(cx-gui-do cx-activate-item "Export*Frame2*Table2*Frame6(Location)*ToggleBox6( Location)*Cell-Centered")

(cx-gui-do cx-activate-item "Export*PanelButtons*PushButton1(OK)")

(cx-gui-do cx-set-text-entry "Select File*Text" "asc")

(cx-gui-do cx-activate-item "Select File*OK")

(cx-gui-do cx-activate-item "Export*PanelButtons*PushButton2(Cancel)") ;**************

It works well with GUI,BUT export Node value(I need Cell-Centered value)without GUI,can anybody helps me?

BTW,my version-------------6.1.22.

Thanks a lot!

sophie
  Reply With Quote

Old   October 15, 2006, 19:27
Default Re: journal not work without GUI?
  #3
zxaar
Guest
 
Posts: n/a
The way you are exporting is not a good way, try this kind of command in journal (its an example of how i am exporting some ascii data):

file export ascii filename.txt surface_name () n n mean-z-velocity mean-y-velocity mean-x-velocity mean-velocity-magnitude total-pressure pressure () y y

in the bold is filename and the surface on which you export the results. You can try similar things.
  Reply With Quote

Old   October 15, 2006, 21:04
Default Re: journal not work without GUI?
  #4
sophie
Guest
 
Posts: n/a
Hello,zxaar!

Thanks for your reply!

I think of TUI first, but the question is that I don't know the surface name or ID in advance,so I have to SelectAll the surfaces, and I don't think SelectAll can be processed through TUI,OR I don't know how to SelectAll by TUI. If you have some clue in SelectAll by TUI,or other methods,let me know.

Thanks a lot! sophie
  Reply With Quote

Old   October 15, 2006, 21:24
Default Re: journal not work without GUI?
  #5
zxaar
Guest
 
Posts: n/a
tell me one thing, when you import the mesh to fluent, that time i hope you know the names of the zones you have in the mesh file. Is it not correct??? If you know can't you just modify the journal to match it.
  Reply With Quote

Old   October 15, 2006, 22:24
Default Re: journal not work without GUI?
  #6
sophie
Guest
 
Posts: n/a
Hello,zxaar!

Thanks for your reply!

I work without GUI,so I can't get back to extract the zone name. I'm not sure what you mean.

Thanks a lot!

sophie
  Reply With Quote

Old   October 15, 2006, 23:06
Default Re: journal not work without GUI?
  #7
zxaar
Guest
 
Posts: n/a
i also work without GUI, but in my case i know the name of surface i export. What I mean is this: When the mesh first time read into the fluent , if the zone names do not change, you can know them. in fact wait a day or two, i would write down a small tool to read fluent mesh and write the zone names and id to separate file. say meshout.txt, you can use that info to modify the journal you use. Would it do. (i am currently busy working on something so could only write that tool after i finish with this work). Its pretty easy to write though.

  Reply With Quote

Old   October 16, 2006, 01:21
Default Re: journal not work without GUI?
  #8
sophie
Guest
 
Posts: n/a
Hello,zxaar!

Thanks for your reply and patience!

It'll be great that you write down a small tool to read fluent mesh and write the zone names and id to separate file!

And I check my .msh file,the weried part is that if you define several faces together,for example(face-1,face-2,face-3)as pressure-far-field ,and name it farfiled,ID is 73,when you read the .msh into Fluent,it becomes: ID name --------------------------------- 73 farfiled 127 farfield:127 128 farfield:128

Hope you finish your work soon.And if you work out the meshout.txt,please let me know.

Thanks a loooooooooooooot!

sophie

  Reply With Quote

Old   October 16, 2006, 02:18
Default Re: journal not work without GUI?
  #9
zxaar
Guest
 
Posts: n/a
i think the zone info could be exported without writing program. And this will be better approach since fluent renames them after you read mesh into fluent. (that is prior zone names no longer exist). so here is a small solution to zone info:

grid modify-zones list-zones

this command in journal will list zone names. To capture this output you need to run fluent something like this.

fluent 3d -g -post < input.jou > zoneList.txt

this shall export the zone names to a file, use them for ascii export.

  Reply With Quote

Old   October 16, 2006, 03:32
Default Re: journal not work without GUI?
  #10
sophie
Guest
 
Posts: n/a
Hello zxaar!

I tried the way you told me,but Fluent doesn't run. I'm so embarrassed,could you please tell me the exact operations?

I run Fluent in the DOS like this: C:\Fluent.Inc\ntbin\ntx86\fluent 3d -g -post d:\xulin7-5\shiyan\run-1.jou zoneList.txt

the error message: Error: eval: unbound variable Error Object: d:\xulin7-5\shiyan\run-1.jou

Error: eval: unbound variable Error Object: zonelist.txt

Hit return to exit.

Thanks for your reply and patience.

sophie

  Reply With Quote

Old   October 16, 2006, 04:22
Default Re: journal not work without GUI?
  #11
zxaar
Guest
 
Posts: n/a
you forgot a little detail fluent 3d -g -post < input.jou > zoneList.txt

in this obesrve < and >

the first put the input to the fluent while second one direct the fluent's output to the zonelist.txt

second thing is just give the file name and not the full path. But make sure that the jou file is in the folder you run it.

further there is nothing to be embarrassed of, we all learn it some way or other.

  Reply With Quote

Old   October 16, 2006, 07:23
Default Re: journal not work without GUI?
  #12
sophie
Guest
 
Posts: n/a
Hello,zxaar!

This time I import:

C:\Fluent.Inc\ntbin\nx86\fluent 3d -g -post<run-1.jou>zonelist.txt

But Fluent only open the interface,and not read my journal file,it just stays there with no further operation.

And I tried(cause I tried fluent 3d -g -i run-1.jou to read the .jou file)

fluent 3d -g -i -post<run-1.jou>zonelist.txt

fluent 3d -g -post -i<run-1.jou>zonelist.txt

etc.

These imports don't work.I can't find where the error is.

So,or maybe I'm too haste to find the error.

Thanks again,sophie.

  Reply With Quote

Old   October 16, 2006, 07:58
Default Re: journal not work without GUI?
  #13
zxaar
Guest
 
Posts: n/a
sorry my mistake (i thought you will put the remainign lines to the journal) you will have to read the mesh also

make a file infile.jou in this infile.jou

just add these lines

file read-case meshname.msh grid modify-zones list-zones exit y

Now first try this command, on dos prompt:

fluent 3d -g -post < infile.jou

You will see that fluent reads the mesh and then prints the zone info on the console.

Now to save the output we add one more thing to the above command

fluent 3d -g -post < infile.jou > zoneList.txt

Shall put all that you saw on this text file. sorry for not being clear.

  Reply With Quote

Old   October 16, 2006, 08:01
Default Re: journal not work without GUI?
  #14
zxaar
Guest
 
Posts: n/a
the error is this

C:\Fluent.Inc\ntbin\nx86\fluent 3d -g -postzonelist.txt

-postzonelist.txt is wrong, it should be -post < infile.jou

please note the < (less than arrow), which is important, you have not put this so far.
  Reply With Quote

Old   October 16, 2006, 09:36
Default Re: journal not work without GUI?
  #15
sophie
Guest
 
Posts: n/a
Hello,zxaar!

I prompt: C:\Fluent.Inc\ntbin\ntx86\fluent 3d -g -post<run-1.jou

Fluent only open the interface,not read .jou file.

It really drives me crazy.Or maybe sth wrong with my cmd.exe?

Thanks anyway.

desperate sophie

  Reply With Quote

Old   October 16, 2006, 20:20
Default Re: journal not work without GUI?
  #16
sophie
Guest
 
Posts: n/a
What's wrong with the post message in the forum,every time I input "<"or">",it doesn't show them and the content after them.

  Reply With Quote

Old   October 16, 2006, 20:34
Default Re: journal not work without GUI?
  #17
sophie
Guest
 
Posts: n/a
Hello,zxaar!

Sorry for the input before,I don't write space between "-post" and "<",so "<" and the content after it don't show.

I prompt:

C:\Fluent.Inc\ntbin\ntx86\fluent 3d -g -post < D:\xulin7-5\shiyan\run-1.jou

Fluent only open the interface,not read .jou file. Just hang up there.

Thanks again!

cheered again sophie
  Reply With Quote

Old   October 16, 2006, 21:01
Default Re: journal not work without GUI?
  #18
zxaar
Guest
 
Posts: n/a
C:\Fluent.Inc\ntbin\ntx86\fluent 3d -g -post < D:\xulin7-5\shiyan\run-1.jou

solver would hang because there are - signs in you command run-1.jou

by the minus sign solver thinks that you are giving an arguement to the solver and that arguement is not there.

further i do not understand the need of giving full path to the file, just use file name and please remove - sign from file name make it habit to use underscore _ instead of negative or hyphen it creates many probs

  Reply With Quote

Old   October 16, 2006, 22:18
Default Re: journal not work without GUI?
  #19
sophie
Guest
 
Posts: n/a
Hello,zxaar!

I changed my run.jou file like this:

file/read-case 4b4w1.msh file/start-transcript zonelist.txt y grid/modify-zones/list-zones exit y

and input dos prompt:

C:\Fluent.Inc\ntbin\ntx86\fluent 3d -g -i run.jou

and it works well.

I'm not clear to tell you that I run it under Windows, and your method maybe suits Unix.

You have no idea how sorry I am, and I really have learned a lot during our discussion,and I appreciate to ask you questions if I have problems afterwards.

Thanks again for your patience and reply!

sincerely sophie
  Reply With Quote

Old   October 17, 2006, 00:06
Default Re: journal not work without GUI?
  #20
zxaar
Guest
 
Posts: n/a
congs

somehow its my fault also, that forgot the obvious fact that you are working on windows. Yes i work mainly on linux/unix but i do have fluent on windows machine too.

second you can always ask, i am not sure how much i would be help though, i am always short on time. (this is why missed windows part, always doing 2 -3 things at one go)

  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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I convert GUI journal to TUI journal harry FLUENT 7 December 4, 2013 16:28
Interrupting a Journal File svp FLUENT 2 February 16, 2011 08:00
How to get TUI journal ringtail FLUENT 5 July 18, 2010 11:51
gambit journal for run a journal? Ralf Schmidt FLUENT 3 May 25, 2010 14:41
Integrating Scheme with a FLUENT journal file Pete Willemsen FLUENT 0 May 19, 2006 17:00


All times are GMT -4. The time now is 02:42.