functionObjects: renamed faceSource -> surfaceRegion, cellSource -> volRegion
The use of the term 'source' in the context of post-processing is confusing and does not properly describe the process of region selection. The new names 'surfaceRegion' and 'volRegion' better describe the purpose of the functionObjects which is to provide field processing functionality limited to a specified region of space, either a surface or volume. The keyword 'source' is renamed 'regionType' which better describes the purpose which is to specify the method by which the surface or volume region is selected. The keyword to select the name of the surface or volume region is renamed from 'sourceName' to 'name' consistent with the other name-changes above.
This commit is contained in:
@ -51,7 +51,7 @@ Foam::functionObjects::fieldValue::fieldValue
|
||||
:
|
||||
writeFiles(name, runTime, dict, name),
|
||||
dict_(dict),
|
||||
sourceName_(word::null),
|
||||
name_(word::null),
|
||||
resultDict_(fileName("name"), dictionary::null)
|
||||
{
|
||||
read(dict);
|
||||
@ -69,7 +69,7 @@ Foam::functionObjects::fieldValue::fieldValue
|
||||
:
|
||||
writeFiles(name, obr, dict, name),
|
||||
dict_(dict),
|
||||
sourceName_(word::null),
|
||||
name_(word::null),
|
||||
resultDict_(fileName("name"), dictionary::null)
|
||||
{
|
||||
read(dict);
|
||||
|
||||
@ -70,7 +70,7 @@ protected:
|
||||
dictionary dict_;
|
||||
|
||||
//- Name of source object
|
||||
word sourceName_;
|
||||
word name_;
|
||||
|
||||
//- List of field names to operate on
|
||||
wordList fields_;
|
||||
@ -154,7 +154,7 @@ public:
|
||||
inline const dictionary& dict() const;
|
||||
|
||||
//- Return the source name
|
||||
inline const word& sourceName() const;
|
||||
inline const word& name() const;
|
||||
|
||||
//- Return the list of field names
|
||||
inline const wordList& fields() const;
|
||||
|
||||
@ -34,9 +34,9 @@ inline const Foam::dictionary& Foam::functionObjects::fieldValue::dict() const
|
||||
}
|
||||
|
||||
|
||||
inline const Foam::word& Foam::functionObjects::fieldValue::sourceName() const
|
||||
inline const Foam::word& Foam::functionObjects::fieldValue::name() const
|
||||
{
|
||||
return sourceName_;
|
||||
return name_;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user