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/)
-   -   multiphase alpha.solid phase fraction (https://www.cfd-online.com/Forums/openfoam-solving/229606-multiphase-alpha-solid-phase-fraction.html)

OPFO August 17, 2020 05:04

multiphase alpha.solid phase fraction
 
Hello,

I am using OpenFOAM-v1912 and the icoReactingMultiphaseInterFoam solver.

I am trying to convert a solver based on InterFoam where the term fvc::snGrad(alpha1) is used. However, for my icoReactingMultiphaseInterFoam solver, alpha1 won't work since I am using 3 phases and I believe the solver identifies phases based on pairs (e.g. ith phase).

Does anyone know how I can get the value of the solid phase fraction in volScalarField form for a multiphase solver?

Thanks in advance for any help!

navidamin March 4, 2021 06:00

Take a look into the source code in the surfaceTensionForce function and you will see a good example of referring to the phases. There, you will see that you have to loop over phases and via the iterators you will have access to alpha for each phase and also all the properties of that phase (rho, Cp, ...)


All times are GMT -4. The time now is 00:50.