Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Custom Drag Law and Spatially Varying Density from Point Cloud in Rocky DEM Plug

    • mpr7366
      Subscriber

      Hello,

      I’m using the 1-Way CFD Field Coupling module in ANSYS Rocky to apply external velocity fields from a DSMC (SPARTA) simulation via a point cloud. I reviewed the sample code, which uses the Schiller & Naumann drag law and assumes constant fluid properties (e.g., density and viscosity).

      I have two questions regarding customization:

      1. Can the drag law be modified?
        I’d like to replace the Schiller & Naumann correlation with a different drag formulation.

      2. Can the fluid density be made spatially varying?
        Instead of a globally constant value, I would like to supply fluid density as an additional point cloud field (e.g., rho) that varies with position , and use that value locally during the drag force computation.

      If this is possible, is there any documentation  passing them into the drag force calculation?

      Thank you for your help!

      Regards, 

      Madan B K

    • Lucas Bertollo Baggio
      Ansys Employee

      Hello Madan,

       

      1: Yes, you just need to adjust the code accordingly.

      2: You can export CFD Cells density values and convert it into a point cloud with X, Y, Z, U, V, W, rho. Then, you can implement this drag model (function of rho).

       

      Also take a look on the module manual and the CFD Coupling Technical Manual.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.