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