mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Corrected assignment to reference object
This commit is contained in:
@ -145,7 +145,7 @@ void Foam::threePhaseInterfaceProperties::calculateK()
|
|||||||
// Complex expression for curvature.
|
// Complex expression for curvature.
|
||||||
// Correction is formally zero but numerically non-zero.
|
// Correction is formally zero but numerically non-zero.
|
||||||
// volVectorField nHat = gradAlpha/(mag(gradAlpha) + deltaN_);
|
// volVectorField nHat = gradAlpha/(mag(gradAlpha) + deltaN_);
|
||||||
// nHat.boundaryField() = nHatfv.boundaryField();
|
// nHat.boundaryFieldRef() = nHatfv.boundaryField();
|
||||||
// K_ = -fvc::div(nHatf_) + (nHat & fvc::grad(nHatfv) & nHat);
|
// K_ = -fvc::div(nHatf_) + (nHat & fvc::grad(nHatfv) & nHat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2824,7 +2824,7 @@ bool Foam::snappyLayerDriver::writeLayerData
|
|||||||
faceRealThickness
|
faceRealThickness
|
||||||
);
|
);
|
||||||
|
|
||||||
// Convert patchReal to relavtive thickness
|
// Convert patchReal to relative thickness
|
||||||
scalarField pfld(patchReal.size(), 0.0);
|
scalarField pfld(patchReal.size(), 0.0);
|
||||||
forAll(patchReal, i)
|
forAll(patchReal, i)
|
||||||
{
|
{
|
||||||
@ -2834,7 +2834,7 @@ bool Foam::snappyLayerDriver::writeLayerData
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fld.boundaryField()[patchi] == pfld;
|
fld.boundaryFieldRef()[patchi] == pfld;
|
||||||
}
|
}
|
||||||
Info<< indent << fld.name()
|
Info<< indent << fld.name()
|
||||||
<< " : overall layer thickness (fraction"
|
<< " : overall layer thickness (fraction"
|
||||||
|
|||||||
@ -142,7 +142,7 @@ void Foam::interfaceProperties::calculateK()
|
|||||||
volVectorField nHat(gradAlpha/(mag(gradAlpha) + deltaN_));
|
volVectorField nHat(gradAlpha/(mag(gradAlpha) + deltaN_));
|
||||||
forAll(nHat.boundaryField(), patchi)
|
forAll(nHat.boundaryField(), patchi)
|
||||||
{
|
{
|
||||||
nHat.boundaryField()[patchi] = nHatfv.boundaryField()[patchi];
|
nHat.boundaryFieldRef()[patchi] = nHatfv.boundaryField()[patchi];
|
||||||
}
|
}
|
||||||
|
|
||||||
K_ = -fvc::div(nHatf_) + (nHat & fvc::grad(nHatfv) & nHat);
|
K_ = -fvc::div(nHatf_) + (nHat & fvc::grad(nHatfv) & nHat);
|
||||||
|
|||||||
Reference in New Issue
Block a user