Skip to content
Snippets Groups Projects
precice-config-serial-implicit-reversed.xml 2.55 KiB
<?xml version="1.0"?>

<precice-configuration>
  <log>
    <sink type="stream" output="stdout"  filter= "(%Severity% > debug) or (%Severity% >= trace and %Module% contains SolverInterfaceImpl)"  enabled="false" /> 
    <sink type="stream" output="stdout"  enabled="false" /> 
  </log> 

  <solver-interface dimensions="2">

    <data:scalar name="Velocity"/>
    <data:scalar name="Pressure"/>

    <mesh name="FreeFlowMesh">
      <use-data name="Velocity" />
      <use-data name="Pressure" />
    </mesh>

    <mesh name="DarcyMesh">
      <use-data name="Velocity" />
      <use-data name="Pressure" />
    </mesh>

    <participant name="FreeFlow">
      <use-mesh name="FreeFlowMesh" provide="yes"/>
      <use-mesh name="DarcyMesh" from="Darcy"/>

      <read-data name="Velocity" mesh="FreeFlowMesh"/>
      <write-data name="Pressure" mesh="FreeFlowMesh"/>

      <mapping:nearest-neighbor direction="write" from="FreeFlowMesh" to="DarcyMesh" constraint="consistent"/>       
      <mapping:nearest-neighbor direction="read" from="DarcyMesh" to="FreeFlowMesh" constraint="consistent"/> 
      
    </participant>

    <participant name="Darcy">
      <use-mesh name="DarcyMesh" provide="yes"/>
     
      <read-data name="Pressure" mesh="DarcyMesh"/>
      <write-data name="Velocity" mesh="DarcyMesh"/>
    </participant>

    <m2n:sockets from="FreeFlow" to="Darcy" distribution-type="gather-scatter" network="lo" />
    
    
    <coupling-scheme:serial-implicit>
      <max-time value="1"/>
      <timestep-length value="1" />
      <max-iterations value="100"/>


      <participants first="FreeFlow" second="Darcy"/>
      <exchange data="Pressure" mesh="DarcyMesh" from="FreeFlow" to="Darcy" initialize="false" />
      <exchange data="Velocity" mesh="DarcyMesh" from="Darcy" to="FreeFlow" initialize="true" />
      
      <relative-convergence-measure limit="1.0e-8" data="Pressure" mesh="DarcyMesh"/>
      <relative-convergence-measure limit="1.0e-8" data="Velocity" mesh="DarcyMesh"/>

             
       <!--
       <relative-convergence-measure limit="1.0e-2" data="Velocity" mesh="FreeFlowMesh"/>
       -->
       <!--
        <extrapolation-order value="0"/>

        <post-processing:IQN-ILS>
            <data mesh="DarcyMesh" name="Velocity" />
            <initial-relaxation value="0.1" />
            <max-used-iterations value="9" />
            <timesteps-reused value="10" />
            <filter type="QR2" limit="1e-3" />
        </post-processing:IQN-ILS>
        -->
           
    </coupling-scheme:serial-implicit>
  </solver-interface>
</precice-configuration>