{"action":"created","issue":{"url":"https://api.github.com/repos/precice/openfoam-adapter/issues/2","repository_url":"https://api.github.com/repos/precice/openfoam-adapter","labels_url":"https://api.github.com/repos/precice/openfoam-adapter/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/precice/openfoam-adapter/issues/2/comments","events_url":"https://api.github.com/repos/precice/openfoam-adapter/issues/2/events","html_url":"https://github.com/precice/openfoam-adapter/issues/2","id":277157413,"node_id":"MDU6SXNzdWUyNzcxNTc0MTM=","number":2,"title":"Support nearest-projection mapping","user":{"login":"MakisH","id":4943683,"node_id":"MDQ6VXNlcjQ5NDM2ODM=","avatar_url":"https://avatars3.githubusercontent.com/u/4943683?v=4","gravatar_id":"","url":"https://api.github.com/users/MakisH","html_url":"https://github.com/MakisH","followers_url":"https://api.github.com/users/MakisH/followers","following_url":"https://api.github.com/users/MakisH/following{/other_user}","gists_url":"https://api.github.com/users/MakisH/gists{/gist_id}","starred_url":"https://api.github.com/users/MakisH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MakisH/subscriptions","organizations_url":"https://api.github.com/users/MakisH/orgs","repos_url":"https://api.github.com/users/MakisH/repos","events_url":"https://api.github.com/users/MakisH/events{/privacy}","received_events_url":"https://api.github.com/users/MakisH/received_events","type":"User","site_admin":false},"labels":[{"id":761319424,"node_id":"MDU6TGFiZWw3NjEzMTk0MjQ=","url":"https://api.github.com/repos/precice/openfoam-adapter/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"DavidSCN","id":33414590,"node_id":"MDQ6VXNlcjMzNDE0NTkw","avatar_url":"https://avatars1.githubusercontent.com/u/33414590?v=4","gravatar_id":"","url":"https://api.github.com/users/DavidSCN","html_url":"https://github.com/DavidSCN","followers_url":"https://api.github.com/users/DavidSCN/followers","following_url":"https://api.github.com/users/DavidSCN/following{/other_user}","gists_url":"https://api.github.com/users/DavidSCN/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidSCN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidSCN/subscriptions","organizations_url":"https://api.github.com/users/DavidSCN/orgs","repos_url":"https://api.github.com/users/DavidSCN/repos","events_url":"https://api.github.com/users/DavidSCN/events{/privacy}","received_events_url":"https://api.github.com/users/DavidSCN/received_events","type":"User","site_admin":false},"assignees":[{"login":"DavidSCN","id":33414590,"node_id":"MDQ6VXNlcjMzNDE0NTkw","avatar_url":"https://avatars1.githubusercontent.com/u/33414590?v=4","gravatar_id":"","url":"https://api.github.com/users/DavidSCN","html_url":"https://github.com/DavidSCN","followers_url":"https://api.github.com/users/DavidSCN/followers","following_url":"https://api.github.com/users/DavidSCN/following{/other_user}","gists_url":"https://api.github.com/users/DavidSCN/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidSCN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidSCN/subscriptions","organizations_url":"https://api.github.com/users/DavidSCN/orgs","repos_url":"https://api.github.com/users/DavidSCN/repos","events_url":"https://api.github.com/users/DavidSCN/events{/privacy}","received_events_url":"https://api.github.com/users/DavidSCN/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2017-11-27T20:26:18Z","updated_at":"2018-10-22T15:31:20Z","closed_at":null,"author_association":"MEMBER","body":"The adapter currently does not provide preCICE with the mesh edges, but only with the locations of the vertices. This means that currently nearest-projection mapping is not supported.\r\n\r\npreCICE provides the following method in its [src/precice/SolverInterface.hpp](https://github.com/precice/precice/blob/develop/src/precice/SolverInterface.hpp) file:\r\n\r\n```c++\r\nint setMeshEdge (\r\n     int meshID,\r\n     int firstVertexID,\r\n     int secondVertexID );\r\n```\r\n\r\nThe mesh vertices are assigned in the adapter's [Interface.C](https://github.com/precice/openfoam-adapter/blob/master/Interface.C) file, in the method `preciceAdapter::Interface::configureMesh()`."},"comment":{"url":"https://api.github.com/repos/precice/openfoam-adapter/issues/comments/431869762","html_url":"https://github.com/precice/openfoam-adapter/issues/2#issuecomment-431869762","issue_url":"https://api.github.com/repos/precice/openfoam-adapter/issues/2","id":431869762,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTg2OTc2Mg==","user":{"login":"DavidSCN","id":33414590,"node_id":"MDQ6VXNlcjMzNDE0NTkw","avatar_url":"https://avatars1.githubusercontent.com/u/33414590?v=4","gravatar_id":"","url":"https://api.github.com/users/DavidSCN","html_url":"https://github.com/DavidSCN","followers_url":"https://api.github.com/users/DavidSCN/followers","following_url":"https://api.github.com/users/DavidSCN/following{/other_user}","gists_url":"https://api.github.com/users/DavidSCN/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidSCN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidSCN/subscriptions","organizations_url":"https://api.github.com/users/DavidSCN/orgs","repos_url":"https://api.github.com/users/DavidSCN/repos","events_url":"https://api.github.com/users/DavidSCN/events{/privacy}","received_events_url":"https://api.github.com/users/DavidSCN/received_events","type":"User","site_admin":false},"created_at":"2018-10-22T15:31:20Z","updated_at":"2018-10-22T15:31:20Z","author_association":"COLLABORATOR","body":"There is a `faceTriangulation()` object in OpenFoam and we have all building blocks to triangulate our mesh as desired. I would prefer to use the precice function `setMeshTriangleWithEdges`, which can be used to define triangles using vertices. Edges are created on the fly by precice. \r\n\r\nAlthough this function is significantly slower than the mentioned function `setMeshTriangles`, we would circumvent the problem of the right precice own edgeID adressing, since only the vertexIDs are needed for the definition of the triangles."}}
{"actor":{"display_login":"DavidSCN"}}