etc/caseDicts/postProcessing/fields: New 'add' and 'subtract' functionObjects
This commit is contained in:
parent
2d8330fff7
commit
5fc1285061
2 changed files with 42 additions and 0 deletions
21
etc/caseDicts/postProcessing/fields/add
Normal file
21
etc/caseDicts/postProcessing/fields/add
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Web: www.OpenFOAM.org
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
Add a list of fields.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
type add;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
fields (<field names>);
|
||||
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
|
||||
// ************************************************************************* //
|
||||
21
etc/caseDicts/postProcessing/fields/subtract
Normal file
21
etc/caseDicts/postProcessing/fields/subtract
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Web: www.OpenFOAM.org
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Description
|
||||
From the first field subtract the remaining fields in the list.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
type subtract;
|
||||
libs ("libfieldFunctionObjects.so");
|
||||
|
||||
fields (<field names>);
|
||||
|
||||
executeControl writeTime;
|
||||
writeControl writeTime;
|
||||
|
||||
// ************************************************************************* //
|
||||
Loading…
Add table
Reference in a new issue