CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF for particle injection using file

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

Like Tree1Likes
  • 1 Post By shahjehan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2016, 21:49
Lightbulb UDF for particle injection using file
  #1
New Member
 
shahjehan's Avatar
 
Syed Shah Jehan Gillani
Join Date: Oct 2014
Posts: 15
Rep Power: 11
shahjehan is on a distinguished road
Hi All!!


It is usually required to initialize static bed domain with particles in fluidized bed multiphase simulations. Mostly users ask about particle initialization of particles but there is no proper answer to their question.

I was wondering how a udf could be written for file injection.
Here I tried to sort out this problem and coded a udf using the logic given in initialization example provided in ansys udf guide. where this logic was utilized to initialize temprature field in the domain.

Can any one here please debug udf if any and improve the udf.?

initialization.c


Before this I found a way to write injection file by the suggestion of Mr. Daniele [ghost82].
In macroscopic particle model addon module in ansys fluent 17 there is a provision to create volume injection (cylinder/box).

These steps were followed:

In ansys 17.0 activate macroscopic particle model.
After turning on Macroscopic model (MPM)
created an injection and set for volume injection.
now initialize in MPM panel.
Fluent prompt will show # particles created.
Now, display injection in the MPM panel.

this will copy injection particle data to Discrete model injection.

Go to Graphics-->particle track panel
Here select option reporting--> current position in left bottom of the panel
and write to file. Now you have a filename.his file in your working directory.

Import that filename.his into excel and follow the instruction given by the post
http://www.cfd-online.com/Forums/flu...tml#post556836


This is a long way but really works in 3D fluent cases surely.

initialization.c
Tarekpower1 likes this.
shahjehan is offline   Reply With Quote

Old   March 27, 2020, 05:03
Default
  #2
New Member
 
Join Date: Mar 2020
Posts: 1
Rep Power: 0
hamxing is on a distinguished road
Hi Shahjehan,

I've found your post when i'm searching a way to initiate a static bed domain in fluidized bed. I've tried your suggestion to enable Macroscopic model (MPM) but it is only available in 3D model.
Is there any other methods than the MPM ?

Regards,
Ham Xing

Last edited by hamxing; March 27, 2020 at 05:08. Reason: Typo
hamxing is offline   Reply With Quote

Old   June 28, 2020, 10:44
Default
  #3
New Member
 
Elo Nielsen
Join Date: Jun 2020
Location: Europe & USA
Posts: 2
Rep Power: 0
EloNielsen is on a distinguished road
Dear Shahjehan
I can see your question is from March. Did you get an answer?
EloNielsen is offline   Reply With Quote

Reply

Tags
dpm, injection_file

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 01:22
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 13:59
pisoFoam compiling error with OF 1.7.1 on MAC OSX Greg Givogue OpenFOAM Programming & Development 3 March 4, 2011 17:18
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 11:46


All times are GMT -4. The time now is 18:40.