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

How to deinfe number of particle streams in an injection init udf?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 1, 2021, 06:26
Default How to deinfe number of particle streams in an injection init udf?
  #1
New Member
 
wuyu
Join Date: Mar 2010
Posts: 27
Rep Power: 13
seasoul is on a distinguished road
I am trying to define a udf for surface injection and I think it would be using
Code:
DEFINE_DPM_INJECTION_INIT
, and a minimal test as below works, by simply defining the particle diameter and flow rate.

Code:
DEFINE_DPM_INJECTION_INIT(SURFINJ, I)
{
Particle *p;
face_t f;
Thread *cthread;

loop(p,I->p)  
    {
      P_DIAM(p) = 1e-5;
      P_FLOW_RATE(p) = 1.5e-3;
    }

}
I have found that the number of streams is the number of faces of the boundary surface, exactly the same as when we define the injection by surface without udf. But if I want to define the number of the streams, for example, twice of the number of the faces and then define the location for each stream, which function should I call?

Thank you in advance.
seasoul is offline   Reply With Quote

Reply

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
[Other] Equal decomposition of cylindrical fluid domain Sean95 OpenFOAM Meshing & Mesh Conversion 3 February 12, 2019 03:34
GenerateVolumeMesh Error - Surface Wrapper Self Interacting (?) AndreP STAR-CCM+ 10 August 2, 2018 07:48
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
SigFpe when running ANY application in parallel Pj. OpenFOAM Running, Solving & CFD 3 April 23, 2015 14:53
decomposePar pointfield flying OpenFOAM Running, Solving & CFD 28 December 30, 2013 15:05


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