BUG: corrections to NEARESTFACE clause in directMappedVelocityFlux BC

This commit is contained in:
andy 2010-10-04 10:10:22 +01:00
parent 37c60a6256
commit 8f1a8dd460

View File

@ -66,16 +66,16 @@ directMappedVelocityFluxFixedValueFvPatchField
FatalErrorIn FatalErrorIn
( (
"directMappedVelocityFluxFixedValueFvPatchField::" "directMappedVelocityFluxFixedValueFvPatchField::"
"directMappedVelocityFluxFixedValueFvPatchField\n" "directMappedVelocityFluxFixedValueFvPatchField"
"(\n" "("
" const directMappedVelocityFluxFixedValueFvPatchField&,\n" "const directMappedVelocityFluxFixedValueFvPatchField&, "
" const fvPatch&,\n" "const fvPatch&, "
" const DimensionedField<vector, volMesh>&,\n" "const DimensionedField<vector, volMesh>&, "
" const fvPatchFieldMapper&\n" "const fvPatchFieldMapper&"
")\n" ")"
) << "\n patch type '" << p.type() ) << "Patch type '" << p.type()
<< "' not type '" << directMappedPatchBase::typeName << "'" << "' not type '" << directMappedPatchBase::typeName << "'"
<< "\n for patch " << p.name() << " for patch " << p.name()
<< " of field " << dimensionedInternalField().name() << " of field " << dimensionedInternalField().name()
<< " in file " << dimensionedInternalField().objectPath() << " in file " << dimensionedInternalField().objectPath()
<< exit(FatalError); << exit(FatalError);
@ -102,10 +102,10 @@ directMappedVelocityFluxFixedValueFvPatchField
"directMappedVelocityFluxFixedValueFvPatchField" "directMappedVelocityFluxFixedValueFvPatchField"
"(" "("
"const fvPatch&, " "const fvPatch&, "
"const DimensionedField<vector, volMesh>& iF, " "const DimensionedField<vector, volMesh>&, "
"const dictionary&" "const dictionary&"
")" ")"
) << "patch type '" << p.type() ) << "Patch type '" << p.type()
<< "' not type '" << directMappedPatchBase::typeName << "'" << "' not type '" << directMappedPatchBase::typeName << "'"
<< " for patch " << p.name() << " for patch " << p.name()
<< " of field " << dimensionedInternalField().name() << " of field " << dimensionedInternalField().name()
@ -191,8 +191,8 @@ void directMappedVelocityFluxFixedValueFvPatchField::updateCoeffs()
forAll(Upf, faceI) forAll(Upf, faceI)
{ {
allUValues[faceStart++] = Upf[faceI]; allUValues[faceStart + faceI] = Upf[faceI];
allPhiValues[faceStart] = phipf[faceI]; allPhiValues[faceStart + faceI] = phipf[faceI];
} }
} }
@ -205,7 +205,7 @@ void directMappedVelocityFluxFixedValueFvPatchField::updateCoeffs()
distMap.constructMap(), distMap.constructMap(),
allUValues allUValues
); );
newUValues = patch().patchSlice(newUValues); newUValues = patch().patchSlice(allUValues);
mapDistribute::distribute mapDistribute::distribute
( (
@ -214,9 +214,9 @@ void directMappedVelocityFluxFixedValueFvPatchField::updateCoeffs()
distMap.constructSize(), distMap.constructSize(),
distMap.subMap(), distMap.subMap(),
distMap.constructMap(), distMap.constructMap(),
newPhiValues allPhiValues
); );
newPhiValues = patch().patchSlice(newPhiValues); newPhiValues = patch().patchSlice(allPhiValues);
break; break;
} }
@ -257,8 +257,9 @@ void directMappedVelocityFluxFixedValueFvPatchField::updateCoeffs()
{ {
FatalErrorIn FatalErrorIn
( (
"directMappedVelocityFluxFixedValueFvPatchField::updateCoeffs()" "directMappedVelocityFluxFixedValueFvPatchField::"
)<< "patch can only be used in NEARESTPATCHFACE or NEARESTFACE " "updateCoeffs()"
) << "patch can only be used in NEARESTPATCHFACE or NEARESTFACE "
<< "mode" << nl << abort(FatalError); << "mode" << nl << abort(FatalError);
} }
} }