-
-
July 11, 2019 at 1:19 pm
Twain
SubscriberHello there,
i am encountering some problems with my simulation, hopefully someone can help me sorting things out
I am modeling a multi phase eulerian flow through a porous zone, with velocity inlet, pressure outlet, SIMPLE algo and UDFs controlling the fluid flow.
(2 liquid, 1 gas)
the UDF descrbies e.g. viscouse resistance and the masstransfer between the 2 liquid zones,
which results in volumefractions of those 2 liquids 'mixing' over the porous zone
Now i would like to track some particles through the domain and view their distribution.
Therefore i used DPM, particle tracking, with injection from the inlet durface.
The result indicates the particles go through the porous media - but they do not seem to 'mix' as heavily as the volumefraction of the phases.
So my question is:
In this case, do i need to
a) somehow assain those UDF to the injection?
Where as liquid 1 and 2 enter the porous zone through (surface) inlet - at first i thought this would "make" the injected particles follow accordingly
[from 24.1.2.3. Limitations on Using the Discrete Phase Model with Other ANSYS Fluent Models
[" ... When using the DPM model with the Eulerian multiphase model, the tracked particles rely only on the primary phase to compute drag, heat, and mass transfer.
Also, any DPM related source terms are applied to the primary phase. Particle tracking relative to a secondary phase is not provided. ... "]
If adding UDFs is nessecary, what is the recommended way of doing so?
(ecspecially, as there are UDFs for each luiqid phase)
b) use an other type of particle?
e.g. inert ones?
I hope i was able to describe the problem, even without any pictures atm.
Thanks in advace for your help!
BR Twain!
edit: formating
-
July 11, 2019 at 4:17 pm
DrAmine
Ansys EmployeeIf massless or inert particles without coupling you can track with the phase you want as beta feature. In all other case you need to copy the velocity field into the one of primary phase and then switch back. Not easy.
We are working on extending Eulerian multiphase compatibility. -
August 18, 2019 at 7:12 pm
Twain
SubscriberThanks for your respnes, sorry it took some time for me.
As the problem still exists, someone here might be of help
Atm. I am injecting massless particles via file injection.
Now i need to change their x and y velocities via an UDF.
(later changing to a value, which is written into an UDM)
I gave multiple macros a chance, e.g.:
DEFINE_DPM_SCALAR_UPDATE
DEFINE_DPM_INJECTION_INIT
DEFINE_DPM_OUTPUT
sadly without success.
Right now, i am with:
DEFINE_ADJUST(adjust_DPM,d)
{
Thread *t;
cell_t c;
thread_loop_c(t,d)
{
begin_c_loop(c,t)
Particle *p;
Injection *Ilist, *I;
Ilist = Get_dpm_injections();
loop(I, Ilist)
{
loop(p,I->p)
{
P_VEL(p)[0]=5; //fixed values for testing
P_VEL(p)[1]=-5;
P_VEL(p)[2]=0;
}
}
end_c_loop(c,t)
}
}
but this does not work either.
I am on Win 10, compiling the UDF with Visual Studio 2019 works, so does loading into fluent.
It can not be that hard, adjusting velocity vectors of these particles, can it?
.....
Looking definitly forward for some help here
Thanks in advance,
best regards,
Twain!
-
August 19, 2019 at 5:00 am
DrAmine
Ansys EmployeeTry Scalar Update DPM macro. -
August 19, 2019 at 1:08 pm
Twain
SubscriberThanks for your response.
When using the DEFINE_DPM_SCALAR_UPDATE,
i get a situation like on the attached/insert picture:
I) net edges
II) particle track
So I am able to change the velocities, but this does not have the intended effect on the particle trajectory.
Fluent manual:
" During ANSYS FLUENT execution, the DEFINE_DPM_SCALAR_UPDATE function is called at the start of particle integration (when initialize is equal to 1) and then after each time step for the particle trajectory integration. "
Is scalar update the way to go? If so, what needs to be kept in mind for this to work as desired?
Thanks again!
BR Twain
edit: insert image
-
August 19, 2019 at 1:39 pm
DrAmine
Ansys EmployeeANSYS Staff do not look into attachments. Please insert your picture. Scalar Update is used to modify particle states and properties and to free particles to a certain velocity.
-
August 24, 2019 at 5:13 pm
-
August 27, 2019 at 5:15 am
DrAmine
Ansys EmployeeYes that is the right macro to affect particle trajectory. There are other possibilities like providing a body force. That is your task to identify the right approach.
-
- 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
-
3930
-
2649
-
1861
-
1272
-
610
© 2023 Copyright ANSYS, Inc. All rights reserved.