CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Deprecation of argument input in OF 5+ onwards for MULES::explicitSolve (https://www.cfd-online.com/Forums/main/224063-deprecation-argument-input-5-onwards-mules-explicitsolve.html)

pavaninguva February 6, 2020 00:08

Deprecation of argument input in OF 5+ onwards for MULES::explicitSolve
 
Hi, for OF 4++ and below, the MULES::explicitSolve could be written as such:

Code:

MULES::explicitSolve(alpha1, phi, phiAlpha, 1, 0);
But in OF 5++, it seems that such a method of declaring it is deprecated and the current approach of doing so as shown in VoF/alphaEqn.H is as follows:

Code:

MULES::explicitSolve
            (
                geometricOneField(),
                alpha1,
                phiCN,
                alphaPhi10,
                Sp,
                (Su + divU*min(alpha1(), scalar(1)))(),
                oneField(),
                zeroField()
            );
        }

It seems that all the additional arguments are either zeros or ones declared in a new way, I would appreciate any insight on this difference and what do the new arguments specifically mean.


All times are GMT -4. The time now is 18:29.