1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation, either version 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
24 \*---------------------------------------------------------------------------*/
27 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
32 inline const word& equation::name() const
38 inline label equation::size() const
44 inline void equation::setSize(const label newSize) const
46 ops_.setSize(newSize);
50 inline autoPtr<equationOperation> equation::set
52 const label elementIndex,
53 equationOperation * newOperation
56 return ops_.set(elementIndex, newOperation);
60 inline word& equation::name()
66 inline const string& equation::rawText() const
72 inline void equation::setRawText(const string& newRawText) const
74 rawText_ = newRawText;
78 inline const dimensionedScalar& equation::lastResult() const
84 inline void equation::setLastResult(const word& newName) const
86 lastResult_.name() = newName;
90 inline void equation::setLastResult(const dimensionSet& newDims) const
92 lastResult_.dimensions().reset(newDims);
96 inline void equation::setLastResult(const scalar& newScalar) const
98 lastResult_.value() = newScalar;
102 inline const dimensionSet& equation::overrideDimensions() const
104 return overrideDimensions_;
107 inline void equation::setOverrideDimensions
109 const dimensionSet& newDims
112 overrideDimensions_.reset(newDims);
116 inline const bool& equation::changeDimensions() const
118 return changeDimensions_;
122 inline void equation::setChangeDimensions(bool newFlag) const
124 changeDimensions_ = newFlag;
128 inline const labelList& equation::maxFieldSizes() const
130 return maxFieldSizes_;
134 inline void equation::setMaxFieldSizes
136 const labelList& newSizes
139 maxFieldSizes_ = newSizes;
142 // * * * * * * * * * * * * * * * * * Operators * * * * * * * * * * * * * * * //
144 inline equationOperation& equation::operator[](const label equationIndex) const
146 return ops_[equationIndex];
149 } // End namespace Foam
151 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //