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

Help! injection loop has no effect

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 4, 2016, 09:38
Arrow Help! injection loop has no effect
  #1
New Member
 
Weijia Qian
Join Date: Mar 2016
Posts: 6
Rep Power: 10
Weijia Qian is on a distinguished road
Hi! i hope somebody could help me.
i want to loop between injections and modify them. but it seems that the loop has no effect.
the udf listed below can be built, loaded and hooked. there are two injections but the results show only one.

#include "udf.h"

DEFINE_ADJUST(particle,d)
{

Injection *Ilist;
Injection *I;
Ilist=Get_dpm_injections();
loop(I,Ilist)
{
Message("Initializing Injection qwj: %s\n",I->name);
}

}
Weijia Qian is offline   Reply With Quote

Old   March 5, 2016, 03:11
Default
  #2
New Member
 
Weijia Qian
Join Date: Mar 2016
Posts: 6
Rep Power: 10
Weijia Qian is on a distinguished road
why the "loop" has no effect?
Weijia Qian is offline   Reply With Quote

Old   March 8, 2016, 18:19
Default
  #3
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
Are you sure you have two injections shown in the injection list? If you're using unsteady tracking, also check that your particles are injected at the current simulation time.
`e` is offline   Reply With Quote

Old   March 8, 2016, 23:00
Default
  #4
New Member
 
Weijia Qian
Join Date: Mar 2016
Posts: 6
Rep Power: 10
Weijia Qian is on a distinguished road
Quote:
Originally Posted by `e` View Post
Are you sure you have two injections shown in the injection list? If you're using unsteady tracking, also check that your particles are injected at the current simulation time.
Think you very much! But i have to say sorry.
I think UDF cannot create a particle when need in the solving process. therefore, i have to give up the Fluent approach and turn to OpenFOAM.
Weijia Qian is offline   Reply With Quote

Reply


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
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 03:09
injection problem Mark New FLUENT 0 August 4, 2013 02:30
loop over all injection streams in order to get the particles specifications alighaffari Fluent UDF and Scheme Programming 0 August 28, 2012 02:42
loop over all injection streams alighaffari Main CFD Forum 1 August 27, 2012 17:00
NACA0012 geometry/design software needed Franny Main CFD Forum 13 July 7, 2007 16:57


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