Go to the documentation of this file.00001
00002
00003
00004 {
00005 labelList cellBoundaryFaceCount(epsilon_.size(), 0);
00006
00007
00008 scalar Cmu75 = pow(CmuWall_.value(), 0.75);
00009
00010 const fvPatchList& patches = mesh_.boundary();
00011
00012
00013 forAll(patches, patchi)
00014 {
00015 const fvPatch& curPatch = patches[patchi];
00016
00017 if (isA<wallFvPatch>(curPatch))
00018 {
00019 forAll(curPatch, facei)
00020 {
00021 label faceCelli = curPatch.faceCells()[facei];
00022
00023 epsilon_[faceCelli] = 0.0;
00024 }
00025 }
00026 }
00027
00028 forAll(patches, patchi)
00029 {
00030 const fvPatch& curPatch = patches[patchi];
00031
00032 if (isA<wallFvPatch>(curPatch))
00033 {
00034 forAll(curPatch, facei)
00035 {
00036 label faceCelli = curPatch.faceCells()[facei];
00037
00038
00039
00040
00041 cellBoundaryFaceCount[faceCelli]++;
00042
00043 epsilon_[faceCelli] +=
00044 Cmu75*pow(k_[faceCelli], 1.5)
00045 /(
00046 kappa_.value()*y_[faceCelli]
00047 *(1.0 - exp(-Aepsilon_.value()*yStar_[faceCelli]))
00048 )
00049 *exp(-Amu_.value()*sqr(yStar_[faceCelli]));
00050
00051 }
00052 }
00053 }
00054
00055
00056
00057 forAll(patches, patchi)
00058 {
00059 const fvPatch& curPatch = patches[patchi];
00060
00061 if (isA<wallFvPatch>(curPatch))
00062 {
00063 forAll(curPatch, facei)
00064 {
00065 label faceCelli = curPatch.faceCells()[facei];
00066
00067 epsilon_[faceCelli] /= cellBoundaryFaceCount[faceCelli];
00068 }
00069 }
00070 }
00071 }
00072
00073