mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: yPlus: support disable of field writing (#2813)
- 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.
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v2212 |
|
||||
| \\ / O peration | Version: v2306 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -61,6 +61,7 @@ functions
|
||||
{
|
||||
type wallShearStress;
|
||||
libs (fieldFunctionObjects);
|
||||
writeFields yes;
|
||||
patches ( bottom );
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
@ -70,6 +71,7 @@ functions
|
||||
{
|
||||
type yPlus;
|
||||
libs (fieldFunctionObjects);
|
||||
writeFields yes;
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v2212 |
|
||||
| \\ / O peration | Version: v2306 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -61,6 +61,7 @@ functions
|
||||
{
|
||||
type wallShearStress;
|
||||
libs (fieldFunctionObjects);
|
||||
writeFields yes;
|
||||
patches ( bottom );
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
@ -70,6 +71,7 @@ functions
|
||||
{
|
||||
type yPlus;
|
||||
libs (fieldFunctionObjects);
|
||||
writeFields yes;
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user