From cdbaafb962bc5e1583454da35c0f605530b0b981 Mon Sep 17 00:00:00 2001 From: Henry <Henry> Date: Sat, 14 Feb 2015 16:43:27 +0000 Subject: [PATCH] dynamicLagrangian: Added template include --- .../LES/dynamicLagrangian/dynamicLagrangian.C | 10 ++++------ .../LES/dynamicLagrangian/dynamicLagrangian.H | 6 ++++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/TurbulenceModels/turbulenceModels/LES/dynamicLagrangian/dynamicLagrangian.C b/src/TurbulenceModels/turbulenceModels/LES/dynamicLagrangian/dynamicLagrangian.C index 4e5039d9947..3d6b0f898c8 100644 --- a/src/TurbulenceModels/turbulenceModels/LES/dynamicLagrangian/dynamicLagrangian.C +++ b/src/TurbulenceModels/turbulenceModels/LES/dynamicLagrangian/dynamicLagrangian.C @@ -156,9 +156,7 @@ void dynamicLagrangian<BasicTurbulenceModel>::correct() } // Local references - const alphaField& alpha = this->alpha_; - const rhoField& rho = this->rho_; - const surfaceScalarField& alphaRhoPhi = this->alphaRhoPhi_; + const surfaceScalarField& phi = this->phi_; const volVectorField& U = this->U_; volScalarField& nut = this->nut_; @@ -167,7 +165,7 @@ void dynamicLagrangian<BasicTurbulenceModel>::correct() tmp<volTensorField> tgradU(fvc::grad(U)); const volTensorField& gradU = tgradU(); - volSymmTensorField S(dev(symm(gradU()))); + volSymmTensorField S(dev(symm(gradU))); volScalarField magS(mag(S)); volVectorField Uf(filter_(U)); @@ -190,7 +188,7 @@ void dynamicLagrangian<BasicTurbulenceModel>::correct() fvScalarMatrix flmEqn ( fvm::ddt(flm_) - + fvm::div(phi(), flm_) + + fvm::div(phi, flm_) == invT*LM - fvm::Sp(invT, flm_) @@ -206,7 +204,7 @@ void dynamicLagrangian<BasicTurbulenceModel>::correct() fvScalarMatrix fmmEqn ( fvm::ddt(fmm_) - + fvm::div(phi(), fmm_) + + fvm::div(phi, fmm_) == invT*MM - fvm::Sp(invT, fmm_) diff --git a/src/TurbulenceModels/turbulenceModels/LES/dynamicLagrangian/dynamicLagrangian.H b/src/TurbulenceModels/turbulenceModels/LES/dynamicLagrangian/dynamicLagrangian.H index 8b20d6207d4..d95e7730a02 100644 --- a/src/TurbulenceModels/turbulenceModels/LES/dynamicLagrangian/dynamicLagrangian.H +++ b/src/TurbulenceModels/turbulenceModels/LES/dynamicLagrangian/dynamicLagrangian.H @@ -168,6 +168,12 @@ public: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +#ifdef NoRepository +# include "dynamicLagrangian.C" +#endif + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + #endif // ************************************************************************* // -- GitLab