Skip to content
Snippets Groups Projects
Commit 6e829fb3 authored by sergio's avatar sergio
Browse files

ENH: renaming epsilon field in applyBoundaryLayer

parent b98a5c10
No related branches found
No related tags found
No related merge requests found
...@@ -104,7 +104,7 @@ Foam::tmp<Foam::volScalarField> calcK ...@@ -104,7 +104,7 @@ Foam::tmp<Foam::volScalarField> calcK
// Do not correct BC // Do not correct BC
// - operation may use inconsistent fields wrt these local manipulations // - operation may use inconsistent fields wrt these local manipulations
// k.correctBoundaryConditions(); //k.correctBoundaryConditions();
correctProcessorPatches(k); correctProcessorPatches(k);
Info<< "Writing k\n" << endl; Info<< "Writing k\n" << endl;
...@@ -132,6 +132,7 @@ Foam::tmp<Foam::volScalarField> calcEpsilon ...@@ -132,6 +132,7 @@ Foam::tmp<Foam::volScalarField> calcEpsilon
scalar ce0 = ::pow(Cmu, 0.75)/kappa; scalar ce0 = ::pow(Cmu, 0.75)/kappa;
epsilon = (1 - mask)*epsilon + mask*ce0*k*sqrt(k)/min(y, ybl); epsilon = (1 - mask)*epsilon + mask*ce0*k*sqrt(k)/min(y, ybl);
epsilon.max(SMALL); epsilon.max(SMALL);
epsilon.rename("epsilon");
// Do not correct BC // Do not correct BC
// - operation may use inconsistent fields wrt these local manipulations // - operation may use inconsistent fields wrt these local manipulations
...@@ -297,6 +298,7 @@ void calcIncompressible ...@@ -297,6 +298,7 @@ void calcIncompressible
// Calculate nut - reference nut is calculated by the turbulence model // Calculate nut - reference nut is calculated by the turbulence model
// on its construction // on its construction
volScalarField& nut = tnut(); volScalarField& nut = tnut();
volScalarField S(mag(dev(symm(fvc::grad(U))))); volScalarField S(mag(dev(symm(fvc::grad(U)))));
nut = (1 - mask)*nut + mask*sqr(kappa*min(y, ybl))*::sqrt(2)*S; nut = (1 - mask)*nut + mask*sqr(kappa*min(y, ybl))*::sqrt(2)*S;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment