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