Fluent: How to model capillary driven flow in porous media model?

Hi,

I want to simulate a transient two-phase flow with VOF in porous media considering capillary action. The porous zone is initially filled with air. I want to model the displacement of air with liquid water due to capillary forces. My main interest is the degree of wetting and the spreading of the wetting front. How to model capillary effects in the porous zone?

Best regards

Comments

  • DrAmineDrAmine GermanyForum Coordinator
    edited August 2018

    In the Eulerian Model the Capillary Pressure and wetting effects are taken into account as an additional source term for the wetting phase momentum equation.

  • student_18student_18 Member
    edited August 2018

    Thank you. When using Eulerian Model my calculation diverges after several time steps. Using VOF the calculation has no stability problems. What could be the reason? Might the same mesh be acceptable for VOF but not for Eulerian?

  • DrAmineDrAmine GermanyForum Coordinator
    edited August 2018

    Eulerian Model is more general than the VOF model and requires baby sitting of the closure laws for drag, etc. The Eulerian Model allows for slip by solving additional transport equations

    You can still use the VOF model but needs to incorporate what is missing via UDF. 

  • student_18student_18 Member
    edited August 2018

    Thanks, I would then like to try using UDF with VOF. If I understand that right, I define a momentum source term through DEFINE_SOURCE for the wetting phase. The source term must consider the capillary pressure and permeability both depending on the saturation. But as I am new to UDF, it is not exactly clear to me how to write the UDF. Do you have any tips or good examples?

    Best regards  

  • DrAmineDrAmine GermanyForum Coordinator
    edited August 2018

    You can check the Student Resources, customization manual and try to attend a UDF training.

  • KremellaKremella Admin
    edited August 2018

    Hello, 

    Just to add to abenhadj's comments, the Fluent customization manual is extremely extensive. It contains numerous examples. UDFs mainly make use of User Defined Macros. The best way to get used to writing UDFs is to take an existing UDF and modify it. You might have to go through additional debug. You can always reach out to us at the student community if you need additional help about various macros.

    Good luck with your modeling.

    Best Regards,

    Karthik

  • AstroJZAstroJZ Member
    edited March 2019

    Hello, 

    Just to add to abenhadj's comments, the Fluent customization manual is extremely extensive. It contains numerous examples. UDFs mainly make use of User Defined Macros. The best way to get used to writing UDFs is to take an existing UDF and modify it. You might have to go through additional debug. You can always reach out to us at the student community if you need additional help about various macros.

    Good luck with your modeling.

    Best Regards,

    Karthik

     

    Hi Kathik,

     

    I am doing simulation of multiphase flow and I would like to include capillary pressure as source term in liquid phase by UDF. How can I do it?

     

    Thanks,

     

    Astrojz

  • HossHoss CanadaMember
    edited April 25

    As shown, my media is made of entangled fibers. First, the void space between fibers is filled with water. However, in oil vicinity, oil pushes the water out and is wicked into the microchannels (due to capillary force and lipophilicity of the fibers).

    Can I simulate this via porous media? I want to calculate wicking rate of oil.
    Thank you!

    Eulerian Model is more general than the VOF model and requires baby sitting of the closure laws for drag, etc. The Eulerian Model allows for slip by solving additional transport equations

    You can still use the VOF model but needs to incorporate what is missing via UDF. 

  • I want to simulate a transient two-phase flow with VOF in porous media considering capillary action. The porous zone is initially filled with air. I want to model the displacement of air with liquid water due to capillary forces. My main interest is the degree of wetting and the spreading of the wetting front. How to model capillary effects in the porous zone?

  • RobRob UKForum Coordinator

    Have a look at the Corey model, otherwise you'll either need to model the structure itself or use a UDF.

  • Hi

    How to add more than one wetting phase in corey model Ansys fluent?

  • Hi

    just let me know how to add more than one wetting or non-wetting phases in that model ? As, I can see we have only one wetting / non wetting phase available in drop down list. In the eulerian model I added three phase(air, water and oil). I want to add air as a primary phase, water and oil as a secondary phase. 

  • RobRob UKForum Coordinator

    You'll need a UDF for that, the model was added to allow reservoir models to be run but we didn't extend it to cover many phases.

Sign In or Register to comment.