|
| 1 | +<?xml version="1.0"?> |
| 2 | +<precice-configuration> |
| 3 | + <log enabled="1"> |
| 4 | + <sink filter="%Severity% > debug" /> |
| 5 | + </log> |
| 6 | + |
| 7 | + <solver-interface dimensions="2" > |
| 8 | + <!-- Use this to activate waveforms |
| 9 | + <solver-interface dimensions="2" experimental="true"> |
| 10 | + --> |
| 11 | + <data:scalar name="Force-Left" /> |
| 12 | + <data:scalar name="Force-Right" /> |
| 13 | + |
| 14 | + <mesh name="Mass-Left-Mesh"> |
| 15 | + <use-data name="Force-Left" /> |
| 16 | + <use-data name="Force-Right" /> |
| 17 | + </mesh> |
| 18 | + |
| 19 | + <mesh name="Mass-Right-Mesh"> |
| 20 | + <use-data name="Force-Left" /> |
| 21 | + <use-data name="Force-Right" /> |
| 22 | + </mesh> |
| 23 | + |
| 24 | + <participant name="Mass-Left"> |
| 25 | + <use-mesh name="Mass-Left-Mesh" provide="yes"/> |
| 26 | + <write-data name="Force-Left" mesh="Mass-Left-Mesh" /> |
| 27 | + <read-data name="Force-Right" mesh="Mass-Left-Mesh" /> |
| 28 | + <!-- Use this to activate first order interpolation |
| 29 | + <read-data name="Force-Right" mesh="Mass-Left-Mesh" waveform-order="1" /> |
| 30 | + --> |
| 31 | + </participant> |
| 32 | + |
| 33 | + <participant name="Mass-Right"> |
| 34 | + <use-mesh name="Mass-Left-Mesh" from="Mass-Left"/> |
| 35 | + <use-mesh name="Mass-Right-Mesh" provide="yes"/> |
| 36 | + <write-data name="Force-Right" mesh="Mass-Right-Mesh" /> |
| 37 | + <read-data name="Force-Left" mesh="Mass-Right-Mesh" /> |
| 38 | + <!-- Use this to activate first order interpolation |
| 39 | + <read-data name="Force-Left" mesh="Mass-Right-Mesh" waveform-order="1" /> |
| 40 | + --> |
| 41 | + <mapping:nearest-neighbor direction="write" from="Mass-Right-Mesh" to="Mass-Left-Mesh" constraint="consistent" /> |
| 42 | + <mapping:nearest-neighbor direction="read" from="Mass-Left-Mesh" to="Mass-Right-Mesh" constraint="consistent" /> |
| 43 | + </participant> |
| 44 | + |
| 45 | + <m2n:sockets from="Mass-Left" to="Mass-Right" exchange-directory=".." /> |
| 46 | + |
| 47 | + <coupling-scheme:serial-implicit> |
| 48 | + <participants first="Mass-Left" second="Mass-Right" /> |
| 49 | + <max-time value="1" /> |
| 50 | + <time-window-size value="0.01" /> |
| 51 | + <max-iterations value="200" /> |
| 52 | + <relative-convergence-measure data="Force-Left" mesh="Mass-Left-Mesh" limit="1e-10"/> |
| 53 | + <relative-convergence-measure data="Force-Right" mesh="Mass-Left-Mesh" limit="1e-10"/> |
| 54 | + <exchange data="Force-Left" mesh="Mass-Left-Mesh" from="Mass-Left" to="Mass-Right" /> |
| 55 | + <!-- Use this for higher accuracy with waveforms and preCICE v3 |
| 56 | + <exchange data="Force-Left" mesh="Mass-Left-Mesh" from="Mass-Left" to="Mass-Right" initialize="true" /> |
| 57 | + --> |
| 58 | + <exchange data="Force-Right" mesh="Mass-Left-Mesh" from="Mass-Right" to="Mass-Left" initialize="true"/> |
| 59 | + </coupling-scheme:serial-implicit> |
| 60 | + </solver-interface> |
| 61 | + |
| 62 | +</precice-configuration> |
0 commit comments