Merge branch 'master' of ssh://opencfd:8007/home/dm4/OpenFOAM/OpenFOAM-dev
This commit is contained in:
commit
0ec21dd1a3
@ -4,7 +4,8 @@
|
|||||||
fvm::ddt(rho, U)
|
fvm::ddt(rho, U)
|
||||||
+ fvm::div(phi, U)
|
+ fvm::div(phi, U)
|
||||||
+ turb.divDevRhoReff(U)
|
+ turb.divDevRhoReff(U)
|
||||||
+ fvOptions(rho, U)
|
==
|
||||||
|
fvOptions(rho, U)
|
||||||
);
|
);
|
||||||
|
|
||||||
UEqn().relax();
|
UEqn().relax();
|
||||||
|
@ -193,6 +193,7 @@ $(derivedFvPatchFields)/outletPhaseMeanVelocity/outletPhaseMeanVelocityFvPatchVe
|
|||||||
$(derivedFvPatchFields)/waveTransmissive/waveTransmissiveFvPatchFields.C
|
$(derivedFvPatchFields)/waveTransmissive/waveTransmissiveFvPatchFields.C
|
||||||
$(derivedFvPatchFields)/waveSurfacePressure/waveSurfacePressureFvPatchScalarField.C
|
$(derivedFvPatchFields)/waveSurfacePressure/waveSurfacePressureFvPatchScalarField.C
|
||||||
$(derivedFvPatchFields)/interstitialInletVelocity/interstitialInletVelocityFvPatchVectorField.C
|
$(derivedFvPatchFields)/interstitialInletVelocity/interstitialInletVelocityFvPatchVectorField.C
|
||||||
|
$(derivedFvPatchFields)/prghPressure/prghPressureFvPatchScalarField.C
|
||||||
|
|
||||||
fvsPatchFields = fields/fvsPatchFields
|
fvsPatchFields = fields/fvsPatchFields
|
||||||
$(fvsPatchFields)/fvsPatchField/fvsPatchFields.C
|
$(fvsPatchFields)/fvsPatchField/fvsPatchFields.C
|
||||||
|
@ -173,10 +173,55 @@ void Foam::fv::interRegionExplicitPorositySource::addSup
|
|||||||
|
|
||||||
if (eqn.dimensions() == dimForce)
|
if (eqn.dimensions() == dimForce)
|
||||||
{
|
{
|
||||||
const volScalarField& rhoNbr =
|
volScalarField rhoNbr
|
||||||
nbrMesh.lookupObject<volScalarField>(rhoName_);
|
(
|
||||||
const volScalarField& muNbr =
|
IOobject
|
||||||
nbrMesh.lookupObject<volScalarField>(muName_);
|
(
|
||||||
|
"rho:UNbr",
|
||||||
|
nbrMesh.time().timeName(),
|
||||||
|
nbrMesh,
|
||||||
|
IOobject::NO_READ,
|
||||||
|
IOobject::NO_WRITE
|
||||||
|
),
|
||||||
|
nbrMesh,
|
||||||
|
dimensionedScalar("zero", dimDensity, 0.0)
|
||||||
|
);
|
||||||
|
|
||||||
|
volScalarField muNbr
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
"mu:UNbr",
|
||||||
|
nbrMesh.time().timeName(),
|
||||||
|
nbrMesh,
|
||||||
|
IOobject::NO_READ,
|
||||||
|
IOobject::NO_WRITE
|
||||||
|
),
|
||||||
|
nbrMesh,
|
||||||
|
dimensionedScalar("zero", dimViscosity, 0.0)
|
||||||
|
);
|
||||||
|
|
||||||
|
const volScalarField& rho =
|
||||||
|
mesh_.lookupObject<volScalarField>(rhoName_);
|
||||||
|
|
||||||
|
const volScalarField& mu =
|
||||||
|
mesh_.lookupObject<volScalarField>(muName_);
|
||||||
|
|
||||||
|
// map local rho onto neighbour region
|
||||||
|
meshInterp().mapSrcToTgt
|
||||||
|
(
|
||||||
|
rho.internalField(),
|
||||||
|
plusEqOp<scalar>(),
|
||||||
|
rhoNbr.internalField()
|
||||||
|
);
|
||||||
|
|
||||||
|
// map local mu onto neighbour region
|
||||||
|
meshInterp().mapSrcToTgt
|
||||||
|
(
|
||||||
|
mu.internalField(),
|
||||||
|
plusEqOp<scalar>(),
|
||||||
|
muNbr.internalField()
|
||||||
|
);
|
||||||
|
|
||||||
porosityPtr_->addResistance(nbrEqn, rhoNbr, muNbr);
|
porosityPtr_->addResistance(nbrEqn, rhoNbr, muNbr);
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -96,6 +96,11 @@ public:
|
|||||||
{
|
{
|
||||||
return PtrList<Reaction<ThermoType> >::operator[](i);
|
return PtrList<Reaction<ThermoType> >::operator[](i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const Reaction<ThermoType>& operator [] (const label i) const
|
||||||
|
{
|
||||||
|
return PtrList<Reaction<ThermoType> >::operator[](i);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ void Foam::interfaceProperties::calculateK()
|
|||||||
const surfaceVectorField& Sf = mesh.Sf();
|
const surfaceVectorField& Sf = mesh.Sf();
|
||||||
|
|
||||||
// Cell gradient of alpha
|
// Cell gradient of alpha
|
||||||
const volVectorField gradAlpha(fvc::grad(alpha1_));
|
const volVectorField gradAlpha(fvc::grad(alpha1_, "nHat"));
|
||||||
|
|
||||||
// Interpolated face-gradient of alpha
|
// Interpolated face-gradient of alpha
|
||||||
surfaceVectorField gradAlphaf(fvc::interpolate(gradAlpha));
|
surfaceVectorField gradAlphaf(fvc::interpolate(gradAlpha));
|
||||||
@ -123,6 +123,11 @@ void Foam::interfaceProperties::calculateK()
|
|||||||
|
|
||||||
// Face unit interface normal
|
// Face unit interface normal
|
||||||
surfaceVectorField nHatfv(gradAlphaf/(mag(gradAlphaf) + deltaN_));
|
surfaceVectorField nHatfv(gradAlphaf/(mag(gradAlphaf) + deltaN_));
|
||||||
|
// surfaceVectorField nHatfv
|
||||||
|
// (
|
||||||
|
// (gradAlphaf + deltaN_*vector(0, 0, 1)
|
||||||
|
// *sign(gradAlphaf.component(vector::Z)))/(mag(gradAlphaf) + deltaN_)
|
||||||
|
// );
|
||||||
correctContactAngle(nHatfv.boundaryField(), gradAlphaf.boundaryField());
|
correctContactAngle(nHatfv.boundaryField(), gradAlphaf.boundaryField());
|
||||||
|
|
||||||
// Face unit interface normal flux
|
// Face unit interface normal flux
|
||||||
|
Loading…
Reference in New Issue
Block a user