mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Miscellaneous developments from Hilary
This commit is contained in:
@ -43,7 +43,8 @@ addToRunTimeSelectionTable(extrudeModel, linearRadial, dictionary);
|
|||||||
linearRadial::linearRadial(const dictionary& dict)
|
linearRadial::linearRadial(const dictionary& dict)
|
||||||
:
|
:
|
||||||
extrudeModel(typeName, 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
|
// radius of the surface
|
||||||
scalar rs = mag(surfacePoint);
|
scalar rs = mag(surfacePoint);
|
||||||
vector rsHat = surfacePoint/rs;
|
vector rsHat = surfacePoint/rs;
|
||||||
|
if (Rsurface_ >= 0) rs = Rsurface_;
|
||||||
|
|
||||||
scalar r = rs + (R_ - rs)*sumThickness(layer);
|
scalar r = rs + (R_ - rs)*sumThickness(layer);
|
||||||
return r*rsHat;
|
return r*rsHat;
|
||||||
|
|||||||
@ -51,6 +51,7 @@ class linearRadial
|
|||||||
// Private data
|
// Private data
|
||||||
|
|
||||||
scalar R_;
|
scalar R_;
|
||||||
|
scalar Rsurface_;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -25,7 +25,7 @@ Class
|
|||||||
Foam::interpolationCell
|
Foam::interpolationCell
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Foam::interpolationCell
|
Uses the cell value for any point in the cell
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
|||||||
@ -25,7 +25,8 @@ Class
|
|||||||
Foam::interpolationCellPoint
|
Foam::interpolationCellPoint
|
||||||
|
|
||||||
Description
|
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
|
Foam::volPointInterpolation
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Foam::volPointInterpolation
|
Interpolate from cell centres to points (vertices) using inverse distance
|
||||||
|
weighting
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
volPointInterpolation.C
|
volPointInterpolation.C
|
||||||
|
|||||||
Reference in New Issue
Block a user