rotatingWallVelocityFvPatchVectorField: Read value if present rather than evaluating the BC

Needed for reconstructing AMI cases
This commit is contained in:
Henry
2013-07-15 14:27:15 +01:00
parent 313547796e
commit 17f45e5b2e

View File

@ -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-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -73,8 +73,18 @@ rotatingWallVelocityFvPatchVectorField
axis_(dict.lookup("axis")), axis_(dict.lookup("axis")),
omega_(DataEntry<scalar>::New("omega", dict)) omega_(DataEntry<scalar>::New("omega", dict))
{ {
// Evaluate the wall velocity if (dict.found("value"))
updateCoeffs(); {
fvPatchField<vector>::operator=
(
vectorField("value", dict, p.size())
);
}
else
{
// Evaluate the wall velocity
updateCoeffs();
}
} }