give the triangle nodes coordinates to preCICE and ask for vertex IDs
use the vertex IDs to define triangles
With this PR (and preCICE v3), the adapter does:
create a std::map from vertices (std::tuple of double-triplets (coordinates)) to vertex IDs, initializing the vertex IDs to -1.
set mesh vertices
Assign vertex IDs (values) to the point-triplets (keys)
ask OpenFOAM to compute triangles
Parse the map the define triangles using the map to get IDs
I ran the flow-over-heated-plate-nearest-projection tutorial and the results look similar. Comparing all VTK files with fieldcompare, I get some successes, some failures where the difference is on the last digit, and some failures where just fieldcompare could not open the files.
With preCICE v2, the adapter does:
With this PR (and preCICE v3), the adapter does:
std::map
from vertices (std::tuple
ofdouble
-triplets (coordinates)) to vertex IDs, initializing the vertex IDs to -1.I ran the
flow-over-heated-plate-nearest-projection
tutorial and the results look similar. Comparing all VTK files with fieldcompare, I get some successes, some failures where the difference is on the last digit, and some failures where just fieldcompare could not open the files.co-authored by @fsimonis
Depends on https://github.com/precice/openfoam-adapter/pull/285
Closes #258.
TODO list:
docs/
-> N/Achangelog-entries/
(create directory if missing)