boundaryField() -> boundaryFieldRef()
This commit is contained in:
@ -60,11 +60,11 @@ int main(int argc, char *argv[])
|
||||
calculatedFvPatchVectorField::typeName
|
||||
);
|
||||
|
||||
forAll(mesh.boundaryMesh(), patchI)
|
||||
forAll(mesh.boundaryMesh(), patchi)
|
||||
{
|
||||
if (isA<mappedPolyPatch>(mesh.boundaryMesh()[patchI]))
|
||||
if (isA<mappedPolyPatch>(mesh.boundaryMesh()[patchi]))
|
||||
{
|
||||
patchFieldTypes[patchI] =
|
||||
patchFieldTypes[patchi] =
|
||||
mappedFixedValueFvPatchVectorField::typeName;
|
||||
}
|
||||
}
|
||||
@ -89,23 +89,23 @@ int main(int argc, char *argv[])
|
||||
cc.internalField() = mesh.C().internalField();
|
||||
cc.boundaryFieldRef().updateCoeffs();
|
||||
|
||||
forAll(cc.boundaryField(), patchI)
|
||||
forAll(cc.boundaryField(), patchi)
|
||||
{
|
||||
if
|
||||
(
|
||||
isA<mappedFixedValueFvPatchVectorField>
|
||||
(
|
||||
cc.boundaryField()[patchI]
|
||||
cc.boundaryField()[patchi]
|
||||
)
|
||||
)
|
||||
{
|
||||
Pout<< "Detected a mapped patch:" << patchI << endl;
|
||||
Pout<< "Detected a mapped patch:" << patchi << endl;
|
||||
|
||||
OFstream str(mesh.boundaryMesh()[patchI].name() + ".obj");
|
||||
OFstream str(mesh.boundaryMesh()[patchi].name() + ".obj");
|
||||
Pout<< "Writing mapped values to " << str.name() << endl;
|
||||
|
||||
label vertI = 0;
|
||||
const fvPatchVectorField& fvp = cc.boundaryField()[patchI];
|
||||
const fvPatchVectorField& fvp = cc.boundaryField()[patchi];
|
||||
|
||||
forAll(fvp, i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user