mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
boundaryField() -> boundaryFieldRef()
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -192,12 +192,15 @@ int main(int argc, char *argv[])
|
||||
0.0*sigma.component(symmTensor::YZ)
|
||||
);
|
||||
|
||||
forAll(sigmaUn.boundaryField(), patchI)
|
||||
volScalarField::GeometricBoundaryField& sigmaUnBf =
|
||||
sigmaUn.boundaryFieldRef();
|
||||
|
||||
forAll(sigmaUn.boundaryField(), patchi)
|
||||
{
|
||||
sigmaUn.boundaryField()[patchI] =
|
||||
sigmaUnBf[patchi] =
|
||||
(
|
||||
mesh.boundary()[patchI].nf()
|
||||
& sigma.boundaryField()[patchI]
|
||||
mesh.boundary()[patchi].nf()
|
||||
& sigma.boundaryField()[patchi]
|
||||
)().component(vector::X);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user