Hello everyone,
I am trying to make an adapter for fluid side (flowPsi). I am using two meshes approach:
- FluidFace-Mesh: faces centroids to write forces
- Fluid-Mesh: nodes locations to read displacement
<participant name="Fluid">
<use-mesh name="Fluid-Mesh" provide="yes" />
<use-mesh name="FluidFace-Mesh" provide="yes" />
<use-mesh name="Solid-Mesh" from="Solid" />
<write-data name="Force" mesh="FluidFace-Mesh" />
<read-data name="Displacement" mesh="Fluid-Mesh" />
<read-data name="Displacement" mesh="FluidFace-Mesh" />
<mapping:nearest-neighbor
direction="write"
from="FluidFace-Mesh"
to="Solid-Mesh"
constraint="conservative" />
<mapping:nearest-neighbor
direction="read"
from="Solid-Mesh"
to="Fluid-Mesh"
constraint="consistent" />
</participant>
In the first iteration, when displacement are still zero but grid motion module is already active, I got an error:
---[precice] ERROR: This participant attempted to modify the Mesh "FluidFace-Mesh" while locked. Mesh modification is only allowed before calling initialize().
---[precice] Implicitly finalizing in destructor
---[precice] Synchronize participants and close communication channels
Below is attached config file. I would appreciate any suggestions how to deal with that.
precice-config.xml (2.1 KB)
Best regards,
Michal