Contrib/equationReader

From OpenFOAMWiki
< Contrib
Revision as of 02:25, 18 July 2010 by Marupio (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.