mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
waveDisplacementPointPatchVectorField: Corrected "waveLength" -> "waveNumber"
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1929
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 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
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
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
waveDisplacementPointPatchVectorField::
|
Foam::waveDisplacementPointPatchVectorField::
|
||||||
waveDisplacementPointPatchVectorField
|
waveDisplacementPointPatchVectorField
|
||||||
(
|
(
|
||||||
const pointPatch& p,
|
const pointPatch& p,
|
||||||
@ -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
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
waveDisplacementPointPatchVectorField::
|
Foam::waveDisplacementPointPatchVectorField::
|
||||||
waveDisplacementPointPatchVectorField
|
waveDisplacementPointPatchVectorField
|
||||||
(
|
(
|
||||||
const waveDisplacementPointPatchVectorField& ptf,
|
const waveDisplacementPointPatchVectorField& ptf,
|
||||||
@ -86,7 +81,7 @@ waveDisplacementPointPatchVectorField
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
waveDisplacementPointPatchVectorField::
|
Foam::waveDisplacementPointPatchVectorField::
|
||||||
waveDisplacementPointPatchVectorField
|
waveDisplacementPointPatchVectorField
|
||||||
(
|
(
|
||||||
const waveDisplacementPointPatchVectorField& ptf,
|
const waveDisplacementPointPatchVectorField& ptf,
|
||||||
@ -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()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
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
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
makePointPatchTypeField
|
namespace Foam
|
||||||
(
|
{
|
||||||
|
makePointPatchTypeField
|
||||||
|
(
|
||||||
pointPatchVectorField,
|
pointPatchVectorField,
|
||||||
waveDisplacementPointPatchVectorField
|
waveDisplacementPointPatchVectorField
|
||||||
);
|
);
|
||||||
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
} // End namespace Foam
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
Reference in New Issue
Block a user