/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.5 | | \\ / A nd | Web: http://www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object testDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // For demonstrating stand-alone operation // readSa and readDSa equations can only use constants standAloneScalar "1 + 1/3 * max(2 * sqrt(2), e_)"; standAloneDScalar standAloneDScalar [0 0 0 0 0 0 0] "sin(pi_ / 6) * 1 / 3^(1+2/3)"; // This equation is handled 'passively' a "5 / 2^3"; // This one is handled 'actively' b "cos(5 * theta + 8)"; // This one demonstrates variable dependence - a is another equation; DSa is a // dimensionedScalar explicitly added to the equationReader; and Sb is a scalar // added to the equationReader c "a^2 + DSa - cbrt(Sb)"; // This one demonstrates on-the-fly equation parsing - it depends on equation // e, but equation e is never explicitly read in equationTester.C. d "2 * exp(inv(e)^2)"; // equationReader will automatically find and parse equation e when evaluating // equation d. //e "1 / (a + SMALL_)"; e 7; // There shouldn't be any limits to the parenthesis depth, variable dependence, // or number of sources from which the equation draws. //f "beta"; f "DSa*(Sa+(DSb^Sc-(min(dictTwoA * dictThreeB, dictTwoB * dictThreeA)^DSb*cos(pi_/6)^arbitrary+7)))";