Skip to content

Difference between faces-mesh and mesh ? #87

@boris-martin

Description

@boris-martin

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 mesh or faces-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.

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions