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 Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By shahjehan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2016, 22: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: 12
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, 06: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 06:08. Reason: Typo
hamxing is offline   Reply With Quote

Old   June 28, 2020, 11: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


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 02:22
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59
pisoFoam compiling error with OF 1.7.1 on MAC OSX Greg Givogue OpenFOAM Programming & Development 3 March 4, 2011 18:18
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 12:46


All times are GMT -4. The time now is 15:59.