searchingEngine.H
Go to the documentation of this file.
1Random rndGen(653213);
2
3// Determine mesh bounding boxes:
4List<treeBoundBox> meshBb
5(
6 1,
7 treeBoundBox
8 (
9 boundBox(coarseMesh.points(), false)
10 ).extend(rndGen, 1e-3)
11);
12
13// Dummy bounds dictionary
14dictionary dict;
15dict.add("bounds", meshBb);
17(
18 "distributionType",
19 distributedTriSurfaceMesh::distributionTypeNames_
20 [
21 distributedTriSurfaceMesh::FROZEN
22 ]
23);
24dict.add("mergeDistance", SMALL);
25
26labelList triSurfaceToAgglom(5*nFineFaces);
27
28const triSurface localSurface = triangulate
29(
30 patches,
31 includePatches,
32 finalAgglom,
34 globalNumbering,
35 coarsePatches
36);
37
38
39distributedTriSurfaceMesh surfacesMesh
40(
41 IOobject
42 (
43 "wallSurface.stl",
44 runTime.constant(), // directory
45 "triSurface", // instance
46 runTime, // registry
47 IOobject::NO_READ,
48 IOobject::NO_WRITE
49 ),
51 dict
52);
53
54
56
const polyBoundaryMesh & patches
engineTime & runTime
List< treeBoundBox > meshBb(1, treeBoundBox(boundBox(coarseMesh.points(), false)).extend(rndGen, 1e-3))
dictionary dict
labelList triSurfaceToAgglom(5 *nFineFaces)
const triSurface localSurface
distributedTriSurfaceMesh surfacesMesh(IOobject("wallSurface.stl", runTime.constant(), "triSurface", runTime, IOobject::NO_READ, IOobject::NO_WRITE), localSurface, dict)
volScalarField & e
Definition: createFields.H:11
Random rndGen
Definition: createFields.H:23