From 75a01aef023607b67b973aa73fcf256b6dcde077 Mon Sep 17 00:00:00 2001
From: renchao_lu <renchao.lu@gmail.com>
Date: Thu, 10 Oct 2019 21:55:14 +0200
Subject: [PATCH] [T] Assign boundary conditions via vtu files.

---
 .../TracerSimulation/BoundaryLeft.vtu            |  3 +++
 .../TracerSimulation/BoundaryRight.vtu           |  3 +++
 .../TracerSimulation/TracerSimulation.gml        |  3 ---
 .../TracerSimulation/TracerSimulation.prj        | 16 ++++++++--------
 .../TracerSimulation/TracerSimulation.vtu        |  4 ++--
 5 files changed, 16 insertions(+), 13 deletions(-)
 create mode 100644 Tests/Data/Parabolic/ComponentTransport/TracerSimulation/BoundaryLeft.vtu
 create mode 100644 Tests/Data/Parabolic/ComponentTransport/TracerSimulation/BoundaryRight.vtu
 delete mode 100644 Tests/Data/Parabolic/ComponentTransport/TracerSimulation/TracerSimulation.gml

diff --git a/Tests/Data/Parabolic/ComponentTransport/TracerSimulation/BoundaryLeft.vtu b/Tests/Data/Parabolic/ComponentTransport/TracerSimulation/BoundaryLeft.vtu
new file mode 100644
index 00000000000..69db22f0cbd
--- /dev/null
+++ b/Tests/Data/Parabolic/ComponentTransport/TracerSimulation/BoundaryLeft.vtu
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2e4ca7979b6a52855f832bd75477792f9f2445327c6ee83bd68d0d43d01985ae
+size 1987
diff --git a/Tests/Data/Parabolic/ComponentTransport/TracerSimulation/BoundaryRight.vtu b/Tests/Data/Parabolic/ComponentTransport/TracerSimulation/BoundaryRight.vtu
new file mode 100644
index 00000000000..b7d40347ae2
--- /dev/null
+++ b/Tests/Data/Parabolic/ComponentTransport/TracerSimulation/BoundaryRight.vtu
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c4096d8dee5430e7c6c74f734c18e9725902226c812a4282cabbfa1918e7d7fa
+size 2859
diff --git a/Tests/Data/Parabolic/ComponentTransport/TracerSimulation/TracerSimulation.gml b/Tests/Data/Parabolic/ComponentTransport/TracerSimulation/TracerSimulation.gml
deleted file mode 100644
index bf6dd69ac72..00000000000
--- a/Tests/Data/Parabolic/ComponentTransport/TracerSimulation/TracerSimulation.gml
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:1c2b00c5d4deb6e4f8e4780eb72d438abada593e2e0d331e3527e940405f46c0
-size 702
diff --git a/Tests/Data/Parabolic/ComponentTransport/TracerSimulation/TracerSimulation.prj b/Tests/Data/Parabolic/ComponentTransport/TracerSimulation/TracerSimulation.prj
index 22e5a201b94..7c309477ce6 100644
--- a/Tests/Data/Parabolic/ComponentTransport/TracerSimulation/TracerSimulation.prj
+++ b/Tests/Data/Parabolic/ComponentTransport/TracerSimulation/TracerSimulation.prj
@@ -1,7 +1,10 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <OpenGeoSysProject>
-    <mesh>TracerSimulation.vtu</mesh>
-    <geometry>TracerSimulation.gml</geometry>
+    <meshes>
+        <mesh>TracerSimulation.vtu</mesh>
+        <mesh>BoundaryLeft.vtu</mesh>
+        <mesh>BoundaryRight.vtu</mesh>
+    </meshes>
     <processes>
         <process>
             <name>hc</name>
@@ -233,14 +236,12 @@
             <initial_condition>p0</initial_condition>
             <boundary_conditions>
                 <boundary_condition>
-                    <geometrical_set>geometry</geometrical_set>
-                    <geometry>left</geometry>
+                    <mesh>BoundaryLeft</mesh>
                     <type>Neumann</type>
                     <parameter>p_Neumann_left</parameter>
                 </boundary_condition>
                 <boundary_condition>
-                    <geometrical_set>geometry</geometrical_set>
-                    <geometry>right</geometry>
+                    <mesh>BoundaryRight</mesh>
                     <type>Dirichlet</type>
                     <parameter>p_Dirichlet_right</parameter>
                 </boundary_condition>
@@ -253,8 +254,7 @@
             <initial_condition>c0</initial_condition>
             <boundary_conditions>
                 <boundary_condition>
-                    <geometrical_set>geometry</geometrical_set>
-                    <geometry>left</geometry>
+                    <mesh>BoundaryLeft</mesh>
                     <type>Dirichlet</type>
                     <parameter>c_Dirichlet_left</parameter>
                 </boundary_condition>
diff --git a/Tests/Data/Parabolic/ComponentTransport/TracerSimulation/TracerSimulation.vtu b/Tests/Data/Parabolic/ComponentTransport/TracerSimulation/TracerSimulation.vtu
index 02409115fee..b06c3f4304a 100644
--- a/Tests/Data/Parabolic/ComponentTransport/TracerSimulation/TracerSimulation.vtu
+++ b/Tests/Data/Parabolic/ComponentTransport/TracerSimulation/TracerSimulation.vtu
@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:31716dc187cb09943833193e11f056937eec5d839424950ab4874e6f68a74dc7
-size 177539
+oid sha256:67609616a2143ff58312407e4a8f6dff4f9d7454e013206905abfce0e7e8ba29
+size 142779
-- 
GitLab