ENH: PatchFunction1: expose variables.

This makes coded versions easier.
This commit is contained in:
mattijs
2020-05-15 14:18:43 +01:00
parent 2b8af776b4
commit 2fa0a2ea9a
2 changed files with 20 additions and 0 deletions

View File

@ -99,6 +99,20 @@ const Foam::word& Foam::PatchFunction1<Type>::name() const
}
template<class Type>
const Foam::polyPatch& Foam::PatchFunction1<Type>::patch() const
{
return patch_;
}
template<class Type>
bool Foam::PatchFunction1<Type>::faceValues() const
{
return faceValues_;
}
template<class Type>
void Foam::PatchFunction1<Type>::convertTimeBase(const Time&)
{}

View File

@ -183,6 +183,12 @@ public:
//- Return the name of the entry
const word& name() const;
//- Reference to the patch
const polyPatch& patch() const;
//- Whether to generate face or point values on patch
bool faceValues() const;
// Manipulation