mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: partial revert of naming change from commit f99a145143
This commit is contained in:
@ -53,7 +53,7 @@ bool Foam::polyLineSet::trackToBoundary
|
|||||||
DynamicList<point>& samplingPts,
|
DynamicList<point>& samplingPts,
|
||||||
DynamicList<label>& samplingCells,
|
DynamicList<label>& samplingCells,
|
||||||
DynamicList<label>& samplingFaces,
|
DynamicList<label>& samplingFaces,
|
||||||
DynamicList<scalar>& samplingPolyLineDist
|
DynamicList<scalar>& samplingCurveDist
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
// Alias
|
// Alias
|
||||||
@ -97,7 +97,7 @@ bool Foam::polyLineSet::trackToBoundary
|
|||||||
samplingFaces.append(facei);
|
samplingFaces.append(facei);
|
||||||
|
|
||||||
// trackPt is at sampleI+1
|
// trackPt is at sampleI+1
|
||||||
samplingPolyLineDist.append(1.0*(sampleI+1));
|
samplingCurveDist.append(1.0*(sampleI+1));
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -111,7 +111,7 @@ bool Foam::polyLineSet::trackToBoundary
|
|||||||
scalar dist =
|
scalar dist =
|
||||||
mag(trackPt - sampleCoords_[sampleI])
|
mag(trackPt - sampleCoords_[sampleI])
|
||||||
/ mag(sampleCoords_[sampleI+1] - sampleCoords_[sampleI]);
|
/ mag(sampleCoords_[sampleI+1] - sampleCoords_[sampleI]);
|
||||||
samplingPolyLineDist.append(sampleI + dist);
|
samplingCurveDist.append(sampleI + dist);
|
||||||
|
|
||||||
// go to next samplePt
|
// go to next samplePt
|
||||||
sampleI++;
|
sampleI++;
|
||||||
@ -133,7 +133,7 @@ void Foam::polyLineSet::calcSamples
|
|||||||
DynamicList<label>& samplingCells,
|
DynamicList<label>& samplingCells,
|
||||||
DynamicList<label>& samplingFaces,
|
DynamicList<label>& samplingFaces,
|
||||||
DynamicList<label>& samplingSegments,
|
DynamicList<label>& samplingSegments,
|
||||||
DynamicList<scalar>& samplingPolyLineDist
|
DynamicList<scalar>& samplingCurveDist
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
// Check sampling points
|
// Check sampling points
|
||||||
@ -227,12 +227,12 @@ void Foam::polyLineSet::calcSamples
|
|||||||
samplingCells.append(trackCellI);
|
samplingCells.append(trackCellI);
|
||||||
samplingFaces.append(trackFaceI);
|
samplingFaces.append(trackFaceI);
|
||||||
|
|
||||||
// Convert sampling position to unique poly line parameter. Get
|
// Convert sampling position to unique curve parameter. Get
|
||||||
// fraction of distance between sampleI and sampleI+1.
|
// fraction of distance between sampleI and sampleI+1.
|
||||||
scalar dist =
|
scalar dist =
|
||||||
mag(trackPt - sampleCoords_[sampleI])
|
mag(trackPt - sampleCoords_[sampleI])
|
||||||
/ mag(sampleCoords_[sampleI+1] - sampleCoords_[sampleI]);
|
/ mag(sampleCoords_[sampleI+1] - sampleCoords_[sampleI]);
|
||||||
samplingPolyLineDist.append(sampleI + dist);
|
samplingCurveDist.append(sampleI + dist);
|
||||||
|
|
||||||
lastSample = trackPt;
|
lastSample = trackPt;
|
||||||
}
|
}
|
||||||
@ -273,7 +273,7 @@ void Foam::polyLineSet::calcSamples
|
|||||||
samplingPts,
|
samplingPts,
|
||||||
samplingCells,
|
samplingCells,
|
||||||
samplingFaces,
|
samplingFaces,
|
||||||
samplingPolyLineDist
|
samplingCurveDist
|
||||||
);
|
);
|
||||||
|
|
||||||
// fill sampleSegments
|
// fill sampleSegments
|
||||||
@ -317,7 +317,7 @@ void Foam::polyLineSet::genSamples()
|
|||||||
DynamicList<label> samplingCells;
|
DynamicList<label> samplingCells;
|
||||||
DynamicList<label> samplingFaces;
|
DynamicList<label> samplingFaces;
|
||||||
DynamicList<label> samplingSegments;
|
DynamicList<label> samplingSegments;
|
||||||
DynamicList<scalar> samplingPolyLineDist;
|
DynamicList<scalar> samplingCurveDist;
|
||||||
|
|
||||||
calcSamples
|
calcSamples
|
||||||
(
|
(
|
||||||
@ -325,14 +325,14 @@ void Foam::polyLineSet::genSamples()
|
|||||||
samplingCells,
|
samplingCells,
|
||||||
samplingFaces,
|
samplingFaces,
|
||||||
samplingSegments,
|
samplingSegments,
|
||||||
samplingPolyLineDist
|
samplingCurveDist
|
||||||
);
|
);
|
||||||
|
|
||||||
samplingPts.shrink();
|
samplingPts.shrink();
|
||||||
samplingCells.shrink();
|
samplingCells.shrink();
|
||||||
samplingFaces.shrink();
|
samplingFaces.shrink();
|
||||||
samplingSegments.shrink();
|
samplingSegments.shrink();
|
||||||
samplingPolyLineDist.shrink();
|
samplingCurveDist.shrink();
|
||||||
|
|
||||||
setSamples
|
setSamples
|
||||||
(
|
(
|
||||||
@ -340,7 +340,7 @@ void Foam::polyLineSet::genSamples()
|
|||||||
samplingCells,
|
samplingCells,
|
||||||
samplingFaces,
|
samplingFaces,
|
||||||
samplingSegments,
|
samplingSegments,
|
||||||
samplingPolyLineDist
|
samplingCurveDist
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -73,7 +73,7 @@ class polyLineSet
|
|||||||
DynamicList<point>& samplingPts,
|
DynamicList<point>& samplingPts,
|
||||||
DynamicList<label>& samplingCells,
|
DynamicList<label>& samplingCells,
|
||||||
DynamicList<label>& samplingFaces,
|
DynamicList<label>& samplingFaces,
|
||||||
DynamicList<scalar>& samplingPolyLineDist
|
DynamicList<scalar>& samplingCurveDist
|
||||||
) const;
|
) const;
|
||||||
|
|
||||||
//- Samples all point in sampleCoords_
|
//- Samples all point in sampleCoords_
|
||||||
@ -84,7 +84,7 @@ class polyLineSet
|
|||||||
DynamicList<label>& samplingCells,
|
DynamicList<label>& samplingCells,
|
||||||
DynamicList<label>& samplingFaces,
|
DynamicList<label>& samplingFaces,
|
||||||
DynamicList<label>& samplingSegments,
|
DynamicList<label>& samplingSegments,
|
||||||
DynamicList<scalar>& samplingPolyLineDist
|
DynamicList<scalar>& samplingCurveDist
|
||||||
) const;
|
) const;
|
||||||
|
|
||||||
//- Uses calcSamples to obtain samples. Copies them into *this.
|
//- Uses calcSamples to obtain samples. Copies them into *this.
|
||||||
|
|||||||
Reference in New Issue
Block a user