-
-
Notifications
You must be signed in to change notification settings - Fork 25
Difference between faces-mesh and mesh ? #87
Copy link
Copy link
Closed
Labels
Description
I'm slightly confused by the different kinds of interfaces available.
From what I understand, we propose three different things:
- Nodal mesh without connectivity, for e.g. FSI with nearest neighbor or RBF mapping. Configuration is
nodes-mesh - Nodal mesh with connectivity, for same context but when nearest projection is used. Configuration is
nodes-mesh-with-connectivity - Face centers mesh for CHT. Configuration is either
meshorfaces-mesh.
In the config reader code mesh and faces-mesh seem to have a different treatment. I think it's just a matter of style, but shouldn't it be a "if(mesh) else if (faces-mesh) else" instead of this "if-else-if" ?
I'm working on some refactoring but I'd rather have confirmation they're equivalent to be sure.
calculix-adapter/adapter/ConfigReader.cpp
Lines 36 to 55 in 4496e8f
| if (config["participants"][participantName]["interfaces"][i]["nodes-mesh"]) { | |
| interface.nodesMeshName = strdup(config["participants"][participantName]["interfaces"][i]["nodes-mesh"].as<std::string>().c_str()); | |
| interface.map = 0; | |
| } else if (config["participants"][participantName]["interfaces"][i]["nodes-mesh-with-connectivity"]) { | |
| interface.nodesMeshName = strdup(config["participants"][participantName]["interfaces"][i]["nodes-mesh-with-connectivity"].as<std::string>().c_str()); | |
| interface.map = 1; | |
| } else { | |
| interface.nodesMeshName = NULL; | |
| } | |
| if (config["participants"][participantName]["interfaces"][i]["faces-mesh"]) { | |
| interface.facesMeshName = strdup(config["participants"][participantName]["interfaces"][i]["faces-mesh"].as<std::string>().c_str()); | |
| } else { | |
| interface.facesMeshName = NULL; | |
| } | |
| if (config["participants"][participantName]["interfaces"][i]["mesh"]) { | |
| interface.facesMeshName = strdup(config["participants"][participantName]["interfaces"][i]["mesh"].as<std::string>().c_str()); | |
| } | |
Also, documentation on the website seems quite lacking. I'll work on it once I'm sure I don't have a major misunderstanding :)
Reactions are currently unavailable