STYLE: some general spelling fixes

This commit is contained in:
Mark Olesen
2020-05-04 09:15:21 +02:00
parent 2a24bab057
commit 8cfb483054
234 changed files with 332 additions and 340 deletions

View File

@ -174,7 +174,7 @@ tmp<tensorField> Bezier::dndbBasedSensitivities
auto tdndbSens = tmp<tensorField>::New(patch.size(), Zero);
auto& dndbSens = tdndbSens.ref();
// Auxilary quantities
// Auxiliary quantities
deltaBoundary deltaBoundary(mesh_);
const label patchStart = ppatch.start();
const tensorField& dxdbInt = dxidXj_[cpI].primitiveField();
@ -231,7 +231,7 @@ tmp<vectorField> Bezier::dndbBasedSensitivities
auto tdndbSens = tmp<vectorField>::New(patch.size(), Zero);
auto& dndbSens = tdndbSens.ref();
// Auxilary quantities
// Auxiliary quantities
deltaBoundary deltaBoundary(mesh_);
const label patchStart = ppatch.start();
const tensorField& dxdbInt = dxidXj_[cpI].primitiveField();
@ -291,7 +291,7 @@ tmp<tensorField> Bezier::dxdbFace
auto& dxdbFace = tdxdbFace.ref();
if (useChainRule)
{
// Auxilary quantities
// Auxiliary quantities
deltaBoundary deltaBoundary(mesh_);
const label patchStart = patch.start();
const tensorField& dxdbInt = dxidXj_[cpI].primitiveField();
@ -345,7 +345,7 @@ tmp<vectorField> Bezier::dxdbFace
if (useChainRule)
{
// Auxilary quantities
// Auxiliary quantities
deltaBoundary deltaBoundary(mesh_);
const label patchStart = patch.start();
const tensorField& dxdbInt = dxidXj_[cpI].primitiveField();

View File

@ -225,7 +225,7 @@ NURBS3DCurve::NURBS3DCurve
givenInitNrm_(Zero),
nrmOrientation_(ALLIGNED)
nrmOrientation_(ALIGNED)
{
buildCurve();
@ -250,7 +250,7 @@ NURBS3DCurve::NURBS3DCurve
givenInitNrm_(Zero),
nrmOrientation_(ALLIGNED)
nrmOrientation_(ALIGNED)
{
setUniformU();
@ -300,7 +300,7 @@ void NURBS3DCurve::setNrm3DOrientation
if ((givenNrm & curveNrm) >= scalar(0))
{
nrmOrientation_ = ALLIGNED;
nrmOrientation_ = ALIGNED;
}
else
{
@ -330,7 +330,7 @@ void NURBS3DCurve::setNrm2DOrientation
if ((givenNrm & curveNrm) >= scalar(0))
{
nrmOrientation_ = ALLIGNED;
nrmOrientation_ = ALIGNED;
}
else
{
@ -345,13 +345,13 @@ void NURBS3DCurve::setNrm2DOrientation
void NURBS3DCurve::flipNrmOrientation()
{
if (nrmOrientation_ == ALLIGNED)
if (nrmOrientation_ == ALIGNED)
{
nrmOrientation_ = OPPOSED;
}
else
{
nrmOrientation_ = ALLIGNED;
nrmOrientation_ = ALIGNED;
}
}
@ -613,7 +613,7 @@ const vector NURBS3DCurve::nrm3D(const vector& refTan, const scalar u) const
{
vector curveNrm(Zero);
if (nrmOrientation_ == ALLIGNED)
if (nrmOrientation_ == ALIGNED)
{
curveNrm = curveDerivativeU(u) ^ refTan;
}

View File

@ -57,11 +57,11 @@ class NURBS3DCurve
:
public vectorField
{
// Private data
// Private Data
enum nrmOrientation
{
ALLIGNED = 1,
ALIGNED = 1,
OPPOSED = -1
};

View File

@ -331,7 +331,7 @@ NURBS3DSurface::NURBS3DSurface
CPsUCPIs_(0),
CPsVCPIs_(0),
nrmOrientation_(ALLIGNED),
nrmOrientation_(ALIGNED),
boundaryCPIDs_(nullptr)
{
@ -369,7 +369,7 @@ NURBS3DSurface::NURBS3DSurface
CPsUCPIs_(0),
CPsVCPIs_(0),
nrmOrientation_(ALLIGNED),
nrmOrientation_(ALIGNED),
boundaryCPIDs_(nullptr)
{
@ -408,7 +408,7 @@ NURBS3DSurface::NURBS3DSurface
CPsUCPIs_(0),
CPsVCPIs_(0),
nrmOrientation_(ALLIGNED),
nrmOrientation_(ALIGNED),
boundaryCPIDs_(nullptr)
{
@ -458,7 +458,7 @@ NURBS3DSurface::NURBS3DSurface
CPsUCPIs_(0),
CPsVCPIs_(0),
nrmOrientation_(ALLIGNED),
nrmOrientation_(ALIGNED),
boundaryCPIDs_(nullptr)
{
@ -507,7 +507,7 @@ NURBS3DSurface::NURBS3DSurface
CPsUCPIs_(0),
CPsVCPIs_(0),
nrmOrientation_(ALLIGNED),
nrmOrientation_(ALIGNED),
boundaryCPIDs_(nullptr)
{
@ -559,7 +559,7 @@ NURBS3DSurface::NURBS3DSurface
CPsUCPIs_(0),
CPsVCPIs_(0),
nrmOrientation_(ALLIGNED),
nrmOrientation_(ALIGNED),
boundaryCPIDs_(nullptr)
{
@ -597,7 +597,7 @@ void NURBS3DSurface::setNrmOrientation
if (relation >= 0)
{
nrmOrientation_ = ALLIGNED;
nrmOrientation_ = ALIGNED;
}
else
{
@ -612,13 +612,13 @@ void NURBS3DSurface::setNrmOrientation
void NURBS3DSurface::flipNrmOrientation()
{
if (nrmOrientation_ == ALLIGNED)
if (nrmOrientation_ == ALIGNED)
{
nrmOrientation_ = OPPOSED;
}
else
{
nrmOrientation_ = ALLIGNED;
nrmOrientation_ = ALIGNED;
}
}
@ -1266,7 +1266,7 @@ const vector NURBS3DSurface::nrm(scalar u, scalar v)
{
vector surfaceNrm(Zero);
if (nrmOrientation_ == ALLIGNED)
if (nrmOrientation_ == ALIGNED)
{
surfaceNrm = surfaceDerivativeU(u, v) ^ surfaceDerivativeV(u, v);
}

View File

@ -56,7 +56,7 @@ class NURBS3DSurface
:
public vectorField
{
// Private data
// Private Data
enum paramType
{
@ -67,7 +67,7 @@ class NURBS3DSurface
enum nrmOrientation
{
ALLIGNED=1,
ALIGNED=1,
OPPOSED=-1
};

View File

@ -169,7 +169,7 @@ void Foam::NURBS3DVolume::computeParametricCoordinates
pointMesh::New(mesh_)
);
// Initialize intermidiate fields with sizes from findPointInBox
// Initialize intermediate fields with sizes from findPointInBox
labelList actualMap(map.size());
// Read and store
@ -189,7 +189,7 @@ void Foam::NURBS3DVolume::computeParametricCoordinates
}
}
// Resize intermidiate
// Resize intermediate
actualMap.setSize(curIndex);
reduce(curIndex, sumOp<label>());
@ -600,7 +600,7 @@ void Foam::NURBS3DVolume::confineControlPoint(const label cpI)
if (cpI < 0 || cpI > cps_.size() -1)
{
FatalErrorInFunction
<< "Attempted to confine contol point movement for a control point "
<< "Attempted to confine control point movement for a control point "
<< " ID which is out of bounds"
<< exit(FatalError);
}
@ -622,7 +622,7 @@ void Foam::NURBS3DVolume::confineControlPoint
if (cpI < 0 || cpI > cps_.size() -1)
{
FatalErrorInFunction
<< "Attempted to confine contol point movement for a control point "
<< "Attempted to confine control point movement for a control point "
<< " ID which is out of bounds"
<< exit(FatalError);
}
@ -1076,7 +1076,7 @@ Foam::vectorField Foam::NURBS3DVolume::computeControlPointSensitivities
// Get parametric coordinates
const vectorField& parametricCoordinates = getParametricCoordinates();
// Auxilary quantities
// Auxiliary quantities
deltaBoundary deltaBoundary(mesh_);
const labelList& reverseMap = reverseMapPtr_();
@ -1147,7 +1147,7 @@ Foam::vector Foam::NURBS3DVolume::computeControlPointSensitivities
// Get parametric coordinates
const vectorField& parametricCoordinates = getParametricCoordinates();
// Auxilary quantities
// Auxiliary quantities
deltaBoundary deltaBoundary(mesh_);
const labelList& reverseMap = reverseMapPtr_();
@ -1207,7 +1207,7 @@ Foam::tmp<Foam::tensorField> Foam::NURBS3DVolume::dndbBasedSensitivities
// Return field
tmp<tensorField> tdndbSens(new tensorField(patch.size(), Zero));
tensorField& dndbSens = tdndbSens.ref();
// Auxilary quantities
// Auxiliary quantities
deltaBoundary deltaBoundary(mesh_);
const label patchStart = ppatch.start();
const labelList& reverseMap = reverseMapPtr_();

View File

@ -101,7 +101,7 @@ protected:
autoPtr<labelList> mapPtr_;
//- Map of mesh points to points-in-box
// Return -1 if point not whithin the box
// Return -1 if point not within the box
autoPtr<labelList> reverseMapPtr_;
//- Parametric coordinates of pointsInBox
@ -403,8 +403,7 @@ public:
// Functions triggering calculations
//- Get points of mesh which recide within the control points
//- box
//- Get mesh points that reside within the control points box
tmp<vectorField> getPointsInBox();
//- Get map of points in box to mesh points

View File

@ -29,7 +29,7 @@ Class
Foam::NURBSbasis
Description
NURBSbasis fuction. Used to construct NURBS curves, surfaces and volumes
NURBSbasis function. Used to construct NURBS curves, surfaces and volumes
SourceFiles
NURBSbasis.C