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

UDF to output the modeling?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 2, 2001, 00:38
Default UDF to output the modeling?
  #1
Fluent Newbee
Guest
 
Posts: n/a
Hi, I am struggling Newbee to Fluent and I got a lot of help from guys all over the world. Getting to the point, I managed to model a tank flow with baffle inside.

Now I need to produce output file (eg. x-velocity vs grid x coordinate) in "text format".(so that I can further the analysis on the result with my own made program). I tried XY plot in the menu but it takes me forever because I need to generate wide variety of data files in every single node.

I think I have to use macro or UDF but i have no idea where to start. Can you be kind enough to give me guide and some reference?

Thanks million in advance.

P.S : the flow is steady

  Reply With Quote

Old   August 4, 2001, 00:54
Default Re: UDF to output the modeling?
  #2
david
Guest
 
Posts: n/a
A) Write a script that will read your case and data file and create lots of planes and lines and write all the plots. B) On sort all the data by sort oldfile> newfile C) Postprocess using any software you know.

By the way, what model did u use for ur tank with baffle inside ?

DC
  Reply With Quote

Old   August 8, 2001, 02:10
Default Re: UDF to output the modeling?
  #3
Fluent Newbee
Guest
 
Posts: n/a
Thanks very much to pay attention to my post. I used k-e turbluence model, set the energy enabled and employed the defalut parameters. I didn't use VOF. I set the influent as a velocity inlet and output as a pressut outlet. (and in the Boundary condtion, turbluence intensity and hydraulic diameter were specified)

I set the free-surface as a wall because I am intrested in the flow in the tank itself. The simplfied model seems to make some sense from an engineer's point of view.

If you need more information, let me know.

By the way, I am still wodering how to make a script to do the job. No idea. Do you mean using some macros?? I would be very appreciative if you can give me some exaple and reference. Thanks in advance.

  Reply With Quote

Old   August 11, 2001, 06:07
Default Re: UDF to output the modeling?
  #4
david
Guest
 
Posts: n/a
A) To write a script file, try to start scrip writing,, FILE>WRITE>START SCRIPT,, B) now read the case/data file, run for 1 iteration, plot all the curves u want, save,, write,, all the plots C) FILE>WRITE>STOP SCRIPT. D) open the scrip file and modify the no of iteration to whatever u want. E) Run the scipt file (script_1) with -g command F) you need to modify the script file according to ur needs.

If you need more info, pls let me know.

Some questions to you: 1) Don't you think the wall BC on the top will efect the mixing behaviour inside (not much though) 2) How did u choose 'turbluence intensity' ? in the BC? DC
  Reply With Quote

Old   August 22, 2001, 03:45
Default Re: UDF to output the modeling?
  #5
fluent newbee
Guest
 
Posts: n/a
Thanks very much for paying attention to my humble post. I am working on the script and I think I will get it right sooner or later. I owe you a big time. With a bit of a luck I can simplfy the process of changing script.

I will ask additional assistance if I face some tricky situaltion. And the answer to your question ; 1) i asked many guys on the forum and they seem to agree the simplified model reflect the real world but I need to verify it with various methods. And your suggestion make sense, especially considering friction on the wall-set free surface. So I ignore the wall friction on free surface. The strange thing is that either I enable friction or not, the result seems constant. I believe because the flow is near laminar and plug flow (inlet velocity is apprx. 1cm/sec)

2)I refer to the fluent manual and get some idea about hydrolic diameter and turbluence intensity. I figure the flow has fairly low turbluence, so I go for 10%. Of course it's not perfect and mathmatical but I compared the model with sedimentation chamber experiment data table. There was some deviance but negligable. I need to further the expeirment to back up the model and I will adjust the parameter to reflect the model.

One other, I will open up a web page and I will post the model and the Fluet model results. Your comment, suggestion and constuctive criticsm is welcome. Thanks

  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
UDF with output text file manu Fluent UDF and Scheme Programming 6 April 24, 2013 02:46
UDF programming fullmonty FLUENT 5 June 30, 2011 02:40
Discrete Phase Modeling: UDF law for particles bjcfd FLUENT 0 January 13, 2010 17:46
extracting output from the udf brusly FLUENT 0 April 25, 2008 01:10
UDF for Humidification modeling Vivek Main CFD Forum 0 June 13, 2006 11:48


All times are GMT -4. The time now is 19:45.