-
-
July 8, 2019 at 9:36 am
pavankonchada123
SubscriberHi
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
Ansys EmployeeWhat 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
Ansys EmployeeIt 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.
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
-
3720
-
2570
-
1783
-
1236
-
594
© 2023 Copyright ANSYS, Inc. All rights reserved.