From 64cce7449b4c4f60734439868f378e7779450daf Mon Sep 17 00:00:00 2001 From: sferraris Date: Mon, 17 Oct 2011 14:31:16 +0100 Subject: [PATCH] BUG: Change name from waveLenght to waveNumber --- .../waveDisplacementPointPatchVectorField.C | 14 +++++++------- .../waveDisplacementPointPatchVectorField.H | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/fvMotionSolver/pointPatchFields/derived/waveDisplacement/waveDisplacementPointPatchVectorField.C b/src/fvMotionSolver/pointPatchFields/derived/waveDisplacement/waveDisplacementPointPatchVectorField.C index f7d7e8b1..86956517 100644 --- a/src/fvMotionSolver/pointPatchFields/derived/waveDisplacement/waveDisplacementPointPatchVectorField.C +++ b/src/fvMotionSolver/pointPatchFields/derived/waveDisplacement/waveDisplacementPointPatchVectorField.C @@ -46,7 +46,7 @@ waveDisplacementPointPatchVectorField fixedValuePointPatchField(p, iF), amplitude_(vector::zero), omega_(0.0), - waveLength_(vector::zero) + waveNumber_(vector::zero) {} @@ -61,7 +61,7 @@ waveDisplacementPointPatchVectorField fixedValuePointPatchField(p, iF, dict), amplitude_(dict.lookup("amplitude")), omega_(readScalar(dict.lookup("omega"))), - waveLength_(dict.lookupOrDefault("waveLength", vector::zero)) + waveNumber_(dict.lookupOrDefault("waveLength", vector::zero)) { if (!dict.found("value")) { @@ -82,7 +82,7 @@ waveDisplacementPointPatchVectorField fixedValuePointPatchField(ptf, p, iF, mapper), amplitude_(ptf.amplitude_), omega_(ptf.omega_), - waveLength_(ptf.waveLength_) + waveNumber_(ptf.waveNumber_) {} @@ -96,7 +96,7 @@ waveDisplacementPointPatchVectorField fixedValuePointPatchField(ptf, iF), amplitude_(ptf.amplitude_), omega_(ptf.omega_), - waveLength_(ptf.waveLength_) + waveNumber_(ptf.waveNumber_) {} @@ -112,7 +112,7 @@ void waveDisplacementPointPatchVectorField::updateCoeffs() const polyMesh& mesh = this->dimensionedInternalField().mesh()(); const Time& t = mesh.time(); - const scalarField points( waveLength_ & patch().localPoints()); + const scalarField points( waveNumber_ & patch().localPoints()); Field::operator= ( @@ -130,8 +130,8 @@ void waveDisplacementPointPatchVectorField::write(Ostream& os) const << amplitude_ << token::END_STATEMENT << nl; os.writeKeyword("omega") << omega_ << token::END_STATEMENT << nl; - os.writeKeyword("waveLength") - << waveLength_ << token::END_STATEMENT << nl; + os.writeKeyword("waveNumber") + << waveNumber_ << token::END_STATEMENT << nl; writeEntry("value", os); } diff --git a/src/fvMotionSolver/pointPatchFields/derived/waveDisplacement/waveDisplacementPointPatchVectorField.H b/src/fvMotionSolver/pointPatchFields/derived/waveDisplacement/waveDisplacementPointPatchVectorField.H index 7a6546ed..7d233fc6 100644 --- a/src/fvMotionSolver/pointPatchFields/derived/waveDisplacement/waveDisplacementPointPatchVectorField.H +++ b/src/fvMotionSolver/pointPatchFields/derived/waveDisplacement/waveDisplacementPointPatchVectorField.H @@ -55,7 +55,7 @@ class waveDisplacementPointPatchVectorField vector amplitude_; scalar omega_; - vector waveLength_; + vector waveNumber_; public: -- 2.11.4.GIT