- for simulations where the yPlus is needed for other purposes or just for obtaining information on the patches it can be useful to disable field writing and save disk space. The 'writeFields' flag (as per some other function objects) has been added control writing the yPlus volume field. If unspecified, the default value is 'true' so that the yPlus function object continues to work as before. However, this default may change to 'false' in the future to align with other function objects. ENH: wallShearStress: support disable of field writing - similar to yPlus, the write() method combines writing information and writing the fields. The 'writeFields' flag allows some separation of that logic.
21 lines
777 B
C++
21 lines
777 B
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Version: v2306
|
|
\\ / A nd | Website: www.openfoam.com
|
|
\\/ M anipulation |
|
|
-------------------------------------------------------------------------------
|
|
Description
|
|
Calculates the turbulence y+, outputting the data as a yPlus field.
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
type yPlus;
|
|
libs (fieldFunctionObjects);
|
|
|
|
writeFields yes;
|
|
executeControl writeTime;
|
|
writeControl writeTime;
|
|
|
|
// ************************************************************************* //
|