functionObjectList: Expanded documentation of the readFunctionObject function
This commit is contained in:
@ -233,13 +233,6 @@ bool Foam::functionObjectList::readFunctionObject
|
|||||||
const word& region
|
const word& region
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// Parse the optional functionObject arguments:
|
|
||||||
// 'Q(U)' -> funcName = Q; args = (U); field = U
|
|
||||||
//
|
|
||||||
// Supports named arguments:
|
|
||||||
// 'patchAverage(patch=inlet, p)' -> funcName = patchAverage;
|
|
||||||
// args = (patch=inlet, p); field = p
|
|
||||||
|
|
||||||
word funcName(funcCall);
|
word funcName(funcCall);
|
||||||
|
|
||||||
int argLevel = 0;
|
int argLevel = 0;
|
||||||
|
|||||||
@ -245,15 +245,28 @@ public:
|
|||||||
const word& region = word::null
|
const word& region = word::null
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Read the specified functionObject configuration dictionary parsing
|
//- Read the specified functionObject configuration dictionary
|
||||||
// the optional arguments included in the name 'funcNameArgs0',
|
// parsing the optional arguments included in the string 'funcCall',
|
||||||
// inserting 'field' or 'fields' entries as required and merging the
|
// inserting 'field' or 'fields' entries as required and merging the
|
||||||
// resulting functionObject dictionary into 'functionsDict'. Any
|
// resulting functionObject dictionary into 'functionsDict'.
|
||||||
// fields required to execute the functionObject are added to
|
// Any fields required to execute the functionObject are added to
|
||||||
// 'requiredFields'
|
// 'requiredFields'
|
||||||
|
//
|
||||||
|
// Parses the optional functionObject arguments:
|
||||||
|
// 'Q(U)' -> funcName = Q; args = (U)
|
||||||
|
// -> field U;
|
||||||
|
//
|
||||||
|
// Supports named arguments:
|
||||||
|
// 'patchAverage(patch=inlet, p,U)'
|
||||||
|
// or
|
||||||
|
// 'patchAverage(patch=inlet, field=(p U))'
|
||||||
|
// -> funcName = patchAverage;
|
||||||
|
// args = (patch=inlet, p,U)
|
||||||
|
// -> patch inlet;
|
||||||
|
// fields (p U);
|
||||||
static bool readFunctionObject
|
static bool readFunctionObject
|
||||||
(
|
(
|
||||||
const string& funcNameArgs0,
|
const string& funcCall,
|
||||||
dictionary& functionsDict,
|
dictionary& functionsDict,
|
||||||
const string& context,
|
const string& context,
|
||||||
HashSet<word>& requiredFields,
|
HashSet<word>& requiredFields,
|
||||||
|
|||||||
Reference in New Issue
Block a user