Miscellaneous developments from Hilary
This commit is contained in:
parent
cf1fa7115f
commit
bd77d50b5f
@ -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;
|
||||
|
@ -51,6 +51,7 @@ class linearRadial
|
||||
// Private data
|
||||
|
||||
scalar R_;
|
||||
scalar Rsurface_;
|
||||
|
||||
|
||||
public:
|
||||
|
@ -25,7 +25,7 @@ Class
|
||||
Foam::interpolationCell
|
||||
|
||||
Description
|
||||
Foam::interpolationCell
|
||||
Uses the cell value for any point in the cell
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
|
@ -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.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
|
@ -25,7 +25,8 @@ Class
|
||||
Foam::volPointInterpolation
|
||||
|
||||
Description
|
||||
Foam::volPointInterpolation
|
||||
Interpolate from cell centres to points (vertices) using inverse distance
|
||||
weighting
|
||||
|
||||
SourceFiles
|
||||
volPointInterpolation.C
|
||||
|
Loading…
Reference in New Issue
Block a user