mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
60 lines
1.1 KiB
C++
60 lines
1.1 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: 6
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
stringList
|
|
(
|
|
"The quick brown fox jumps over the lazy dog"
|
|
"The best hash is the one you don't write yourself!"
|
|
)
|
|
|
|
|
|
labelList
|
|
(
|
|
0
|
|
1
|
|
100
|
|
1000
|
|
-1
|
|
-10
|
|
-100
|
|
)
|
|
|
|
labelListList
|
|
(
|
|
(0)
|
|
(0 0)
|
|
(0 0 0)
|
|
(0 1)
|
|
(100 1000)
|
|
(0 1 100 1000)
|
|
)
|
|
|
|
// edges are hashed commutatively
|
|
edgeList
|
|
(
|
|
(0 1)
|
|
(1 0)
|
|
(45 100)
|
|
(100 45)
|
|
(128 1000)
|
|
(1000 128)
|
|
)
|
|
|
|
// triFaces are also hashed commutatively (via multiply/add)
|
|
triFaceList
|
|
(
|
|
(10 20 30)
|
|
(30 20 10)
|
|
(20 10 30)
|
|
)
|
|
|
|
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|