OpenFOAM logo
Open Source CFD Toolkit

checkPatchFieldTypes.H

Go to the documentation of this file.
00001 if (!isType<zeroGradientFvPatchScalarField>(k_.boundaryField()[patchi]))
00002 {
00003     FatalErrorIn("wall-function evaluation")
00004         << k_.boundaryField()[patchi].type()
00005         << " is the wrong k patchField type for wall-functions on patch "
00006         << curPatch.name() << nl
00007         << "    should be zeroGradient"
00008         << exit(FatalError);
00009 }
00010 
00011 if (!isType<zeroGradientFvPatchScalarField>(epsilon_.boundaryField()[patchi]))
00012 {
00013     FatalErrorIn("wall-function evaluation")
00014         << epsilon_.boundaryField()[patchi].type()
00015         << " is the wrong epsilon patchField type for wall-functions on patch "
00016         << curPatch.name() << nl
00017         << "    should be zeroGradient"
00018         << exit(FatalError);
00019 }
For further information go to www.openfoam.org