In the multiple-perpendicular-flaps case at tutorials/precice-config.xml at master · precice/tutorials (github.com), there are two interfaces. The stress and force are named as Stress1, 2, and Force1, 2. How does preCICE know the user are required the force and stress? Does it infer the filed names in terms of some conventions? For example, if the string ‘Stress’ appears in the filed name, preCICE assume ‘Stress’ is desired. Is my understanding correct?
While this assumption does not always work and can be a bit restrictive, separating the name from the type would complicate the adapter configuration file and the respective code (which is already quite large). I tried this already briefly, but this does not mean that we may not return back to this in the future. Contributions are very welcome!
To be honest, I also wondered about this right now. I have tried it a long time ago, but I don’t remember what the conclusion was. It definitely works with postfixes (Displacements0), but I guess it should also work with prefixes (MyDisplacement).
Why don’t give it a quick try and document your findings here? If it works also with prefixes, feel free to directly edit and contribute to the documentation!
A quick test shows the statement in the document is right. That means prefix is not allowed.
My understanding is ‘MyDisplacement’ contains “M”, “My”, “MyD”, …, “MyDisplacemet” but not “Displacement”. Whereas “Displacement0” contains “D”, “Di”, “Dis”, …, “Displacement”, and “Displacement”. Someone can confirm.