Hello,
I thought I had properly set up my configuration xml file for communication between two meshes, but I have run into a cryptic error when attempting to run a coupled analysis.
The first error I encountered was the following:
Participant “Fluid1” has to use and provide mesh “Solid1-Mesh” in order to read data from it. Please add a use-mesh node with name=“Solid1-Mesh” and provide=“true”.
After fixing this error by changing the * … * line below from precice-config-Py-OF.xml to the ** … ** line…
<participant name="Fluid1"> <use-mesh name="Fluid1-Mesh" provide="yes"/> * <use-mesh name="Solid1-Mesh" from="Solid1"/> * ** <use-mesh name="Solid1-Mesh" provide="true"/> ** <write-data name="Pressure" mesh="Fluid1-Mesh"/> <read-data name="Displacement" mesh="Solid1-Mesh"/> <mapping:nearest-neighbor direction="read" from="Solid1-Mesh" to="Fluid1-Mesh" constraint="consistent" timing="initial"/> </participant>
I then received the following error:
A read mapping of participant “Fluid1” needs to map FROM a received mesh. Mesh “Solid1-Mesh” is not received. Please add a from=“(participant)” attribute to the participant’s use-mesh tag.
I then added ‘from=“Solid1”’ to
** <use-mesh name="Solid1-Mesh" provide="true" from="Solid1"/> **
After trying to run the model again, this error appeared:
Participant “Fluid1” cannot receive and provide mesh “Solid1-Mesh” at the same time. Please remove all but one of the “from” and “provide” attributes in the node of Fluid1.
It seems that no matter what I do I encounter an issue with the mesh specification within the Fluid1 participant - by swapping the location of the Solid1 and Fluid1 participants in the xml file I receive similar errors, except for the Solid1 participant instead of Fluid1.
What is going on with this behavior? I feel like I have done something horribly wrong. Shouldn’t the xml file work as it is included in the attachments?
-Nicolette
Allrun.txt (2.1 KB)
Fluid1.log (4.2 KB)
precice-config-Py-OF.xml (2.4 KB)
slurm-1596248.out (5.1 KB)
Solid1.log (455 Bytes)
Solid1Solver.py.txt (4.5 KB)