Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@

# The script "Allclean" cleans-up the result and log files.

# Link to the precice-config for the serial run
echo "Setting up the preCICE configuration file for a serial simulation..."
ln -s -f precice-config_serial.xml precice-config.xml

# Participant 1: Fluid
Participant1="Fluid"
Solver1="buoyantPimpleFoam"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@

# The script "Allclean" cleans-up the result and log files.

# Link to the precice-config for the parallel run
echo "Setting up the preCICE configuration file for a parallel simulation..."
ln -s -f precice-config_parallel.xml precice-config.xml

# Participant 1: Fluid
Participant1="Fluid"
Solver1="buoyantPimpleFoam"
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?xml version="1.0"?>

<precice-configuration>

<log>
<sink filter="%Severity% > debug" format="---[precice] %ColorizedSeverity% %Message%" enabled="true"/>
</log>

<solver-interface dimensions="3">

<data:scalar name="Temperature"/>
<data:scalar name="Heat-Flux"/>

<mesh name="Fluid-Mesh">
<use-data name="Temperature"/>
<use-data name="Heat-Flux"/>
</mesh>

<mesh name="Solid-Mesh">
<use-data name="Temperature"/>
<use-data name="Heat-Flux"/>
</mesh>

<participant name="Fluid">
<use-mesh name="Fluid-Mesh" provide="yes"/>
<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"/>
</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"/>
</participant>

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

<coupling-scheme:serial-implicit>
<timestep-length 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"/>
<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" />
<max-used-iterations value="80" />
<timesteps-reused value="10" />
<filter type="QR1" limit="1e-8" />
</acceleration:IQN-ILS>
</coupling-scheme:serial-implicit>

</solver-interface>

</precice-configuration>

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@

# The script "Allclean" cleans-up the result and log files.

# Use the precice-config for the serial run
ln -s -f precice-config_serial.xml precice-config.xml

# Prepare
blockMesh -case Fluid

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@

# The script "Allclean" cleans-up the result and log files.

# Use the precice-config for the serial run
ln -s -f precice-config_serial.xml precice-config.xml

# Prepare
blockMesh -case Solid

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@

# The script "Allclean" cleans-up the result and log files.

# Link to the precice-config for the serial run
echo "Setting up the preCICE configuration file for a serial simulation..."
ln -s -f precice-config_serial.xml precice-config.xml

# Participant 1: Fluid
Participant1="Fluid"
Solver1="buoyantPimpleFoam"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@

# The script "Allclean" cleans-up the result and log files.

# Link to the precice-config for the parallel run
echo "Setting up the preCICE configuration file for a parallel simulation..."
ln -s -f precice-config_parallel.xml precice-config.xml

# Participant 1: Fluid
Participant1="Fluid"
Solver1="buoyantPimpleFoam"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<precice-configuration>

<log>
<sink filter= "%Severity% >= debug" format="---[precice] %ColorizedSeverity% %Message%" enabled="true" />
<sink filter= "%Severity% > debug" format="---[precice] %ColorizedSeverity% %Message%" enabled="true" />
</log>

<solver-interface dimensions="3">
Expand All @@ -29,7 +29,6 @@


<participant name="Fluid">
<master:mpi-single/>
<use-mesh name="Fluid-Mesh-Centers" provide="yes"/>
<use-mesh name="Fluid-Mesh-Nodes" provide="yes"/>
<use-mesh name="Solid-Mesh-Nodes" from="Solid"/>
Expand All @@ -39,25 +38,24 @@
</participant>

<participant name="Solid">
<master:mpi-single/>
<use-mesh name="Fluid-Mesh-Nodes" from="Fluid"/>
<use-mesh name="Solid-Mesh-Nodes" provide="yes"/>
<use-mesh name="Solid-Mesh-Centers" provide="yes"/>
<read-data name="Temperature" mesh="Solid-Mesh-Centers"/>
<write-data name="Heat-Flux" mesh="Solid-Mesh-Nodes"/>
<!-- <export:vtk directory="preCICE-output" /> -->
<!-- <export:vtk directory="preCICE-output" /> -->
<mapping:nearest-projection direction="read" from="Fluid-Mesh-Nodes" to="Solid-Mesh-Centers" constraint="consistent" timing="initial"/>
</participant>

<m2n:sockets from="Fluid" to="Solid" distribution-type="gather-scatter"/>
<m2n:sockets from="Fluid" to="Solid"/>

<!--
<coupling-scheme:serial-explicit>
<timestep-length value="0.01"/>
<max-time value="1"/>
<participants first="Fluid" second="Solid"/>
<exchange data="Temperature" mesh="Fluid-Mesh-Nodes" from="Fluid" to="Solid"/>
<exchange data="Heat-Flux" mesh="Fluid-Mesh-Centers" from="Solid" to="Fluid"/>
<exchange data="Heat-Flux" mesh="Solid-Mesh-Nodes" from="Solid" to="Fluid"/>
</coupling-scheme:serial-explicit>
-->

Expand All @@ -70,13 +68,13 @@
<exchange data="Heat-Flux" mesh="Solid-Mesh-Nodes" from="Solid" to="Fluid"/>
<relative-convergence-measure limit="1.0e-6" data="Temperature" mesh="Fluid-Mesh-Nodes"/>
<extrapolation-order value="2"/>
<post-processing:IQN-ILS>
<acceleration:IQN-ILS>
<data mesh="Solid-Mesh-Nodes" name="Heat-Flux" />
<initial-relaxation value="0.01" />
<max-used-iterations value="80" />
<timesteps-reused value="10" />
<filter type="QR1" limit="1e-8" />
</post-processing:IQN-ILS>
</acceleration:IQN-ILS>
</coupling-scheme:serial-implicit>

</solver-interface>
Expand Down
Loading