diff --git a/src/functionObjects/field/streamLine/streamLine.C b/src/functionObjects/field/streamLine/streamLine.C index 252b4d600f2350ed1c430c00b9486638183342ee..0c66a5fce0e245d99c98bf739088751db5a850ee 100644 --- a/src/functionObjects/field/streamLine/streamLine.C +++ b/src/functionObjects/field/streamLine/streamLine.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -311,22 +311,7 @@ bool Foam::functionObjects::streamLine::read(const dictionary& dict) Info<< type() << " " << name() << ":" << nl; dict.lookup("fields") >> fields_; - if (dict.found("U")) - { - dict.lookup("U") >> UName_; - } - else - { - UName_ = "U"; - if (dict.found("U")) - { - IOWarningInFunction(dict) - << "Using deprecated entry \"U\"." - << " Please use \"UName\" instead." - << endl; - dict.lookup("U") >> UName_; - } - } + dict.lookup("U") >> UName_; if (findIndex(fields_, UName_) == -1) { diff --git a/src/functionObjects/field/streamLine/streamLine.H b/src/functionObjects/field/streamLine/streamLine.H index 008036b2891754391a697e0755ad69e08171e1a0..7c0995e69f840b6905410a38d2be5332bd30c767 100644 --- a/src/functionObjects/field/streamLine/streamLine.H +++ b/src/functionObjects/field/streamLine/streamLine.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -41,16 +41,20 @@ Description writeControl writeTime; setFormat vtk; + U U; trackForward yes; + fields ( U p ); + lifeTime 10000; trackLength 1e-3; nSubCycle 5; cloudName particleTracks; + seedSampleSet uniform; uniformCoeffs { diff --git a/src/functionObjects/field/wallBoundedStreamLine/wallBoundedStreamLine.C b/src/functionObjects/field/wallBoundedStreamLine/wallBoundedStreamLine.C index e918fcf9707904a19170a23c0a94feaf3569fd3e..7fd47295f1f004a242b0a40818b044a6dff479c6 100644 --- a/src/functionObjects/field/wallBoundedStreamLine/wallBoundedStreamLine.C +++ b/src/functionObjects/field/wallBoundedStreamLine/wallBoundedStreamLine.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -427,24 +427,7 @@ bool Foam::functionObjects::wallBoundedStreamLine::read(const dictionary& dict) Info<< type() << " " << name() << ":" << nl; dict.lookup("fields") >> fields_; - if (dict.found("U")) - { - dict.lookup("U") >> UName_; - } - else - { - UName_ = "U"; - if (dict.found("U")) - { - IOWarningInFunction - ( - dict - ) << "Using deprecated entry \"U\"." - << " Please use \"UName\" instead." - << endl; - dict.lookup("U") >> UName_; - } - } + dict.lookup("U") >> UName_; if (findIndex(fields_, UName_) == -1) {