mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
etc/caseDicts/postProcessing/fields: New 'add' and 'subtract' functionObjects
This commit is contained in:
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;
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user