Skip to content

Commit 7491755

Browse files
[arcane,tests] Ajoute test pour les sorties des constituants au format VtkHdf.
1 parent 64cce61 commit 7491755

File tree

2 files changed

+89
-0
lines changed

2 files changed

+89
-0
lines changed

arcane/ceapart/tests/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,10 @@ if (ARCANE_HAS_ACCELERATOR_API)
471471
"-We,ARCANE_MATERIAL_NEW_ITEM_INIT,2" "-We,ARCANE_USE_GENERIC_COPY_BETWEEN_PURE_AND_PARTIAL,2")
472472
arcane_add_test_sequential_host_and_accelerator(material_heat4_init3_accelerator "${ARCANE_TEST_PATH}/testMaterialHeat-4-opt15.arc" "-m 20"
473473
"-We,ARCANE_MATERIAL_NEW_ITEM_INIT,3" "-We,ARCANE_ALLENVCELL_FOR_RUNCOMMAND,1")
474+
if(HDF5_FOUND)
475+
arcane_add_test(material_heat2_vtkhdfv2 testMaterialHeat-2-vtkhdfv2.arc)
476+
endif()
477+
474478
endif()
475479

476480
###################
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<?xml version="1.0"?>
2+
<case codename="ArcaneTest" xml:lang="en" codeversion="1.0">
3+
<arcane>
4+
<title>Test MaterialHeat</title>
5+
<description>Test des Materiaux</description>
6+
<timeloop>MaterialHeatTestLoop</timeloop>
7+
</arcane>
8+
9+
<arcane-post-processing>
10+
<output-period>5</output-period>
11+
<format name="VtkHdfV2PostProcessor" />
12+
<output>
13+
<variable>Temperature</variable>
14+
</output>
15+
</arcane-post-processing>
16+
17+
<meshes>
18+
<mesh>
19+
<generator name="Cartesian2D">
20+
<nb-part-x>2</nb-part-x>
21+
<nb-part-y>2</nb-part-y>
22+
<origin>0.0 0.0</origin>
23+
<x><n>40</n><length>1.2</length><progression>1.0</progression></x>
24+
<y><n>60</n><length>1.5</length><progression>1.0</progression></y>
25+
</generator>
26+
</mesh>
27+
</meshes>
28+
29+
<material-heat-test>
30+
<nb-iteration>15</nb-iteration>
31+
<modification-flags>15</modification-flags>
32+
<check-numerical-result>false</check-numerical-result>
33+
<material>
34+
<name>MAT1</name>
35+
</material>
36+
<material>
37+
<name>MAT2</name>
38+
</material>
39+
<material>
40+
<name>MAT3</name>
41+
</material>
42+
43+
<environment>
44+
<name>ENV1</name>
45+
<material>MAT1</material>
46+
<material>MAT2</material>
47+
</environment>
48+
<environment>
49+
<name>ENV2</name>
50+
<material>MAT2</material>
51+
<material>MAT3</material>
52+
</environment>
53+
54+
<heat-object>
55+
<center>0.3 0.4 0.0</center>
56+
<velocity>0.02 0.04 0.0</velocity>
57+
<radius>0.18</radius>
58+
<material>ENV1_MAT1</material>
59+
<expected-final-temperature>3632937.10322508</expected-final-temperature>
60+
</heat-object>
61+
<heat-object>
62+
<center>0.8 0.4 0.0</center>
63+
<velocity>-0.02 0.04 0.0</velocity>
64+
<radius>0.25</radius>
65+
<material>ENV1_MAT2</material>
66+
<expected-final-temperature>7780818.83419631</expected-final-temperature>
67+
</heat-object>
68+
<heat-object>
69+
<center>0.2 1.2 0.0</center>
70+
<velocity>0.02 -0.05 0.0</velocity>
71+
<radius>0.2</radius>
72+
<material>ENV2_MAT2</material>
73+
<expected-final-temperature>4230364.18968662</expected-final-temperature>
74+
</heat-object>
75+
<heat-object>
76+
<center>0.9 0.9 0.0</center>
77+
<velocity>-0.02 -0.04 0.0</velocity>
78+
<radius>0.15</radius>
79+
<material>ENV2_MAT3</material>
80+
<expected-final-temperature>2259280.64283209</expected-final-temperature>
81+
</heat-object>
82+
83+
</material-heat-test>
84+
85+
</case>

0 commit comments

Comments
 (0)