functionObjects: Completed transformation of 'source' to vol/surfaceRegion

This commit is contained in:
Henry Weller
2016-06-13 09:42:14 +01:00
parent ae1a6dd12d
commit 118a0f225d
16 changed files with 71 additions and 74 deletions

View File

@ -51,7 +51,7 @@ Foam::functionObjects::fieldValue::fieldValue
:
writeFiles(name, runTime, dict, name),
dict_(dict),
name_(word::null),
regionName_(word::null),
resultDict_(fileName("name"), dictionary::null)
{
read(dict);
@ -69,7 +69,7 @@ Foam::functionObjects::fieldValue::fieldValue
:
writeFiles(name, obr, dict, name),
dict_(dict),
name_(word::null),
regionName_(word::null),
resultDict_(fileName("name"), dictionary::null)
{
read(dict);

View File

@ -69,8 +69,8 @@ protected:
//- Construction dictionary
dictionary dict_;
//- Name of source object
word name_;
//- Name of region (patch, zone, etc.)
word regionName_;
//- List of field names to operate on
wordList fields_;
@ -153,8 +153,8 @@ public:
//- Return the reference to the construction dictionary
inline const dictionary& dict() const;
//- Return the source name
inline const word& name() const;
//- Return the region name
inline const word& regionName() const;
//- Return the list of field names
inline const wordList& fields() const;

View File

@ -34,9 +34,9 @@ inline const Foam::dictionary& Foam::functionObjects::fieldValue::dict() const
}
inline const Foam::word& Foam::functionObjects::fieldValue::name() const
inline const Foam::word& Foam::functionObjects::fieldValue::regionName() const
{
return name_;
return regionName_;
}