Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
nearest neighbor mapping
<?xml version="1.0" encoding="UTF-8" ?>
<precice-configuration>
<log>
<sink
filter="%Severity% > debug and %Rank% = 0"
format="---[precice] %ColorizedSeverity% %Message%"
enabled="true" />
</log>
<solver-interface dimensions="2">
<data:vector name="Force" />
<data:vector name="Displacement" />
<mesh name="Fluid-Mesh-Up">
<use-data name="Force" />
<use-data name="Displacement" />
</mesh>
<mesh name="Fluid-Mesh-Down">
<use-data name="Force" />
<use-data name="Displacement" />
</mesh>
<mesh name="Solid-Mesh">
<use-data name="Displacement" />
<use-data name="Force" />
</mesh>
<participant name="Fluid">
<use-mesh name="Fluid-Mesh-Up" provide="yes" />
<use-mesh name="Fluid-Mesh-Down" provide="yes" />
<use-mesh name="Solid-Mesh" from="Solid" />
<write-data name="Force" mesh="Fluid-Mesh-Up" />
<write-data name="Force" mesh="Fluid-Mesh-Down" />
<read-data name="Displacement" mesh="Fluid-Mesh-Down" />
<read-data name="Displacement" mesh="Fluid-Mesh-Down" />
<mapping:nearest-neighbor direction="write" from="Fluid-Mesh"
to="Solid-Mesh"
constraint="conservative"/>
<mapping:nearest-neighbor direction="read" from="Solid-Mesh"
to="Fluid-Mesh" constraint="consistent"/>
</participant>
<participant name="Solid">
<use-mesh name="Solid-Mesh" provide="yes" />
<write-data name="Displacement" mesh="Solid-Mesh" />
<read-data name="Force" mesh="Solid-Mesh" />
</participant>
<m2n:sockets from="Fluid" to="Solid" exchange-directory=".." enforce-gather-scatter="1"/>
<coupling-scheme:parallel-explicit>
<time-window-size value="0.01" />
<max-time value="10" />
<participants first="Fluid" second="Solid" />
<exchange data="Force" mesh="Solid-Mesh" from="Fluid" to="Solid" />
<exchange data="Displacement" mesh="Solid-Mesh" from="Solid" to="Fluid" />
<!--<max-iterations value="3" />
<relative-convergence-measure limit="5e-3" data="Displacement" mesh="Solid-Mesh" />
<relative-convergence-measure limit="5e-3" data="Force" mesh="Solid-Mesh" />
<acceleration:IQN-ILS>
<data name="Displacement" mesh="Solid-Mesh" />
<data name="Force" mesh="Solid-Mesh" />
<preconditioner type="residual-sum" />
<filter type="QR2" limit="1e-2" />
<initial-relaxation value="0.5" />
<max-used-iterations value="1" />
<time-windows-reused value="1" />
</acceleration:IQN-ILS>-->
</coupling-scheme:parallel-explicit>
</solver-interface>
</precice-configuration>
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object preciceDict;
}
preciceConfig "../precice-config.xml";
participant Fluid;
modules (FSI);
interfaces
{
Interface1
{
mesh Fluid-Mesh-Up;
patches (airfoilUp);
locations faceNodes;
readData
(
Displacement
);
writeData
(
Force
);
};
Interface2
{
mesh Fluid-Mesh-Down;
patches (airfoilDown);
locations faceNodes;
readData
(
Displacement
);
writeData
(
Force
);
};
};
FSI
{
rho rho [1 -3 0 0 0 0 0] 1;
nu nu [ 0 2 -1 0 0 0 0 ] 1e-03;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment