mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: fvMotionSolvers: updated comment, renamed function
This commit is contained in:
@ -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.
|
||||||
|
|||||||
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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.
|
||||||
|
|||||||
@ -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.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user