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

Class patchSeedSet

src/sampling/sampledSet/patchSeed/patchSeedSet.H:52–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

patchSeedSet.CFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected