ENH: fvMotionSolvers: updated comment, renamed function

This commit is contained in:
mattijs
2015-11-23 11:52:28 +00:00
parent bca3f3053c
commit 930a87a74e
5 changed files with 10 additions and 11 deletions

View File

@ -361,7 +361,6 @@ snapControls
// Maximum relative distance for points to be attracted by surface. // Maximum relative distance for points to be attracted by surface.
// True distance is this factor times local maximum edge length. // True distance is this factor times local maximum edge length.
// Note: changed(corrected) w.r.t 17x! (17x used 2* tolerance)
tolerance 2.0; tolerance 2.0;
// Number of mesh displacement relaxation iterations. // Number of mesh displacement relaxation iterations.

View File

@ -58,17 +58,14 @@ namespace Foam
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
void Foam::displacementInterpolationMotionSolver::read void Foam::displacementInterpolationMotionSolver::calcInterpolation()
(
const dictionary& coeffDict
)
{ {
// Get zones and their interpolation tables for displacement // Get zones and their interpolation tables for displacement
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
List<Pair<word> > faceZoneToTable List<Pair<word> > faceZoneToTable
( (
coeffDict.lookup("interpolationTables") coeffDict().lookup("interpolationTables")
); );
const faceZoneMesh& fZones = mesh().faceZones(); const faceZoneMesh& fZones = mesh().faceZones();
@ -311,7 +308,7 @@ displacementInterpolationMotionSolver
: :
displacementMotionSolver(mesh, dict, typeName) displacementMotionSolver(mesh, dict, typeName)
{ {
read(coeffDict()); calcInterpolation();
} }
@ -326,7 +323,7 @@ displacementInterpolationMotionSolver
: :
displacementMotionSolver(mesh, dict, pointDisplacement, points0, typeName) displacementMotionSolver(mesh, dict, pointDisplacement, points0, typeName)
{ {
read(coeffDict()); calcInterpolation();
} }

View File

@ -87,7 +87,7 @@ class displacementInterpolationMotionSolver
// Private Member Functions // Private Member Functions
//- Read settings //- Read settings
void read(const dictionary& coeffDict); void calcInterpolation();
//- Disallow default bitwise copy construct //- Disallow default bitwise copy construct
displacementInterpolationMotionSolver displacementInterpolationMotionSolver

View File

@ -213,8 +213,9 @@ void Foam::surfaceAlignedSBRStressFvMotionSolver::calculateCellRot()
} }
} }
// Note: faces on boundaries that get hit are noy included as the // Note: faces on boundaries that get hit are noy included as
// pointDisplacement on boundaries is usually zero for this solver. // the pointDisplacement on boundaries is usually zero for
// this solver.
// Search for closest direction on faces on mesh // Search for closest direction on faces on mesh
// and surface normal. // and surface normal.

View File

@ -33,6 +33,7 @@ Description
Input parameters: Input parameters:
\verbatim
surfaceAlignedSBRStressCoeffs surfaceAlignedSBRStressCoeffs
{ {
diffusivity uniform; diffusivity uniform;
@ -44,6 +45,7 @@ Description
smoothFactor 0.9; smoothFactor 0.9;
minSigmaDiff 1e-4; minSigmaDiff 1e-4;
} }
\endverbatim
surfaces: name of the stl surfaces to which apply alignment. surfaces: name of the stl surfaces to which apply alignment.