Skip to content
Snippets Groups Projects
Commit 2588d789 authored by Henry Weller's avatar Henry Weller
Browse files

waveDisplacementPointPatchVectorField: Corrected "waveLength" -> "waveNumber"

Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1929
parent 660b54b7
Branches
Tags
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -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 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -29,14 +29,9 @@ License ...@@ -29,14 +29,9 @@ License
#include "Time.H" #include "Time.H"
#include "polyMesh.H" #include "polyMesh.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
waveDisplacementPointPatchVectorField:: Foam::waveDisplacementPointPatchVectorField::
waveDisplacementPointPatchVectorField waveDisplacementPointPatchVectorField
( (
const pointPatch& p, const pointPatch& p,
...@@ -50,7 +45,7 @@ waveDisplacementPointPatchVectorField ...@@ -50,7 +45,7 @@ waveDisplacementPointPatchVectorField
{} {}
waveDisplacementPointPatchVectorField:: Foam::waveDisplacementPointPatchVectorField::
waveDisplacementPointPatchVectorField waveDisplacementPointPatchVectorField
( (
const pointPatch& p, const pointPatch& p,
...@@ -61,7 +56,7 @@ waveDisplacementPointPatchVectorField ...@@ -61,7 +56,7 @@ waveDisplacementPointPatchVectorField
fixedValuePointPatchField<vector>(p, iF, dict), fixedValuePointPatchField<vector>(p, iF, dict),
amplitude_(dict.lookup("amplitude")), amplitude_(dict.lookup("amplitude")),
omega_(readScalar(dict.lookup("omega"))), omega_(readScalar(dict.lookup("omega"))),
waveNumber_(dict.lookupOrDefault<vector>("waveLength", vector::zero)) waveNumber_(dict.lookupOrDefault<vector>("waveNumber", vector::zero))
{ {
if (!dict.found("value")) if (!dict.found("value"))
{ {
...@@ -70,7 +65,7 @@ waveDisplacementPointPatchVectorField ...@@ -70,7 +65,7 @@ waveDisplacementPointPatchVectorField
} }
waveDisplacementPointPatchVectorField:: Foam::waveDisplacementPointPatchVectorField::
waveDisplacementPointPatchVectorField waveDisplacementPointPatchVectorField
( (
const waveDisplacementPointPatchVectorField& ptf, const waveDisplacementPointPatchVectorField& ptf,
...@@ -86,7 +81,7 @@ waveDisplacementPointPatchVectorField ...@@ -86,7 +81,7 @@ waveDisplacementPointPatchVectorField
{} {}
waveDisplacementPointPatchVectorField:: Foam::waveDisplacementPointPatchVectorField::
waveDisplacementPointPatchVectorField waveDisplacementPointPatchVectorField
( (
const waveDisplacementPointPatchVectorField& ptf, const waveDisplacementPointPatchVectorField& ptf,
...@@ -102,7 +97,7 @@ waveDisplacementPointPatchVectorField ...@@ -102,7 +97,7 @@ waveDisplacementPointPatchVectorField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void waveDisplacementPointPatchVectorField::updateCoeffs() void Foam::waveDisplacementPointPatchVectorField::updateCoeffs()
{ {
if (this->updated()) if (this->updated())
{ {
...@@ -123,7 +118,7 @@ void waveDisplacementPointPatchVectorField::updateCoeffs() ...@@ -123,7 +118,7 @@ void waveDisplacementPointPatchVectorField::updateCoeffs()
} }
void waveDisplacementPointPatchVectorField::write(Ostream& os) const void Foam::waveDisplacementPointPatchVectorField::write(Ostream& os) const
{ {
pointPatchField<vector>::write(os); pointPatchField<vector>::write(os);
os.writeKeyword("amplitude") os.writeKeyword("amplitude")
...@@ -138,14 +133,13 @@ void waveDisplacementPointPatchVectorField::write(Ostream& os) const ...@@ -138,14 +133,13 @@ void waveDisplacementPointPatchVectorField::write(Ostream& os) const
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePointPatchTypeField namespace Foam
( {
pointPatchVectorField, makePointPatchTypeField
waveDisplacementPointPatchVectorField (
); pointPatchVectorField,
waveDisplacementPointPatchVectorField
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // );
}
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment