Miscellaneous developments from Hilary

This commit is contained in:
henry 2010-06-10 13:15:04 +01:00
parent cf1fa7115f
commit bd77d50b5f
5 changed files with 9 additions and 4 deletions

View File

@ -43,7 +43,8 @@ addToRunTimeSelectionTable(extrudeModel, linearRadial, dictionary);
linearRadial::linearRadial(const dictionary& dict)
:
extrudeModel(typeName, dict),
R_(readScalar(coeffDict_.lookup("R")))
R_(readScalar(coeffDict_.lookup("R"))),
Rsurface_(coeffDict_.lookupOrDefault<scalar>("Rsurface", -1))
{}
@ -65,6 +66,7 @@ point linearRadial::operator()
// radius of the surface
scalar rs = mag(surfacePoint);
vector rsHat = surfacePoint/rs;
if (Rsurface_ >= 0) rs = Rsurface_;
scalar r = rs + (R_ - rs)*sumThickness(layer);
return r*rsHat;

View File

@ -51,6 +51,7 @@ class linearRadial
// Private data
scalar R_;
scalar Rsurface_;
public:

View File

@ -25,7 +25,7 @@ Class
Foam::interpolationCell
Description
Foam::interpolationCell
Uses the cell value for any point in the cell
\*---------------------------------------------------------------------------*/

View File

@ -25,7 +25,8 @@ Class
Foam::interpolationCellPoint
Description
Foam::interpolationCellPoint
Given cell centre values and point (vertex) values decompose into
tetrahedra and linear interpolate within them.
\*---------------------------------------------------------------------------*/

View File

@ -25,7 +25,8 @@ Class
Foam::volPointInterpolation
Description
Foam::volPointInterpolation
Interpolate from cell centres to points (vertices) using inverse distance
weighting
SourceFiles
volPointInterpolation.C