diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseSystem/multiphaseSystem.C b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseSystem/multiphaseSystem.C index 6ae60e42dc..2224030613 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseSystem/multiphaseSystem.C +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseSystem/multiphaseSystem.C @@ -629,8 +629,9 @@ Foam::multiphaseSystem::dragCoeffs() const ( max ( - fvc::average(dm.phase1())*fvc::average(dm.phase2()), - //dm.phase1()*dm.phase2(), + //fvc::average(dm.phase1()*dm.phase2()), + //fvc::average(dm.phase1())*fvc::average(dm.phase2()), + dm.phase1()*dm.phase2(), dm.residualPhaseFraction() ) *dm.K diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/phaseModel/phaseModel/phaseModel.C b/applications/solvers/multiphase/multiphaseEulerFoam/phaseModel/phaseModel/phaseModel.C index bf65fe659c..543927e29b 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/phaseModel/phaseModel/phaseModel.C +++ b/applications/solvers/multiphase/multiphaseEulerFoam/phaseModel/phaseModel/phaseModel.C @@ -212,10 +212,10 @@ bool Foam::phaseModel::read(const dictionary& phaseDict) //if (nuModel_->read(phaseDict_)) { - phaseDict_.lookup("nu") >> nu_; - phaseDict_.lookup("kappa") >> kappa_; - phaseDict_.lookup("Cp") >> Cp_; - phaseDict_.lookup("rho") >> rho_; + phaseDict_.lookup("nu") >> nu_.value(); + phaseDict_.lookup("kappa") >> kappa_.value(); + phaseDict_.lookup("Cp") >> Cp_.value(); + phaseDict_.lookup("rho") >> rho_.value(); return true; } diff --git a/src/finiteVolume/cfdTools/general/MRF/MRFZoneTemplates.C b/src/finiteVolume/cfdTools/general/MRF/MRFZoneTemplates.C index 55821dbfde..23cae40603 100644 --- a/src/finiteVolume/cfdTools/general/MRF/MRFZoneTemplates.C +++ b/src/finiteVolume/cfdTools/general/MRF/MRFZoneTemplates.C @@ -44,11 +44,15 @@ void Foam::MRFZone::relativeRhoFlux const vector& origin = origin_.value(); const vector& Omega = Omega_.value(); + const vectorField& Cfi = Cf.internalField(); + const vectorField& Sfi = Sf.internalField(); + scalarField& phii = phi.internalField(); + // Internal faces forAll(internalFaces_, i) { label facei = internalFaces_[i]; - phi[facei] -= rho[facei]*(Omega ^ (Cf[facei] - origin)) & Sf[facei]; + phii[facei] -= rho[facei]*(Omega ^ (Cfi[facei] - origin)) & Sfi[facei]; } // Included patches @@ -91,11 +95,15 @@ void Foam::MRFZone::absoluteRhoFlux const vector& origin = origin_.value(); const vector& Omega = Omega_.value(); + const vectorField& Cfi = Cf.internalField(); + const vectorField& Sfi = Sf.internalField(); + scalarField& phii = phi.internalField(); + // Internal faces forAll(internalFaces_, i) { label facei = internalFaces_[i]; - phi[facei] += rho[facei]*(Omega ^ (Cf[facei] - origin)) & Sf[facei]; + phii[facei] += rho[facei]*(Omega ^ (Cfi[facei] - origin)) & Sfi[facei]; } // Included patches diff --git a/tutorials/multiphase/multiphaseEulerFoam/damBreak4phase/constant/transportProperties b/tutorials/multiphase/multiphaseEulerFoam/damBreak4phase/constant/transportProperties index e59dbd8d6f..fad0a7a482 100644 --- a/tutorials/multiphase/multiphaseEulerFoam/damBreak4phase/constant/transportProperties +++ b/tutorials/multiphase/multiphaseEulerFoam/damBreak4phase/constant/transportProperties @@ -69,7 +69,7 @@ phases diameterModel constant; constantCoeffs { - d 1e-3; + d 3e-3; } } ); @@ -96,9 +96,9 @@ interfaceCompression virtualMass ( - (air water) 0.5 - (air oil) 0.5 - (air mercury) 0.5 + (air water) 0 + (air oil) 0 + (air mercury) 0 (water oil) 0.5 (water mercury) 0.5 (oil mercury) 0.5 @@ -108,21 +108,132 @@ drag ( (air water) { - type SchillerNaumann; + type blended; + + air + { + type SchillerNaumann; + residualPhaseFraction 0; + residualSlip 0; + } + + water + { + type SchillerNaumann; + residualPhaseFraction 0; + residualSlip 0; + } + residualPhaseFraction 1e-3; residualSlip 1e-3; } (air oil) { - type SchillerNaumann; + type blended; + + air + { + type SchillerNaumann; + residualPhaseFraction 0; + residualSlip 0; + } + + oil + { + type SchillerNaumann; + residualPhaseFraction 0; + residualSlip 0; + } + residualPhaseFraction 1e-3; residualSlip 1e-3; } (air mercury) { - type SchillerNaumann; + type blended; + + air + { + type SchillerNaumann; + residualPhaseFraction 0; + residualSlip 0; + } + + mercury + { + type SchillerNaumann; + residualPhaseFraction 0; + residualSlip 0; + } + + residualPhaseFraction 1e-3; + residualSlip 1e-3; + } + + (water oil) + { + type blended; + + water + { + type SchillerNaumann; + residualPhaseFraction 0; + residualSlip 0; + } + + oil + { + type SchillerNaumann; + residualPhaseFraction 0; + residualSlip 0; + } + + residualPhaseFraction 1e-3; + residualSlip 1e-3; + } + + (water mercury) + { + type blended; + + water + { + type SchillerNaumann; + residualPhaseFraction 0; + residualSlip 0; + } + + mercury + { + type SchillerNaumann; + residualPhaseFraction 0; + residualSlip 0; + } + + residualPhaseFraction 1e-3; + residualSlip 1e-3; + } + + (oil mercury) + { + type blended; + + oil + { + type SchillerNaumann; + residualPhaseFraction 0; + residualSlip 0; + } + + mercury + { + type SchillerNaumann; + residualPhaseFraction 0; + residualSlip 0; + } + residualPhaseFraction 1e-3; residualSlip 1e-3; } diff --git a/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/system/controlDict b/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/system/controlDict index fdcdcc258c..793c8a9121 100644 --- a/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/system/controlDict +++ b/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/system/controlDict @@ -17,7 +17,7 @@ FoamFile application multiphaseInterFoam; -startFrom latestTime; +startFrom startTime; startTime 0;