We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
Multiphase Flows

Multiphase Flows

How can I access the impact angle of which a particle hits a boundary?

    • FAQFAQ
      Participant

      The impact angle of which a particle hits a wall is calculated by Fluent but not stored. To get access to this you will need to write a small UDF. In the UDF the angle can be accessed using the macro DEFINE_DPM_EROSION (called every time a particle hits a reflecting boundary) or be calculated inside the macro DEFINE_DPM_BC (called every time a particle hits a boundary (except symmetry or periodic boundary)). Inside one of these macros you can either directly write the information to a file or store in a particle user variable to be printed in another function. For an example on how to calculate the angle please take a look at the customization manual in section 2.5.1. DEFINE_DPM_BC. Alternatively the cosine of the angle is given by cos_a = NV_DOT(A,V)/(NV_MAG(A)*NV_MAG(V)) where A is the boundary face area and V the particle velocity vector. The angle is then alpha = acos(cos_a)