CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   How to set empty field in multiphaseEulerFoam (https://www.cfd-online.com/Forums/openfoam-solving/242524-how-set-empty-field-multiphaseeulerfoam.html)

enthusiast April 25, 2022 22:00

How to set empty field in multiphaseEulerFoam
 
1 Attachment(s)
Dear foamers,
I have a geometry with one inlet where the two-phase (water-oxygen) enters the square container which is half-filled with water.

I need to keep the other half empty so that I can collect the data of oxygen separation from water, but I am not able to not set the other half, as the solver don't run without setting it.

Code:

defaultFieldValues
(
    volScalarFieldValue alpha.oxygen 0
    volScalarFieldValue alpha.water 0
);

regions
(
 
        boxToCell
    {
                box (0 0 0) (1.2 0.4 1);
        fieldValues
        (
            volScalarFieldValue alpha.oxygen 0
                        volScalarFieldValue alpha.water 1
        );
    }
 
);

I tried it but no use, can someone please suggest how I can to initialize cells without alpha of any phase.

I am using openfoam version 8.

I have attached the fields set with alpha.oxygen as 1 and alpha.water as 0, this was the only way for me to run the simulation.

Can someone please suggest how I can set an empty intial phase property for the space above water in the container?

Attachment 89506

Thank you
Akshay


All times are GMT -4. The time now is 10:46.