Files
OpenFOAM-12/etc/caseDicts/functions/fields/specieDiffusiveFlux
Will Bainbridge dab3104d4c functionObjects::specieFlux: New functions to calculate specie fluxes
These functions calculate the specie-flux and write it as a
surfaceScalarField called 'specie<Type>Flux(<specieName>)'. There are
three such functions; specieAdvectiveFlux and specieDiffusiveFlux return
the advective and diffusive parts of the flux, respectively, and
specieFlux returns the total combined flux.

Example of function object specification:

    specieFlux
    {
        type    specieFlux; // specieAdvectiveFlux, specieDiffusiveFlux
        libs    ("libfieldFunctionObjects.so");
        field   NH3;
    }

Or, using the standard configuration:

    #includeFunc specieFlux(NH3)
2024-07-04 14:54:59 +01:00

23 lines
847 B
C++

/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
-------------------------------------------------------------------------------
Description
Calculate the specie-flux and write it as a surfaceScalarField
'specieDiffusiveFlux(<specieName>)'.
\*---------------------------------------------------------------------------*/
type specieDiffusiveFlux;
libs ("libfieldFunctionObjects.so");
field <specieName>;
executeControl writeTime;
writeControl writeTime;
// ************************************************************************* //