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
8  (
9  boundBox(coarseMesh.points(), false)
10  ).extend(rndGen, 1e-3)
11 );
12 
13 // Dummy bounds dictionary
14 dictionary dict;
15 dict.add("bounds", meshBb);
16 dict.add
17 (
18  "distributionType",
19  distributedTriSurfaceMesh::distributionTypeNames_
20  [
21  distributedTriSurfaceMesh::FROZEN
22  ]
23 );
24 dict.add("mergeDistance", SMALL);
25 
26 labelList triSurfaceToAgglom(5*nFineFaces);
27 
28 const triSurface localSurface = triangulate
29 (
30  patches,
31  includePatches,
32  finalAgglom,
34  globalNumbering,
35  coarsePatches
36 );
37 
38 
39 distributedTriSurfaceMesh 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 
55 triSurfaceToAgglom.resize(surfacesMesh.size());
56 
Foam::labelList
List< label > labelList
A List of labels.
Definition: List.H:71
runTime
engineTime & runTime
Definition: createEngineTime.H:13
localSurface
const triSurface localSurface
Definition: searchingEngine.H:28
surfacesMesh
distributedTriSurfaceMesh surfacesMesh(IOobject("wallSurface.stl", runTime.constant(), "triSurface", runTime, IOobject::NO_READ, IOobject::NO_WRITE), localSurface, dict)
meshBb
List< treeBoundBox > meshBb(1, treeBoundBox(boundBox(coarseMesh.points(), false)).extend(rndGen, 1e-3))
dict
dictionary dict
Definition: searchingEngine.H:14
triSurfaceToAgglom
labelList triSurfaceToAgglom(5 *nFineFaces)
Foam::constant::electromagnetic::e
const dimensionedScalar e
Elementary charge.
Definition: createFields.H:11
patches
const polyBoundaryMesh & patches
Definition: convertProcessorPatches.H:65
rndGen
Random rndGen(653213)