mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
GeometricField::internalField() -> GeometricField::internalFieldRef()
Non-const access to the internal field now obtained from a specifically
named access function consistent with the new names for non-canst access
to the boundary field boundaryFieldRef() and dimensioned internal field
dimensionedInternalFieldRef().
See also commit 22f4ad32b1
This commit is contained in:
@ -1137,7 +1137,7 @@ void Foam::conformalVoronoiMesh::writeCellSizes
|
||||
zeroGradientFvPatchScalarField::typeName
|
||||
);
|
||||
|
||||
scalarField& cellSize = targetCellSize.internalField();
|
||||
scalarField& cellSize = targetCellSize.internalFieldRef();
|
||||
|
||||
const vectorField& C = mesh.cellCentres();
|
||||
|
||||
@ -1163,7 +1163,7 @@ void Foam::conformalVoronoiMesh::writeCellSizes
|
||||
// zeroGradientFvPatchScalarField::typeName
|
||||
// );
|
||||
|
||||
// targetCellVolume.internalField() = pow3(cellSize);
|
||||
// targetCellVolume.internalFieldRef() = pow3(cellSize);
|
||||
|
||||
// Info<< nl << "Create actualCellVolume volScalarField" << endl;
|
||||
|
||||
@ -1182,7 +1182,7 @@ void Foam::conformalVoronoiMesh::writeCellSizes
|
||||
// zeroGradientFvPatchScalarField::typeName
|
||||
// );
|
||||
|
||||
// actualCellVolume.internalField() = mesh.cellVolumes();
|
||||
// actualCellVolume.internalFieldRef() = mesh.cellVolumes();
|
||||
|
||||
// Info<< nl << "Create equivalentCellSize volScalarField" << endl;
|
||||
|
||||
@ -1201,7 +1201,7 @@ void Foam::conformalVoronoiMesh::writeCellSizes
|
||||
// zeroGradientFvPatchScalarField::typeName
|
||||
// );
|
||||
|
||||
// equivalentCellSize.internalField() = pow
|
||||
// equivalentCellSize.internalFieldRef() = pow
|
||||
// (
|
||||
// actualCellVolume.internalField(),
|
||||
// 1.0/3.0
|
||||
@ -1247,7 +1247,7 @@ void Foam::conformalVoronoiMesh::writeCellSizes
|
||||
// pointPatchVectorField::calculatedType()
|
||||
// );
|
||||
|
||||
// scalarField& cellSize = ptTargetCellSize.internalField();
|
||||
// scalarField& cellSize = ptTargetCellSize.internalFieldRef();
|
||||
|
||||
// const vectorField& P = tetMesh.points();
|
||||
|
||||
@ -1283,7 +1283,7 @@ void Foam::conformalVoronoiMesh::writeCellAlignments
|
||||
// zeroGradientFvPatchTensorField::typeName
|
||||
// );
|
||||
//
|
||||
// tensorField& cellAlignment = cellAlignments.internalField();
|
||||
// tensorField& cellAlignment = cellAlignments.internalFieldRef();
|
||||
//
|
||||
// const vectorField& C = mesh.cellCentres();
|
||||
//
|
||||
|
||||
@ -117,16 +117,14 @@ bool Foam::conformalVoronoiMesh::distributeBackground(const Triangulation& mesh)
|
||||
}
|
||||
}
|
||||
|
||||
scalarField& cwi = cellWeights.internalFieldRef();
|
||||
|
||||
forAll(cellVertices, cI)
|
||||
{
|
||||
// Give a small but finite weight for empty cells. Some
|
||||
// decomposition methods have difficulty with integer overflows in
|
||||
// the sum of the normalised weight field.
|
||||
cellWeights.internalField()[cI] = max
|
||||
(
|
||||
cellVertices[cI],
|
||||
1e-2
|
||||
);
|
||||
cwi[cI] = max(cellVertices[cI], 1e-2);
|
||||
}
|
||||
|
||||
autoPtr<mapDistributePolyMesh> mapDist = decomposition_().distribute
|
||||
|
||||
@ -636,7 +636,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
{
|
||||
// Internal field
|
||||
cellDistance.internalField() = signedDistance
|
||||
cellDistance.internalFieldRef() = signedDistance
|
||||
(
|
||||
distSqr,
|
||||
fvm.C(),
|
||||
@ -701,7 +701,7 @@ int main(int argc, char *argv[])
|
||||
-sqr(GREAT) // null value
|
||||
);
|
||||
|
||||
pointDistance.internalField() = signedDistance
|
||||
pointDistance.internalFieldRef() = signedDistance
|
||||
(
|
||||
pointDistSqr,
|
||||
fvm.points(),
|
||||
|
||||
@ -91,7 +91,7 @@ void ReadAndMapFields
|
||||
)
|
||||
);
|
||||
|
||||
Field<Type>& fld = tetFields[i].internalField();
|
||||
Field<Type>& fld = tetFields[i].internalFieldRef();
|
||||
|
||||
// Map from read field. Set unmapped entries to nullValue.
|
||||
fld.setSize(map.size(), nullValue);
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -57,7 +57,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
turbGen Ugen(K, Ea, k0);
|
||||
|
||||
U.internalField() = Ugen.U();
|
||||
U.internalFieldRef() = Ugen.U();
|
||||
U.correctBoundaryConditions();
|
||||
|
||||
Info<< "k("
|
||||
|
||||
@ -88,7 +88,7 @@ bool setCellFieldType
|
||||
|
||||
if (selectedCells.size() == field.size())
|
||||
{
|
||||
field.internalField() = value;
|
||||
field.internalFieldRef() = value;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user