MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / patchCloudSet

Class patchCloudSet

src/sampling/sampledSet/patchCloud/patchCloudSet.H:52–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50\*---------------------------------------------------------------------------*/
51
52class patchCloudSet
53:
54 public sampledSet
55{
56 // Private data
57
58 //- Sampling points
59 const List<point> sampleCoords_;
60
61 //- Patches to sample
62 const labelHashSet patchSet_;
63
64 //- Maximum distance to look for nearest
65 const scalar searchDist_;
66
67
68 // Private Member Functions
69
70 //- Samples all points in sampleCoords.
71 void calcSamples
72 (
73 DynamicList<point>& samplingPts,
74 DynamicList<label>& samplingCells,
75 DynamicList<label>& samplingFaces,
76 DynamicList<label>& samplingSegments,
77 DynamicList<scalar>& samplingCurveDist
78 ) const;
79
80 //- Uses calcSamples to obtain samples. Copies them into *this.
81 void genSamples();
82
83
84public:
85
86 //- Runtime type information
87 TypeName("patchCloud");
88
89
90 // Constructors
91
92 //- Construct from components
93 patchCloudSet
94 (
95 const word& name,
96 const polyMesh& mesh,
97 const meshSearch& searchEngine,
98 const word& axis,
99 const List<point>& sampleCoords,
100 const labelHashSet& patchSet,
101 const scalar searchDist
102 );
103
104 //- Construct from dictionary
105 patchCloudSet
106 (
107 const word& name,
108 const polyMesh& mesh,
109 const meshSearch& searchEngine,

Callers 1

patchCloudSet.CFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected