| 57 | \*---------------------------------------------------------------------------*/ |
| 58 | |
| 59 | class div |
| 60 | : |
| 61 | public fieldExpression |
| 62 | { |
| 63 | // Private Member Functions |
| 64 | |
| 65 | //- Calculate the divergence of either a |
| 66 | // volScalarField or a surfaceScalarField and register the result |
| 67 | template<class FieldType> |
| 68 | bool calcDiv(); |
| 69 | |
| 70 | //- Calculate the divergence field and return true if successful |
| 71 | virtual bool calc(); |
| 72 | |
| 73 | |
| 74 | public: |
| 75 | |
| 76 | //- Runtime type information |
| 77 | TypeName("div"); |
| 78 | |
| 79 | |
| 80 | // Constructors |
| 81 | |
| 82 | //- Construct from Time and dictionary |
| 83 | div |
| 84 | ( |
| 85 | const word& name, |
| 86 | const Time& runTime, |
| 87 | const dictionary& dict |
| 88 | ); |
| 89 | |
| 90 | |
| 91 | //- Destructor |
| 92 | virtual ~div(); |
| 93 | }; |
| 94 | |
| 95 | |
| 96 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // |