checkFluxBalance

Syntax

Defined in couplingProperties dictionary.

postProcessingModels
(
    checkFluxBalance
);
checkFluxBalanceProps
{
    performChecks   Switch;
    timeInterval    scalar;
    writeToFile     Switch;
    writeToLog      Switch;
    phiFieldName    "phi";
};
  • performChecks = set to false to deactivate execution checks (default: true)

  • timeInterval = interval of execution. (default: 20 times the coupling time)

  • writeToFile = write patch fluxes and balance to file (default: true)

  • writeToLog = write patch fluxes and balance to log (default: false)

  • phiFieldName = name of the volumetric flux field (default: “phi”)

  • headerPrefix = prefix for header line (default: “#”, i.e. comment in (e.g.) bash and python)

Examples

postProcessingModels
(
    checkFluxBalance
);
checkFluxBalanceProps
{
    timeInterval 0.002;
}

Description

Note

This model is added to the postProcessingModels list by default and runs in the background. You can switch off its operation using the performChecks keyword.

This model calculates the volumetric fluxes over all patches and the flux balance at the specified timeInterval. Results can be written directly to the log file (writeToLog true) and / or to the postProcessing/checkFluxBalance directory. In the latter case, this model behaves like a set of surfaceFieldValue functionObject.

Results / output of this model can be processed in a semi-automatic manner using the cfdemPlotCheckFluxBalance command which can be called in the same way as a CFDEM solver.

Restrictions

This model is only valid for incompressible solvers considering a single fluid phase.