Skip to content
Snippets Groups Projects
Commit 3a11031a authored by Alexander Jaust's avatar Alexander Jaust
Browse files

updating allrun script an precice configuration

parent c007b1f3
No related branches found
No related tags found
1 merge request!6Feature/ff pm coupling fvca cleanup (to be moved into dumux-pub/jaust2020a)
#! /usr/bin/env bash
ff_solver="test_ff_reversed"
pm_solver="test_pm_reversed"
rm -rf "precice-run/"
rm -f "${ff_solver}.log" "${pm_solver}.log"
rm -f precice-*.log
rm -f precice-*.json
#! /usr/bin/env bash
solver_input="params.input"
ff_solver="test_ff_reversed"
pm_solver="test_pm_reversed"
precice_config="precice-config-serial-implicit-reversed.xml"
rm -rf "precice-run/"
ff_cmd="./${ff_solver} - ${precice_config}"
echo "${ff_cmd}"
./${ff_solver} - ${precice_config} > ${ff_solver}.log 2>&1 &
PIDFluid=$!
./${pm_solver} - ${precice_config} > ${pm_solver}.log 2>&1 &
PIDSolid=$!
echo "Waiting for the participants to exit..."
echo "(you may run 'tail -f ${ff_solver}.log' or 'tail -f ${pm_solver}.log' in another terminal to check the progress)"
wait ${PIDFluid}
wait ${PIDSolid}
if [ $? -ne 0 ] || [ "$(grep -c -E "error:" ${ff_solver}.log)" -ne 0 ] || [ "$(grep -c -E "error:" ${pm_solver}.log)" -ne 0 ]; then
echo ""
echo "Something went wrong... See the log files for more."
else
echo ""
echo "The simulation completed!"
fi
...@@ -35,32 +35,24 @@ ...@@ -35,32 +35,24 @@
<participant name="Darcy"> <participant name="Darcy">
<use-mesh name="DarcyMesh" provide="yes"/> <use-mesh name="DarcyMesh" provide="yes"/>
<read-data name="Pressure" mesh="DarcyMesh"/> <read-data name="Pressure" mesh="DarcyMesh"/>
<write-data name="Velocity" mesh="DarcyMesh"/> <write-data name="Velocity" mesh="DarcyMesh"/>
</participant> </participant>
<m2n:sockets from="FreeFlow" to="Darcy" distribution-type="gather-scatter" network="lo" exchange-directory="/tmp/coupling" /> <m2n:sockets from="FreeFlow" to="Darcy" distribution-type="gather-scatter" network="lo" />
<coupling-scheme:serial-implicit> <coupling-scheme:serial-implicit>
<max-time value="100"/> <max-time value="1"/>
<timestep-length value="1" /> <timestep-length value="1" />
<max-iterations value="100"/> <max-iterations value="100"/>
<participants first="FreeFlow" second="Darcy"/> <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" />
<participants first="Darcy" second="FreeFlow"/>
-->
<exchange data="Pressure" mesh="FreeFlowMesh" from="FreeFlow" to="Darcy" initialize="false" />
<exchange data="Velocity" mesh="FreeFlowMesh" from="Darcy" to="FreeFlow" initialize="true" />
<!--
<relative-convergence-measure limit="1.0e-6" data="Velocity" mesh="FreeFlowMesh"/>
-->
<relative-convergence-measure limit="1.0e-8" data="Pressure" mesh="DarcyMesh"/> <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-8" data="Velocity" mesh="DarcyMesh"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment