.. _calculation.logics: ================== Calculation Logics ================== Calculation logic defines how a function block processes data within a flowsheet. When configuring a function block or a function block template, you select a logic engine and then define the expression that will be executed each time the block is processed (see :ref:`conf.calc.flowsheet.func.block` and :ref:`conf.calc.funcblocktemp`). You can choose from the following three logic engines: - **mXparser**: A mathematical expression parser for defining logic using formula-based syntax. See :ref:`calculation.logics.mxparser`. - **Python**: Allows you to write logic using Python scripts for more advanced or custom behaviour. See :ref:`calculation.logics.python`. - **Thermo**: A specialised logic engine available only to certain users. This logic type is not covered in this documentation. .. seealso:: - :ref:`calculation.service` - :ref:`flowsheet` - :ref:`conf.calc.flowsheet.func.block` - :ref:`conf.calc.funcblocktemp` .. toctree:: :hidden: :maxdepth: 5 calculation.logics.mxparser calculation.logics.python