diff --git a/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/immiscibleIncompressibleTwoPhaseMixture.H b/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/immiscibleIncompressibleTwoPhaseMixture.H index 84140229f520b5b80ebaf249085a5f73de8f3b57..ded416b068f47652b39d7534b9ae4a5687f0fe88 100644 --- a/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/immiscibleIncompressibleTwoPhaseMixture.H +++ b/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/immiscibleIncompressibleTwoPhaseMixture.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2014 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2014-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -44,7 +44,7 @@ namespace Foam { /*---------------------------------------------------------------------------*\ - Class immiscibleIncompressibleTwoPhaseMixture Declaration + Class immiscibleIncompressibleTwoPhaseMixture Declaration \*---------------------------------------------------------------------------*/ class immiscibleIncompressibleTwoPhaseMixture @@ -78,6 +78,14 @@ public: incompressibleTwoPhaseMixture::correct(); interfaceProperties::correct(); } + + //- Read base transportProperties dictionary + virtual bool read() + { + return + incompressibleTwoPhaseMixture::read() + && interfaceProperties::read(); + } }; diff --git a/src/transportModels/interfaceProperties/interfaceProperties.C b/src/transportModels/interfaceProperties/interfaceProperties.C index daa1967c990ece9fd7d30797e9c7e875e97a9966..0091aeee8f1b25cb29be7bfb428b0f7513097bc0 100644 --- a/src/transportModels/interfaceProperties/interfaceProperties.C +++ b/src/transportModels/interfaceProperties/interfaceProperties.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -222,4 +222,13 @@ Foam::interfaceProperties::nearInterface() const } +bool Foam::interfaceProperties::read() +{ + alpha1_.mesh().solverDict(alpha1_.name()).lookup("cAlpha") >> cAlpha_; + transportPropertiesDict_.lookup("sigma") >> sigma_; + + return true; +} + + // ************************************************************************* // diff --git a/src/transportModels/interfaceProperties/interfaceProperties.H b/src/transportModels/interfaceProperties/interfaceProperties.H index b14f118ac516aa803abd00db411a81223dd36398..060d516d324041340684134847e49fce65a072d7 100644 --- a/src/transportModels/interfaceProperties/interfaceProperties.H +++ b/src/transportModels/interfaceProperties/interfaceProperties.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -152,6 +152,9 @@ public: { calculateK(); } + + //- Read transportProperties dictionary + bool read(); };