wet coords

This commit is contained in:
jakob.schratter 2026-01-27 16:37:38 +01:00
commit da569352cc
3 changed files with 29 additions and 7 deletions

View file

@ -106,14 +106,20 @@ int main(int argc, char **argv )
precice::Participant participantSolid(solverName, configFileName, commRank, commSize);
int meshDim = participantSolid.getMeshDimensions(meshName); // gets mesh dimensions (=2) from config file
int numberOfVertices; // number of vertices at "wet" surface
// Determine number of "wet" vertices
vector<int> wetNodes = mesh_c.TopNodes();
int numberOfVertices = wetNodes.size();
// Determine coordinates of "wet" vertices
std::vector<double> allCoords = mesh_c.GetCoords();
std::vector<double> coords(numberOfVertices*meshDim);
for (size_t i = 0; i < numberOfVertices*meshDim; ++i)
{
// TODO: DETERMINE NUMBER OF VERTICES AT TOP
}
std::vector<double> coords(numberOfVertices*meshDim); // coords of vertices at "wet" surface
{
// TODO: DETERMINE COORDINATES OF VERTICES AT TOP
coords.push_back(allCoords[2*wetNodes[i]]); // x-coord of node
coords.push_back(allCoords[2*wetNodes[i + 1]]); // y-coord of node
}
std::vector<int> vertexIDs(numberOfVertices);
participantSolid.setMeshVertices(meshName, coords, vertexIDs);