mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: conformalVoronoiMesh. Reading timeChecks Switch from dictionary.
This commit is contained in:
@ -49,8 +49,6 @@ Foam::cvControls::cvControls
|
||||
|
||||
spanSqr_ = sqr(span_);
|
||||
|
||||
timeChecks_ = true;
|
||||
|
||||
// Surface conformation controls
|
||||
|
||||
const dictionary& surfDict(cvMeshDict_.subDict("surfaceConformation"));
|
||||
@ -99,6 +97,11 @@ Foam::cvControls::cvControls
|
||||
|
||||
objOutput_ = Switch(motionDict.lookupOrDefault<Switch>("objOutput", false));
|
||||
|
||||
timeChecks_ = Switch
|
||||
(
|
||||
motionDict.lookupOrDefault<Switch>("timeChecks", false)
|
||||
);
|
||||
|
||||
alignmentSearchSpokes_ = readLabel
|
||||
(
|
||||
motionDict.lookup("alignmentSearchSpokes")
|
||||
|
||||
@ -69,8 +69,6 @@ class cvControls
|
||||
//- Square of span_
|
||||
scalar spanSqr_;
|
||||
|
||||
//- Activate/deactivate detailed timeChecks during meshing
|
||||
bool timeChecks_;
|
||||
|
||||
// Surface conformation controls
|
||||
|
||||
@ -114,6 +112,9 @@ class cvControls
|
||||
//- Switch to control the output of obj files for debug
|
||||
Switch objOutput_;
|
||||
|
||||
//- Switch to control the reporting of detailed timeChecks
|
||||
Switch timeChecks_;
|
||||
|
||||
//- Number of "spokes" to use to search for secondary alignment
|
||||
// direction
|
||||
label alignmentSearchSpokes_;
|
||||
@ -230,9 +231,6 @@ public:
|
||||
//- Return spanSqr
|
||||
inline scalar spanSqr() const;
|
||||
|
||||
//- Return timeChecks
|
||||
inline bool timeChecks() const;
|
||||
|
||||
//- Return the pointPairDistanceCoeff
|
||||
inline scalar pointPairDistanceCoeff() const;
|
||||
|
||||
@ -260,6 +258,9 @@ public:
|
||||
//- Return the objOutput Switch
|
||||
inline Switch objOutput() const;
|
||||
|
||||
//- Return the timeChecks Switch
|
||||
inline Switch timeChecks() const;
|
||||
|
||||
//- Return the number of alignmentSearchSpokes to use
|
||||
inline label alignmentSearchSpokes() const;
|
||||
|
||||
|
||||
@ -44,12 +44,6 @@ inline Foam::scalar Foam::cvControls::spanSqr() const
|
||||
}
|
||||
|
||||
|
||||
inline bool Foam::cvControls::timeChecks() const
|
||||
{
|
||||
return timeChecks_;
|
||||
}
|
||||
|
||||
|
||||
inline Foam::scalar Foam::cvControls::pointPairDistanceCoeff() const
|
||||
{
|
||||
return pointPairDistanceCoeff_;
|
||||
@ -104,6 +98,12 @@ inline Foam::Switch Foam::cvControls::objOutput() const
|
||||
}
|
||||
|
||||
|
||||
inline Foam::Switch Foam::cvControls::timeChecks() const
|
||||
{
|
||||
return timeChecks_;
|
||||
}
|
||||
|
||||
|
||||
inline Foam::label Foam::cvControls::alignmentSearchSpokes() const
|
||||
{
|
||||
return alignmentSearchSpokes_;
|
||||
|
||||
Reference in New Issue
Block a user