diff --git a/src/functionObjects/field/streamLine/streamLine.C b/src/functionObjects/field/streamLine/streamLine.C index 99d1d3e7c..2bc301636 100644 --- a/src/functionObjects/field/streamLine/streamLine.C +++ b/src/functionObjects/field/streamLine/streamLine.C @@ -324,7 +324,7 @@ bool Foam::functionObjects::streamLine::read(const dictionary& dict) Info<< type() << " " << name() << ":" << nl; dict.lookup("fields") >> fields_; - dict.lookup("U") >> UName_; + UName_ = dict.lookupOrDefault("U", word("U")); if (findIndex(fields_, UName_) == -1) { diff --git a/src/functionObjects/field/streamLine/streamLine.H b/src/functionObjects/field/streamLine/streamLine.H index 873fed628..399e500c5 100644 --- a/src/functionObjects/field/streamLine/streamLine.H +++ b/src/functionObjects/field/streamLine/streamLine.H @@ -71,7 +71,7 @@ Usage Property | Description | Required | Default value type | Type name: streamLine | yes | setFormat | Output data type | yes | - U | Tracking velocity field name | yes | + U | Tracking velocity field name | no | U fields | Fields to sample | yes | lifetime | Maximum number of particle tracking steps | yes | trackLength | Tracking segment length | no |