Contrib/equationReader
From OpenFOAMWiki
1 What is it?
equationParser is an extension to OpenFOAM that allows you to specify equations in a dictionary file. For example:
nu nu [0 2 -1 0 0 0 0] "1.2 + 3 * alpha^sin(pi_/6)"; aScalar "nu / max(5, alpha)"; alpha 1.3;
2 Features
- Order of operations - it is fully compliant with the conventional order of operations to an arbitrary parenthesis depth;
- Equation dependency tracking - equations can depend on one another to an arbitrary hierarchy depth;
- Circular-reference detection - it will halt computations when a circular reference is detected;
- On-the-fly equation mapping - it will automatically read additional equations from a dictionary when they are needed, even if they aren't specifically called for in the solver; and
- stand-alone, passive and active modes of operation - you can choose from three different modes of operation to suit your needs.