From d77f0897175a28e6f390b8fb3e4084290f30370f Mon Sep 17 00:00:00 2001
From: Max Jaeschke <max.jaeschke@htwk-leipzig.de>
Date: Mon, 1 Jul 2024 08:11:30 +0200
Subject: [PATCH] Add tests for algebraic BC method

Relax tolerance for algebraic BC in fixed_power_constant_flow

Add tests for BHE-Sandwich benchmark

fix test errors

add weighting factor in tests

add weighting factor in tests
---
 ProcessLib/HeatTransportBHE/Tests.cmake       | 98 +++++++++++++++++++
 .../Parabolic/T/3D_BHE_Sandwich/sandwich.prj  |  7 +-
 .../3D_BHE_Sandwich/sandwich_algebraicBC.xml  | 15 +++
 ...ich_algBC.prj => sandwich_fixed_power.prj} | 24 ++---
 .../sandwich_fixed_power_algebraicBC.xml      | 15 +++
 ...andwich_fixed_power_ts_10_t_600.000000.vtu | 27 +++++
 .../T/3D_BHE_Sandwich/sandwich_newton.xml     |  9 ++
 .../sandwich_ts_10_t_600.000000.vtu           | 27 +++++
 .../beier_sandbox_algebraicBC.xml             |  3 +
 .../fixed_power_constant_flow_algebraicBC.xml |  3 +
 10 files changed, 206 insertions(+), 22 deletions(-)
 create mode 100644 Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_algebraicBC.xml
 rename Tests/Data/Parabolic/T/3D_BHE_Sandwich/{sandwich_algBC.prj => sandwich_fixed_power.prj} (93%)
 create mode 100644 Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_fixed_power_algebraicBC.xml
 create mode 100644 Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_fixed_power_ts_10_t_600.000000.vtu
 create mode 100644 Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_newton.xml
 create mode 100644 Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_ts_10_t_600.000000.vtu

diff --git a/ProcessLib/HeatTransportBHE/Tests.cmake b/ProcessLib/HeatTransportBHE/Tests.cmake
index 7334aa699df..f9dc29c3736 100644
--- a/ProcessLib/HeatTransportBHE/Tests.cmake
+++ b/ProcessLib/HeatTransportBHE/Tests.cmake
@@ -1,3 +1,73 @@
+AddTest(
+    NAME HeatTransportBHE_1U_3D_bhe_sandwich
+    PATH Parabolic/T/3D_BHE_Sandwich
+    EXECUTABLE ogs
+    EXECUTABLE_ARGS sandwich.prj
+    WRAPPER time
+    TESTER vtkdiff
+    REQUIREMENTS NOT OGS_USE_MPI
+    RUNTIME 10
+    DIFF_DATA
+    sandwich_ts_10_t_600.000000.vtu sandwich_ts_10_t_600.000000.vtu temperature_BHE1 temperature_BHE1 0 5e-15
+    sandwich_ts_10_t_600.000000.vtu sandwich_ts_10_t_600.000000.vtu temperature_soil temperature_soil 0 1e-13
+)
+
+AddTest(
+    NAME HeatTransportBHE_1U_3D_bhe_sandwich_Newton
+    PATH Parabolic/T/3D_BHE_Sandwich
+    EXECUTABLE ogs
+    EXECUTABLE_ARGS sandwich_newton.xml
+    WRAPPER time
+    TESTER vtkdiff
+    REQUIREMENTS NOT OGS_USE_MPI
+    RUNTIME 10
+    DIFF_DATA
+    sandwich_ts_10_t_600.000000.vtu sandwich_newton_ts_10_t_600.000000.vtu temperature_BHE1 temperature_BHE1 0 1e-14
+    sandwich_ts_10_t_600.000000.vtu sandwich_newton_ts_10_t_600.000000.vtu temperature_soil temperature_soil 0 1e-13
+)
+
+AddTest(
+    NAME HeatTransportBHE_1U_3D_bhe_sandwich_algebraicBC
+    PATH Parabolic/T/3D_BHE_Sandwich
+    EXECUTABLE ogs
+    EXECUTABLE_ARGS sandwich_algebraicBC.xml
+    WRAPPER time
+    TESTER vtkdiff
+    REQUIREMENTS NOT OGS_USE_MPI
+    RUNTIME 20
+    DIFF_DATA
+    sandwich_ts_10_t_600.000000.vtu sandwich_algebraic_bc_ts_10_t_600.000000.vtu temperature_BHE1 temperature_BHE1 0 1e-6
+    sandwich_ts_10_t_600.000000.vtu sandwich_algebraic_bc_ts_10_t_600.000000.vtu temperature_soil temperature_soil 0 5e-9
+)
+
+AddTest(
+    NAME HeatTransportBHE_1U_3D_bhe_sandwich_fixed_power
+    PATH Parabolic/T/3D_BHE_Sandwich
+    RUNTIME 100
+    EXECUTABLE ogs
+    EXECUTABLE_ARGS sandwich_fixed_power.prj
+    WRAPPER time
+    TESTER vtkdiff
+    REQUIREMENTS NOT OGS_USE_MPI
+    DIFF_DATA
+    sandwich_fixed_power_ts_10_t_600.000000.vtu sandwich_fixed_power_ts_10_t_600.000000.vtu temperature_BHE1 temperature_BHE1 0 5e-15
+    sandwich_fixed_power_ts_10_t_600.000000.vtu sandwich_fixed_power_ts_10_t_600.000000.vtu temperature_soil temperature_soil 0 1e-13
+)
+
+AddTest(
+    NAME HeatTransportBHE_1U_3D_bhe_sandwich_fixed_power_algebraicBC
+    PATH Parabolic/T/3D_BHE_Sandwich
+    RUNTIME 100
+    EXECUTABLE ogs
+    EXECUTABLE_ARGS sandwich_fixed_power_algebraicBC.xml
+    WRAPPER time
+    TESTER vtkdiff
+    REQUIREMENTS NOT OGS_USE_MPI
+    DIFF_DATA
+    sandwich_fixed_power_ts_10_t_600.000000.vtu sandwich_fixed_power_algebraic_bc_ts_10_t_600.000000.vtu temperature_BHE1 temperature_BHE1 0 5e-3
+    sandwich_fixed_power_ts_10_t_600.000000.vtu sandwich_fixed_power_algebraic_bc_ts_10_t_600.000000.vtu temperature_soil temperature_soil 0 1e-6
+)
+
 AddTest(
     NAME HeatTransportBHE_1U_3D_beier_sandbox
     PATH Parabolic/T/3D_Beier_sandbox
@@ -26,6 +96,20 @@ AddTest(
     beier_sandbox_ts_10_t_600.000000.vtu beier_sandbox_newton_ts_10_t_600.000000.vtu temperature_soil temperature_soil 0 1e-13
 )
 
+AddTest(
+    NAME HeatTransportBHE_1U_3D_beier_sandbox_algebraicBC
+    PATH Parabolic/T/3D_Beier_sandbox
+    EXECUTABLE ogs
+    EXECUTABLE_ARGS beier_sandbox_algebraicBC.xml
+    WRAPPER time
+    TESTER vtkdiff
+    REQUIREMENTS NOT OGS_USE_MPI
+    RUNTIME 20
+    DIFF_DATA
+    beier_sandbox_ts_10_t_600.000000.vtu beier_sandbox_algebraic_bc_ts_10_t_600.000000.vtu temperature_BHE1 temperature_BHE1 0 5e-7
+    beier_sandbox_ts_10_t_600.000000.vtu beier_sandbox_algebraic_bc_ts_10_t_600.000000.vtu temperature_soil temperature_soil 0 5e-10
+)
+
 AddTest(
     NAME HeatTransportBHE_1U_beier_sandbox_fixed_power_constant_flow
     PATH Parabolic/T/3D_Beier_sandbox
@@ -40,6 +124,20 @@ AddTest(
     fixed_power_constant_flow_ts_10_t_600.000000.vtu fixed_power_constant_flow_ts_10_t_600.000000.vtu temperature_soil temperature_soil 0 1e-13
 )
 
+AddTest(
+    NAME HeatTransportBHE_1U_beier_sandbox_fixed_power_constant_flow_algebraicBC
+    PATH Parabolic/T/3D_Beier_sandbox
+    RUNTIME 220
+    EXECUTABLE ogs
+    EXECUTABLE_ARGS fixed_power_constant_flow_algebraicBC.xml
+    WRAPPER time
+    TESTER vtkdiff
+    REQUIREMENTS NOT OGS_USE_MPI
+    DIFF_DATA
+    fixed_power_constant_flow_ts_10_t_600.000000.vtu fixed_power_constant_flow_algebraic_bc_ts_10_t_600.000000.vtu temperature_BHE1 temperature_BHE1 0 1e-4
+    fixed_power_constant_flow_ts_10_t_600.000000.vtu fixed_power_constant_flow_algebraic_bc_ts_10_t_600.000000.vtu temperature_soil temperature_soil 0 5e-9
+)
+
 AddTest(
     NAME HeatTransportBHE_coaxial_pipe_3D_deep_BHE_CXA
     PATH Parabolic/T/3D_deep_BHE
diff --git a/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich.prj b/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich.prj
index 4723bb7b4bc..d07938d11ae 100644
--- a/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich.prj
+++ b/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich.prj
@@ -8,7 +8,6 @@
             <name>HeatTransportBHE</name>
             <type>HEAT_TRANSPORT_BHE</type>
             <integration_order>2</integration_order>
-            <use_algebraic_bc>false</use_algebraic_bc>
             <process_variables>
                 <process_variable>temperature_soil</process_variable>
                 <process_variable>temperature_BHE1</process_variable>
@@ -141,17 +140,17 @@
                 <convergence_criterion>
                     <type>DeltaX</type>
                     <norm_type>NORM2</norm_type>
-                    <reltol>1.e-6</reltol>
+                    <reltol>1.e-10</reltol>
                 </convergence_criterion>
                 <time_discretization><type>BackwardEuler</type></time_discretization>
                 <time_stepping>
                     <type>FixedTimeStepping</type>
                     <t_initial> 0.0 </t_initial>
-                    <t_end> 10800 </t_end>
+                    <t_end> 600 </t_end>
                     <timesteps>
                         <pair>
                             <repeat>1</repeat>
-                            <delta_t>3600</delta_t>
+                            <delta_t>60</delta_t>
                         </pair>
                     </timesteps>
                 </time_stepping>
diff --git a/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_algebraicBC.xml b/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_algebraicBC.xml
new file mode 100644
index 00000000000..5df447f6532
--- /dev/null
+++ b/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_algebraicBC.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<OpenGeoSysProjectDiff base_file="sandwich.prj">
+    <add sel="/*/processes/process">
+        <use_algebraic_bc>true</use_algebraic_bc>
+    </add>
+    <add sel="/*/processes/process">
+        <weighting_factor>100</weighting_factor>
+    </add>
+    <add sel="/*/processes/process">
+        <linear>true</linear>
+    </add>
+    <replace sel="/*/time_loop/output/prefix/text()">sandwich_algebraic_bc</replace>
+    <replace sel="/*/linear_solvers/linear_solver/eigen/solver_type/text()">CG</replace>
+    <replace sel="/*/linear_solvers/linear_solver/eigen/precon_type/text()">DIAGONAL</replace>
+</OpenGeoSysProjectDiff>
diff --git a/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_algBC.prj b/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_fixed_power.prj
similarity index 93%
rename from Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_algBC.prj
rename to Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_fixed_power.prj
index 5f3394c4a9b..99a3fc2be90 100644
--- a/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_algBC.prj
+++ b/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_fixed_power.prj
@@ -8,7 +8,6 @@
             <name>HeatTransportBHE</name>
             <type>HEAT_TRANSPORT_BHE</type>
             <integration_order>2</integration_order>
-            <use_algebraic_bc>true</use_algebraic_bc>
             <process_variables>
                 <process_variable>temperature_soil</process_variable>
                 <process_variable>temperature_BHE1</process_variable>
@@ -17,9 +16,9 @@
                 <borehole_heat_exchanger>
                     <type>1U</type>
                     <flow_and_temperature_control>
-                        <type>TemperatureCurveConstantFlow</type>
+                        <type>FixedPowerConstantFlow</type>
                         <flow_rate>1e-3</flow_rate>
-                        <temperature_curve>fluid_temperature</temperature_curve>
+                        <power>10</power>
                     </flow_and_temperature_control>
                     <borehole>
                         <length>3.0</length>
@@ -147,11 +146,11 @@
                 <time_stepping>
                     <type>FixedTimeStepping</type>
                     <t_initial> 0.0 </t_initial>
-                    <t_end> 10800 </t_end>
+                    <t_end> 600 </t_end>
                     <timesteps>
                         <pair>
-                            <repeat>1</repeat>
-                            <delta_t>3600</delta_t>
+                            <repeat>10</repeat>
+                            <delta_t>60</delta_t>
                         </pair>
                     </timesteps>
                 </time_stepping>
@@ -159,7 +158,7 @@
         </processes>
         <output>
             <type>VTK</type>
-            <prefix>sandwich</prefix>
+            <prefix>sandwich_fixed_power</prefix>
             <timesteps>
                 <pair>
                     <repeat> 1 </repeat>
@@ -229,15 +228,4 @@
             </petsc>
         </linear_solver>
     </linear_solvers>
-    <curves>
-        <curve>
-            <name>fluid_temperature</name>
-            <coords>
-            0  864000
-            </coords>
-            <values>
-            273.15 273.15
-            </values>
-        </curve>
-    </curves>
 </OpenGeoSysProject>
diff --git a/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_fixed_power_algebraicBC.xml b/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_fixed_power_algebraicBC.xml
new file mode 100644
index 00000000000..a39dedc70ac
--- /dev/null
+++ b/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_fixed_power_algebraicBC.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<OpenGeoSysProjectDiff base_file="sandwich_fixed_power.prj">
+    <add sel="/*/processes/process">
+        <use_algebraic_bc>true</use_algebraic_bc>
+    </add>
+    <add sel="/*/processes/process">
+        <weighting_factor>100</weighting_factor>
+    </add>
+    <add sel="/*/processes/process">
+        <linear>true</linear>
+    </add>
+    <replace sel="/*/time_loop/output/prefix/text()">sandwich_fixed_power_algebraic_bc</replace>
+    <replace sel="/*/linear_solvers/linear_solver/eigen/solver_type/text()">CG</replace>
+    <replace sel="/*/linear_solvers/linear_solver/eigen/precon_type/text()">DIAGONAL</replace>
+</OpenGeoSysProjectDiff>
diff --git a/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_fixed_power_ts_10_t_600.000000.vtu b/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_fixed_power_ts_10_t_600.000000.vtu
new file mode 100644
index 00000000000..58c13e2dc7c
--- /dev/null
+++ b/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_fixed_power_ts_10_t_600.000000.vtu
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<VTKFile type="UnstructuredGrid" version="1.0" byte_order="LittleEndian" header_type="UInt64" compressor="vtkZLibDataCompressor">
+  <UnstructuredGrid>
+    <FieldData>
+      <DataArray type="Int8" Name="OGS_VERSION" NumberOfTuples="5" format="appended" RangeMin="46"                   RangeMax="54"                   offset="0"                   />
+    </FieldData>
+    <Piece NumberOfPoints="12"                   NumberOfCells="6"                   >
+      <PointData>
+        <DataArray type="Float64" Name="temperature_BHE1" NumberOfComponents="4" format="appended" RangeMin="0"                    RangeMax="586.50506585"         offset="64"                  />
+        <DataArray type="Float64" Name="temperature_soil" format="appended" RangeMin="293.14993086"         RangeMax="293.15020812"         offset="276"                 />
+      </PointData>
+      <CellData>
+      </CellData>
+      <Points>
+        <DataArray type="Float64" Name="Points" NumberOfComponents="3" format="appended" RangeMin="0"                    RangeMax="3.1622776602"         offset="400"                 />
+      </Points>
+      <Cells>
+        <DataArray type="Int64" Name="connectivity" format="appended" RangeMin=""                     RangeMax=""                     offset="512"                 />
+        <DataArray type="Int64" Name="offsets" format="appended" RangeMin=""                     RangeMax=""                     offset="620"                 />
+        <DataArray type="UInt8" Name="types" format="appended" RangeMin=""                     RangeMax=""                     offset="696"                 />
+      </Cells>
+    </Piece>
+  </UnstructuredGrid>
+  <AppendedData encoding="base64">
+   _AQAAAAAAAAAAgAAAAAAAAAUAAAAAAAAADQAAAAAAAAA=eF4z0zPVMwIAAvgA+g==AQAAAAAAAAAAgAAAAAAAAIABAAAAAAAAfAAAAAAAAAA=eF6bIJF7e0ZokUPxa/nF04C0/+rfT2uCihxcKlZfBtEMFIL1zf+vzASa634pe9VUIK302PI9yNzzqytOUcP85ugn52cBzW3682TDFCD9KLbjB9hcW9uD1DDfuPLrydlAc0/nrNsxGUjvVDzHWAs09+UHwR3UMB8Aj3g/IQ==AQAAAAAAAAAAgAAAAAAAAGAAAAAAAAAAOwAAAAAAAAA=eF5Li1ngkB5U5HD//3PZNCD9DEp/WAsRv/cEwr8IpZutFoLFNbZB+EZQOo9hEVi8oQTCr4XSAJ2dKw8=AQAAAAAAAAAAgAAAAAAAACABAAAAAAAAMQAAAAAAAAA=eF5jYCAGfLDHz8cFcOlDp3GphwMHVC5cnQMaHwYcGLACDjRxmD6YOLo5HA4ArTYOng==AQAAAAAAAAAAgAAAAAAAAMAAAAAAAAAAMAAAAAAAAAA=eF5jYIAARijNBKWZoTQLlGYlIM4GpdmhNAcBcU4ozQWludHE2dBoZjQaBgAsKAB/AQAAAAAAAAAAgAAAAAAAADAAAAAAAAAAGAAAAAAAAAA=eF5jY4AAHigtBKVFoLQYlJaA0gAJcABnAQAAAAAAAAAAgAAAAAAAAAYAAAAAAAAADgAAAAAAAAA=eF7j5eVlZmYGAADbADE=
+  </AppendedData>
+</VTKFile>
diff --git a/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_newton.xml b/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_newton.xml
new file mode 100644
index 00000000000..073327ee73b
--- /dev/null
+++ b/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_newton.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<OpenGeoSysProjectDiff base_file="sandwich.prj">
+    <replace sel="/*/time_loop/processes/process/nonlinear_solver/text()">newton_nonlinear_solver</replace>
+    <replace sel="/*/time_loop/processes/process/convergence_criterion/type/text()">Residual</replace>
+    <replace sel="/*/time_loop/output/prefix/text()">sandwich_newton</replace>
+    <replace sel="/*/nonlinear_solvers/nonlinear_solver/name/text()">newton_nonlinear_solver</replace>
+    <replace sel="/*/nonlinear_solvers/nonlinear_solver/type/text()">Newton</replace>
+    <replace sel="/*/nonlinear_solvers/nonlinear_solver/max_iter/text()">10</replace>
+</OpenGeoSysProjectDiff>
diff --git a/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_ts_10_t_600.000000.vtu b/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_ts_10_t_600.000000.vtu
new file mode 100644
index 00000000000..cbe4bc0f70b
--- /dev/null
+++ b/Tests/Data/Parabolic/T/3D_BHE_Sandwich/sandwich_ts_10_t_600.000000.vtu
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<VTKFile type="UnstructuredGrid" version="1.0" byte_order="LittleEndian" header_type="UInt64" compressor="vtkZLibDataCompressor">
+  <UnstructuredGrid>
+    <FieldData>
+      <DataArray type="Int8" Name="OGS_VERSION" NumberOfTuples="5" format="appended" RangeMin="46"                   RangeMax="54"                   offset="0"                   />
+    </FieldData>
+    <Piece NumberOfPoints="12"                   NumberOfCells="6"                   >
+      <PointData>
+        <DataArray type="Float64" Name="temperature_BHE1" NumberOfComponents="4" format="appended" RangeMin="0"                    RangeMax="565.91439316"         offset="64"                  />
+        <DataArray type="Float64" Name="temperature_soil" format="appended" RangeMin="293.11463784"         RangeMax="293.16174145"         offset="276"                 />
+      </PointData>
+      <CellData>
+      </CellData>
+      <Points>
+        <DataArray type="Float64" Name="Points" NumberOfComponents="3" format="appended" RangeMin="0"                    RangeMax="3.1622776602"         offset="408"                 />
+      </Points>
+      <Cells>
+        <DataArray type="Int64" Name="connectivity" format="appended" RangeMin=""                     RangeMax=""                     offset="520"                 />
+        <DataArray type="Int64" Name="offsets" format="appended" RangeMin=""                     RangeMax=""                     offset="628"                 />
+        <DataArray type="UInt8" Name="types" format="appended" RangeMin=""                     RangeMax=""                     offset="704"                 />
+      </Cells>
+    </Piece>
+  </UnstructuredGrid>
+  <AppendedData encoding="base64">
+   _AQAAAAAAAAAAgAAAAAAAAAUAAAAAAAAADQAAAAAAAAA=eF4z0zPVMwIAAvgA+g==AQAAAAAAAAAAgAAAAAAAAIABAAAAAAAAfAAAAAAAAAA=eF47P8/gU6hwocN5KO1zw/+ghFuRw2GPokMgmoFC8KCyx5MNaG5NpmrHUiBtL3+6WARo7jKfIj5ZKphfYvrGdJtQoYOvFHPSV6D53//tlBMAmisify1OkQrmp4EA0PyyfwYXXUQKHVj8hc5xA82duWjrclUqmA8AKOsxSw==AQAAAAAAAAAAgAAAAAAAAGAAAAAAAAAAQQAAAAAAAAA=eF5b583RfzWwyGH6e9a6aUFFDj1QmkfxZx9IPO8bF5hfAKX3V58Ci5vmSIH5elBaXqQWLP5S2ATMvw6lAf4DKNs=AQAAAAAAAAAAgAAAAAAAACABAAAAAAAAMQAAAAAAAAA=eF5jYCAGfLDHz8cFcOlDp3GphwMHVC5cnQMaHwYcGLACDjRxmD6YOLo5HA4ArTYOng==AQAAAAAAAAAAgAAAAAAAAMAAAAAAAAAAMAAAAAAAAAA=eF5jYIAARijNBKWZoTQLlGYlIM4GpdmhNAcBcU4ozQWludHE2dBoZjQaBgAsKAB/AQAAAAAAAAAAgAAAAAAAADAAAAAAAAAAGAAAAAAAAAA=eF5jY4AAHigtBKVFoLQYlJaA0gAJcABnAQAAAAAAAAAAgAAAAAAAAAYAAAAAAAAADgAAAAAAAAA=eF7j5eVlZmYGAADbADE=
+  </AppendedData>
+</VTKFile>
diff --git a/Tests/Data/Parabolic/T/3D_Beier_sandbox/beier_sandbox_algebraicBC.xml b/Tests/Data/Parabolic/T/3D_Beier_sandbox/beier_sandbox_algebraicBC.xml
index 88cd1163817..b0ee68e555c 100644
--- a/Tests/Data/Parabolic/T/3D_Beier_sandbox/beier_sandbox_algebraicBC.xml
+++ b/Tests/Data/Parabolic/T/3D_Beier_sandbox/beier_sandbox_algebraicBC.xml
@@ -3,6 +3,9 @@
     <add sel="/*/processes/process">
         <use_algebraic_bc>true</use_algebraic_bc>
     </add>
+    <add sel="/*/processes/process">
+        <weighting_factor>100</weighting_factor>
+    </add>
     <add sel="/*/processes/process">
         <linear>true</linear>
     </add>
diff --git a/Tests/Data/Parabolic/T/3D_Beier_sandbox/fixed_power_constant_flow_algebraicBC.xml b/Tests/Data/Parabolic/T/3D_Beier_sandbox/fixed_power_constant_flow_algebraicBC.xml
index 32bc9334451..963f9fa17a1 100644
--- a/Tests/Data/Parabolic/T/3D_Beier_sandbox/fixed_power_constant_flow_algebraicBC.xml
+++ b/Tests/Data/Parabolic/T/3D_Beier_sandbox/fixed_power_constant_flow_algebraicBC.xml
@@ -3,6 +3,9 @@
     <add sel="/*/processes/process">
         <use_algebraic_bc>true</use_algebraic_bc>
     </add>
+    <add sel="/*/processes/process">
+        <weighting_factor>100</weighting_factor>
+    </add>
     <add sel="/*/processes/process">
         <linear>true</linear>
     </add>
-- 
GitLab