TAGGED: discrete-phase-model, dpm, fluent, udf, udf-fluent
-
-
May 4, 2022 at 10:02 pm
nicko627
SubscriberHello, as it says in the title, I'd like to create an injection in the Discrete-Phase Model that moves along a predefined path in a transient simulation. I've gone down the path of looking at UDF's (DEFINE_DPM_INJECTION_INIT seems to be the choice), but I don't see any documentation of the children in the C-struct 'Injection* I'. I assume there is a value corresponding to every item in Fluent's standard GUI that I could change, like mass flow rate, particle injection velocity, etc., I just don't know what to access them as. Now, assuming that there is a child of the injection that tells me the injections position, am I allowed to simply change that value in the code? I don't see any macro for setting the value of things in an injection. Thanks, Nick -
May 5, 2022 at 6:59 am
DrAmine
Ansys EmployeeIn that UDF you will need to update the position of the particles where are first introduced in the model. You do not require to access the "injection" specs if you can directly alter the particle properties using DEFINE_DPM_INJECTION_INIT.
-
May 5, 2022 at 1:27 pm
nicko627
SubscriberAh I see, so the way to do it would be to set up the injection at the beginning of my path, and then at every time step, I move the particles' initial positions in the fluent loop, loop(p, I->p).
I now am looking at Table 3.29 in the UDF manual; are you suggesting that I should do something like this in my udf:
loop(p, I->p)
{
P_INIT_POS(p)[0] = path_x[timestep];
P_INIT_POS(p)[1] = path_y[timestep];
P_INIT_POS(p)[2] = path_z[timestep];
}
I just realized that the example in the manual shows that the above can be done, but with particle diameter/stream flow rate. Thanks for answering my question!
-
May 5, 2022 at 6:10 pm
DrAmine
Ansys EmployeeWelcome ƒÖÅ just consider that the looping differ for steady and unsteady particles. All that is documented:)
-
- 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
-
3744
-
2573
-
1821
-
1236
-
596
© 2023 Copyright ANSYS, Inc. All rights reserved.