This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/utilities/mesh/conversion/star4ToFoam/star4ToFoam
2019-01-25 16:22:44 +00:00
..
Make update the tutorials for new waveTransmissive BC 2010-05-12 13:27:55 +00:00
calcPointCells.C Upgrade copyright notices & banner in source code 2018-06-01 18:11:37 +02:00
CMakeLists.txt Upgrade copyright notices & banner in source code 2018-06-01 18:11:37 +02:00
createPolyBoundary.C Upgrade copyright notices & banner in source code 2018-06-01 18:11:37 +02:00
createPolyCells.C Upgrade copyright notices & banner in source code 2018-06-01 18:11:37 +02:00
meshReader.C Update to c++-11 standard: nullptr and compilation flags 2019-01-25 16:22:44 +00:00
meshReader.H Upgrade copyright notices & banner in source code 2018-06-01 18:11:37 +02:00
meshReaderAux.C Upgrade copyright notices & banner in source code 2018-06-01 18:11:37 +02:00
README Remove trailing whitespace systematically 2013-07-18 10:15:54 +02:00
README.cellTable Convert tabs to fours spaces systematically 2013-07-18 10:50:29 +02:00
star4ToFoam.C Upgrade copyright notices & banner in source code 2018-06-01 18:11:37 +02:00
starMeshReader.C Update to c++-11 standard: nullptr and compilation flags 2019-01-25 16:22:44 +00:00
starMeshReader.H Upgrade copyright notices & banner in source code 2018-06-01 18:11:37 +02:00

With pro-STAR version v4, the input formats have changed radically.
  * Easier to parse space-delimited input formats
  * No arbitrary or integral couples
  * No trimmed or degenerate cells
  * Support for polyhedral cells
  * Boundaries are directly connected to cell and faces

Since the boundaries are now connected directly to the faces,
we now must be concerned with cell face notation otherwise we perform the
incorrect lookup.
Fortunately, there are only 4 primitive shapes to be concerned with.

Hexa:
   Foam                  pro-STAR
   ~~~~~~~~~~~~~~        ~~~~~~~~~~~
   Face 0 (0 4 7 3)  ->  F5: (0 4 7 3)
   Face 1 (1 2 6 5)  ->  F6: (1 2 6 5)
   Face 2 (0 1 5 4)  ->  F3: (0 1 5 4)
   Face 3 (3 7 6 2)  ->  F4: (2 3 7 6)
   Face 4 (0 3 2 1)  ->  F1: (0 3 2 1)
   Face 5 (4 5 6 7)  ->  F2: (4 5 6 7)


Prism:
   Foam                  pro-STAR
   ~~~~~~~~~~~~~~        ~~~~~~~~~~~
   Face 0 (0 2 1)    ->  F1: (0 2 1)
   Face 1 (3 4 5)    ->  F2: (3 4 5)
   Face 2 (0 3 5 2)  ->  F5: (0 3 5 2)
   Face 3 (1 2 5 4)  ->  F6: (1 2 5 4)
   Face 4 (0 1 4 3)  ->  F3: (0 1 4 3)


Tetra:
   Foam                  pro-STAR
   ~~~~~~~~~~~~~~        ~~~~~~~~~~~
   Face 0 (1 2 3)    ->  F6: (1 2 3)
   Face 1 (0 3 2)    ->  F5: (0 3 2)
   Face 2 (0 1 3)    ->  F3: (0 1 3)
   Face 3 (0 2 1)    ->  F1: (0 2 1)


Pyramid:
   Foam                  pro-STAR
   ~~~~~~~~~~~~~~        ~~~~~~~~~~~
   Face 0 (0 3 2 1)  ->  F1: (0 3 2 1)
   Face 1 (0 4 3)    ->  F5: (0 4 3)
   Face 2 (3 4 2)    ->  F4: (2 3 4)
   Face 3 (1 2 4)    ->  F6: (1 2 4)
   Face 4 (0 1 4)    ->  F3: (0 1 4)

Noting that several faces are skipped over in the pro-STAR definitions,
simply introducing a new cell modeller will be a problem.
Instead, subtract 1 from the pro-STAR faces and use lookup tables.