Skip to content

Commit

Permalink
Simplify precice-config.xml of tutorials
Browse files Browse the repository at this point in the history
Hides the timing:initial of mapping (not needed) and extrapolation-order (not important).
Moves the max-iterations together with the relative-convergence-measure (more natural to explain).
  • Loading branch information
MakisH committed Jun 23, 2020
1 parent 671104a commit 55a1d57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Expand Up @@ -26,28 +26,27 @@
<use-mesh name="Solid-Mesh" from="Solid"/>
<read-data name="Heat-Flux" mesh="Fluid-Mesh"/>
<write-data name="Temperature" mesh="Fluid-Mesh"/>
<mapping:nearest-neighbor direction="read" from="Solid-Mesh" to="Fluid-Mesh" constraint="consistent" timing="initial"/>
<mapping:nearest-neighbor direction="read" from="Solid-Mesh" to="Fluid-Mesh" constraint="consistent"/>
</participant>

<participant name="Solid">
<use-mesh name="Fluid-Mesh" from="Fluid"/>
<use-mesh name="Solid-Mesh" provide="yes"/>
<read-data name="Temperature" mesh="Solid-Mesh"/>
<write-data name="Heat-Flux" mesh="Solid-Mesh"/>
<mapping:nearest-neighbor direction="read" from="Fluid-Mesh" to="Solid-Mesh" constraint="consistent" timing="initial"/>
<mapping:nearest-neighbor direction="read" from="Fluid-Mesh" to="Solid-Mesh" constraint="consistent"/>
</participant>

<m2n:sockets from="Fluid" to="Solid"/>

<coupling-scheme:serial-implicit>
<time-window-size value="0.01"/>
<max-time value="1"/>
<max-iterations value="200"/>
<participants first="Fluid" second="Solid"/>
<exchange data="Temperature" mesh="Fluid-Mesh" from="Fluid" to="Solid"/>
<exchange data="Heat-Flux" mesh="Solid-Mesh" from="Solid" to="Fluid"/>
<max-iterations value="200"/>
<relative-convergence-measure limit="1.0e-6" data="Temperature" mesh="Fluid-Mesh"/>
<extrapolation-order value="2"/>
<acceleration:IQN-ILS>
<data mesh="Solid-Mesh" name="Heat-Flux" />
<initial-relaxation value="0.01" />
Expand Down
Expand Up @@ -34,7 +34,7 @@
<use-mesh name="Solid-Mesh-Nodes" from="Solid"/>
<read-data name="Heat-Flux" mesh="Fluid-Mesh-Centers"/>
<write-data name="Temperature" mesh="Fluid-Mesh-Nodes"/>
<mapping:nearest-projection direction="read" from="Solid-Mesh-Nodes" to="Fluid-Mesh-Centers" constraint="consistent" timing="initial"/>
<mapping:nearest-projection direction="read" from="Solid-Mesh-Nodes" to="Fluid-Mesh-Centers" constraint="consistent"/>
</participant>

<participant name="Solid">
Expand All @@ -44,7 +44,7 @@
<read-data name="Temperature" mesh="Solid-Mesh-Centers"/>
<write-data name="Heat-Flux" mesh="Solid-Mesh-Nodes"/>
<!-- <export:vtk directory="preCICE-output" /> -->
<mapping:nearest-projection direction="read" from="Fluid-Mesh-Nodes" to="Solid-Mesh-Centers" constraint="consistent" timing="initial"/>
<mapping:nearest-projection direction="read" from="Fluid-Mesh-Nodes" to="Solid-Mesh-Centers" constraint="consistent"/>
</participant>

<m2n:sockets from="Fluid" to="Solid"/>
Expand All @@ -62,12 +62,11 @@
<coupling-scheme:serial-implicit>
<time-window-size value="0.01"/>
<max-time value="1"/>
<max-iterations value="200"/>
<participants first="Fluid" second="Solid"/>
<exchange data="Temperature" mesh="Fluid-Mesh-Nodes" from="Fluid" to="Solid"/>
<exchange data="Heat-Flux" mesh="Solid-Mesh-Nodes" from="Solid" to="Fluid"/>
<max-iterations value="200"/>
<relative-convergence-measure limit="1.0e-6" data="Temperature" mesh="Fluid-Mesh-Nodes"/>
<extrapolation-order value="2"/>
<acceleration:IQN-ILS>
<data mesh="Solid-Mesh-Nodes" name="Heat-Flux" />
<initial-relaxation value="0.01" />
Expand Down

0 comments on commit 55a1d57

Please sign in to comment.