From 17f45e5b2e2a81b1bd644a03070811b2d9ed16a3 Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 15 Jul 2013 14:27:15 +0100 Subject: [PATCH] rotatingWallVelocityFvPatchVectorField: Read value if present rather than evaluating the BC Needed for reconstructing AMI cases --- .../rotatingWallVelocityFvPatchVectorField.C | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/rotatingWallVelocity/rotatingWallVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/rotatingWallVelocity/rotatingWallVelocityFvPatchVectorField.C index 4492d53c30..daa6a83903 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/rotatingWallVelocity/rotatingWallVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/rotatingWallVelocity/rotatingWallVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -73,8 +73,18 @@ rotatingWallVelocityFvPatchVectorField axis_(dict.lookup("axis")), omega_(DataEntry::New("omega", dict)) { - // Evaluate the wall velocity - updateCoeffs(); + if (dict.found("value")) + { + fvPatchField::operator= + ( + vectorField("value", dict, p.size()) + ); + } + else + { + // Evaluate the wall velocity + updateCoeffs(); + } }