-
-
July 8, 2019 at 9:36 am
pavankonchada123
Subscriber   Hi
I want to change my position of injection for every time step by a magnitude of 0.0001 in y direction. Is my udf okÂ
#include "udf.h"
#include "dpm.h"
DEFINE_DPM_INJECTION_INIT(Bahn, I)Â
{Â
Particle *p;Â
real injposition = 0.75;Â
Â
Â
loop(p,I->p)Â
{Â
P_POS(p)[1] = injposition + 0.0001;
Â
injposition = P_POS(p)[1];
Â
} }
-
July 10, 2019 at 4:03 pm
Rob
Forum ModeratorWhat happens when you try it?Â
-
July 17, 2019 at 9:50 am
pavankonchada123
SubscriberIt worked when I used current time in it
Â
-
July 17, 2019 at 9:51 am
pavankonchada123
SubscriberAnother doubt, does define_dpm_bodyforce macro helps in defining force on all particles in domain at all instances of time??
-
July 17, 2019 at 10:31 am
Rob
Forum ModeratorIt will add a body force whenever it's called at whatever value is defined: you need to specify when it's active and what it does.Â
-
Viewing 4 reply threads
- The topic ‘DEFINE_DPM_INJECTION_INIT to change the position of particle’ is closed to new replies.
Ansys Innovation Space
Trending discussions
Top Contributors
-
3597
-
1283
-
1117
-
1068
-
983
Top Rated Tags
© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.