functionObjects::fieldCoordinateSystemTransform: added coordinateSystem sub-dict and updated the description
Patch contributed by Bruno Santos Resolves bug-report https://bugs.openfoam.org/view.php?id=2454
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
|
||||||
@ -56,7 +56,7 @@ fieldCoordinateSystemTransform
|
|||||||
:
|
:
|
||||||
fvMeshFunctionObject(name, runTime, dict),
|
fvMeshFunctionObject(name, runTime, dict),
|
||||||
fieldSet_(),
|
fieldSet_(),
|
||||||
coordSys_(mesh_, dict)
|
coordSys_(mesh_, dict.subDict("coordinateSystem"))
|
||||||
{
|
{
|
||||||
read(dict);
|
read(dict);
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
@ -45,11 +45,16 @@ Description
|
|||||||
UMean
|
UMean
|
||||||
UPrime2Mean
|
UPrime2Mean
|
||||||
);
|
);
|
||||||
|
|
||||||
coordinateSystem
|
coordinateSystem
|
||||||
{
|
{
|
||||||
origin (0.001 0 0);
|
origin (0.001 0 0);
|
||||||
e1 (1 0.15 0);
|
coordinateRotation
|
||||||
e3 (0 0 -1);
|
{
|
||||||
|
type axesRotation;
|
||||||
|
e1 (1 0.15 0);
|
||||||
|
e3 (0 0 -1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
\endverbatim
|
\endverbatim
|
||||||
|
|||||||
@ -40,9 +40,13 @@ functions
|
|||||||
|
|
||||||
coordinateSystem
|
coordinateSystem
|
||||||
{
|
{
|
||||||
origin (0.001 0 0);
|
origin (0 0 0);
|
||||||
e1 (1 0.15 0);
|
coordinateRotation
|
||||||
e3 (0 0 -1);
|
{
|
||||||
|
type axesRotation;
|
||||||
|
e1 (1 0.15 0);
|
||||||
|
e3 (0 0 -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-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -53,7 +53,6 @@ Foam::autoPtr<Foam::coordinateRotation> Foam::coordinateRotation::New
|
|||||||
) << "Unknown coordinateRotation type "
|
) << "Unknown coordinateRotation type "
|
||||||
<< rotType << nl << nl
|
<< rotType << nl << nl
|
||||||
<< "Valid coordinateRotation types are :" << nl
|
<< "Valid coordinateRotation types are :" << nl
|
||||||
<< "[default: axes ]"
|
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
<< dictionaryConstructorTablePtr_->sortedToc()
|
||||||
<< exit(FatalIOError);
|
<< exit(FatalIOError);
|
||||||
}
|
}
|
||||||
@ -87,7 +86,6 @@ Foam::autoPtr<Foam::coordinateRotation> Foam::coordinateRotation::New
|
|||||||
) << "Unknown coordinateRotation type "
|
) << "Unknown coordinateRotation type "
|
||||||
<< rotType << nl << nl
|
<< rotType << nl << nl
|
||||||
<< "Valid coordinateRotation types are :" << nl
|
<< "Valid coordinateRotation types are :" << nl
|
||||||
<< "[default: axes ]"
|
|
||||||
<< dictionaryConstructorTablePtr_->sortedToc()
|
<< dictionaryConstructorTablePtr_->sortedToc()
|
||||||
<< exit(FatalIOError);
|
<< exit(FatalIOError);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user