mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
functionObjects::streamLine,wallBoundedStreamLine: Removed outdated check for 'UName'
Patch contributed by Bruno Santos Resolves patch request https://bugs.openfoam.org/view.php?id=2444
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -311,22 +311,7 @@ bool Foam::functionObjects::streamLine::read(const dictionary& dict)
|
|||||||
Info<< type() << " " << name() << ":" << nl;
|
Info<< type() << " " << name() << ":" << nl;
|
||||||
|
|
||||||
dict.lookup("fields") >> fields_;
|
dict.lookup("fields") >> fields_;
|
||||||
if (dict.found("U"))
|
|
||||||
{
|
|
||||||
dict.lookup("U") >> UName_;
|
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_;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (findIndex(fields_, UName_) == -1)
|
if (findIndex(fields_, UName_) == -1)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -41,16 +41,20 @@ Description
|
|||||||
writeControl writeTime;
|
writeControl writeTime;
|
||||||
|
|
||||||
setFormat vtk;
|
setFormat vtk;
|
||||||
|
U U;
|
||||||
trackForward yes;
|
trackForward yes;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
U
|
U
|
||||||
p
|
p
|
||||||
);
|
);
|
||||||
|
|
||||||
lifeTime 10000;
|
lifeTime 10000;
|
||||||
trackLength 1e-3;
|
trackLength 1e-3;
|
||||||
nSubCycle 5;
|
nSubCycle 5;
|
||||||
cloudName particleTracks;
|
cloudName particleTracks;
|
||||||
|
|
||||||
seedSampleSet uniform;
|
seedSampleSet uniform;
|
||||||
uniformCoeffs
|
uniformCoeffs
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -427,24 +427,7 @@ bool Foam::functionObjects::wallBoundedStreamLine::read(const dictionary& dict)
|
|||||||
Info<< type() << " " << name() << ":" << nl;
|
Info<< type() << " " << name() << ":" << nl;
|
||||||
|
|
||||||
dict.lookup("fields") >> fields_;
|
dict.lookup("fields") >> fields_;
|
||||||
if (dict.found("U"))
|
|
||||||
{
|
|
||||||
dict.lookup("U") >> UName_;
|
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_;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (findIndex(fields_, UName_) == -1)
|
if (findIndex(fields_, UName_) == -1)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user