CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   journal not work without GUI? (http://www.cfd-online.com/Forums/fluent/42557-journal-not-work-without-gui.html)

sophie October 14, 2006 22:09

journal not work without GUI?
 
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

sophie October 15, 2006 02:35

Re: journal not work without GUI?
 
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

zxaar October 15, 2006 19:27

Re: journal not work without GUI?
 
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.

sophie October 15, 2006 21:04

Re: journal not work without GUI?
 
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

zxaar October 15, 2006 21:24

Re: journal not work without GUI?
 
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.

sophie October 15, 2006 22:24

Re: journal not work without GUI?
 
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

zxaar October 15, 2006 23:06

Re: journal not work without GUI?
 
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.


sophie October 16, 2006 01:21

Re: journal not work without GUI?
 
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 :)


zxaar October 16, 2006 02:18

Re: journal not work without GUI?
 
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.


sophie October 16, 2006 03:32

Re: journal not work without GUI?
 
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


zxaar October 16, 2006 04:22

Re: journal not work without GUI?
 
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.


sophie October 16, 2006 07:23

Re: journal not work without GUI?
 
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.


zxaar October 16, 2006 07:58

Re: journal not work without GUI?
 
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.


zxaar October 16, 2006 08:01

Re: journal not work without GUI?
 
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.

sophie October 16, 2006 09:36

Re: journal not work without GUI?
 
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 :(


sophie October 16, 2006 20:20

Re: journal not work without GUI?
 
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.


sophie October 16, 2006 20:34

Re: journal not work without GUI?
 
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

zxaar October 16, 2006 21:01

Re: journal not work without GUI?
 
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


sophie October 16, 2006 22:18

Re: journal not work without GUI?
 
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

zxaar October 17, 2006 00:06

Re: journal not work without GUI?
 
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)



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