From 7f330cef40b3d39238cea8f73bcb591c9ad5bc80 Mon Sep 17 00:00:00 2001 From: Henry Weller <http://cfd.direct> Date: Wed, 23 Nov 2016 16:21:38 +0000 Subject: [PATCH] etc/caseDicts/postProcessing/fields: New 'add' and 'subtract' functionObjects --- etc/caseDicts/postProcessing/fields/add | 21 ++++++++++++++++++++ etc/caseDicts/postProcessing/fields/subtract | 21 ++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 etc/caseDicts/postProcessing/fields/add create mode 100644 etc/caseDicts/postProcessing/fields/subtract diff --git a/etc/caseDicts/postProcessing/fields/add b/etc/caseDicts/postProcessing/fields/add new file mode 100644 index 00000000000..3eea74aff96 --- /dev/null +++ b/etc/caseDicts/postProcessing/fields/add @@ -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; + +// ************************************************************************* // diff --git a/etc/caseDicts/postProcessing/fields/subtract b/etc/caseDicts/postProcessing/fields/subtract new file mode 100644 index 00000000000..6f9126cd7de --- /dev/null +++ b/etc/caseDicts/postProcessing/fields/subtract @@ -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; + +// ************************************************************************* // -- GitLab