CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Please check ctor implementation of laplaceFilter (http://www.cfd-online.com/Forums/openfoam-bugs/62370-please-check-ctor-implementation-laplacefilter.html)

jaswi November 26, 2008 10:50

Dear Developers Please chec
 
Dear Developers

Please check the constructor implementation of the laplaceFilter in src/turbulenceModels/LES/LESfilters/laplaceFilter/laplaceFilter.C

The ctor implementation reads:
<pre>
Foam::laplaceFilter::laplaceFilter(const fvMesh& mesh, scalar widthCoeff)
:
LESfilter(mesh),
widthCoeff_(widthCoeff),
coeff_
(
IOobject
(
"anisotropicFilterCoeff",
mesh.time().timeName(),
mesh
),
mesh,
dimensionedScalar("zero", dimLength*dimLength, 0),
calculatedFvPatchScalarField::typeName
)
{
coeff_.internalField() = pow(mesh.V(), 2.0/3.0)/widthCoeff_;
</pre>
}
I am not sure whether that can cause error but just to be consistent with the syntax the initialization of coeffs_ in following way

<pre>
coeff_
(
IOobject
(
"laplaceFilterCoeff",
mesh.time().timeName(),
mesh
),
</pre>

might be correct.

Please ignore this post if this will not be source of error

With Best Regards
Jaswi

henry November 26, 2008 12:06

This would not be a source of
 
This would not be a source of error but it is inconsistent and I will fix it for the next release.

H


All times are GMT -4. The time now is 10:36.