Skip to content

Commit 0bdb326

Browse files
committed
Harden triangular subchannel point classification Refs #32847
1 parent 21e0bb2 commit 0bdb326

20 files changed

Lines changed: 157 additions & 56 deletions

File tree

modules/combined/test/tests/subchannel_thm_coupling/subchannel.i

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,14 @@ heated_length = 1.0
264264
[Transfers]
265265
[subchannel_transfer]
266266
type = SCMSolutionTransfer
267+
transfer_type = subchannel
267268
to_multi_app = viz
268269
variable = 'mdot SumWij P DP h T rho mu S'
269270
[]
270271
[pin_transfer]
271-
type = SCMPinSolutionTransfer
272+
type = SCMSolutionTransfer
273+
transfer_type = pin
272274
to_multi_app = viz
273-
variable = 'Dpin Tpin q_prime'
275+
variable = 'Tpin q_prime Dpin'
274276
[]
275277
[]

modules/subchannel/src/mesh/TriSubChannelMesh.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,14 @@ TriSubChannelMesh::channelIndex(const Point & p) const
111111
j = i;
112112
distance0 = distance1;
113113
} // if
114-
} // if
114+
} // if
115115
// If subchannel belongs to outer ring
116116
else
117117
{
118118
if ((distance1 < distance0) &&
119119
(_subch_type[i] == EChannelType::EDGE || _subch_type[i] == EChannelType::CORNER))
120120
{
121-
if ((x_coord_new > x_lim || x_coord_new < -x_lim) &&
121+
if (((x_coord_new > x_lim) || (x_coord_new < -x_lim)) &&
122122
_subch_type[i] == EChannelType::CORNER)
123123
{
124124
j = i;

modules/subchannel/src/meshgenerators/SCMDetailedTriAssemblyMeshGenerator.C

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,6 @@ SCMDetailedTriAssemblyMeshGenerator::SCMDetailedTriAssemblyMeshGenerator(
300300
_subchannel_position[i][0] = (a2 * x1 - a1 * x0) / (a2 - a1);
301301
_subchannel_position[i][1] = (a2 * y1 - a1 * y0) / (a2 - a1);
302302
}
303-
304303
}
305304
}
306305

@@ -395,19 +394,9 @@ SCMDetailedTriAssemblyMeshGenerator::generate()
395394
}
396395

397396
// specify number and type of sub-channel
398-
unsigned int n_center, n_side, n_corner;
399-
if (_n_rings == 1)
400-
{
401-
n_corner = 6;
402-
n_side = 0;
403-
n_center = _n_channels - n_side - n_corner;
404-
}
405-
else
406-
{
407-
n_corner = 6;
408-
n_side = (_n_rings - 1) * 6;
409-
n_center = _n_channels - n_side - n_corner;
410-
}
397+
unsigned int n_corner = 6;
398+
unsigned int n_side = (_n_rings - 1) * 6;
399+
unsigned int n_center = _n_channels - n_side - n_corner;
411400
if (_verbose)
412401
{
413402
_console << "Centers: " << n_center << std::endl;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
time,center,corner,edge
2+
0,0,0,0
3+
1,0.050228153696915,0.047557038424229,0.050114076848457
-42.9 KB
Binary file not shown.

modules/subchannel/test/tests/ics/quad_flow_area/test.i

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,30 @@
2525
[]
2626
[]
2727

28+
[Postprocessors]
29+
[center]
30+
type = SubChannelPointValue
31+
variable = S
32+
index = 4
33+
execute_on = 'timestep_end'
34+
height = 0.5
35+
[]
36+
[edge]
37+
type = SubChannelPointValue
38+
variable = S
39+
index = 1
40+
execute_on = 'timestep_end'
41+
height = 0.5
42+
[]
43+
[corner]
44+
type = SubChannelPointValue
45+
variable = S
46+
index = 0
47+
execute_on = 'timestep_end'
48+
height = 0.5
49+
[]
50+
[]
51+
2852
[Problem]
2953
solve = false
3054
[]
@@ -34,5 +58,6 @@
3458
[]
3559

3660
[Outputs]
37-
exodus = true
61+
exodus = false
62+
csv = true
3863
[]

modules/subchannel/test/tests/ics/quad_flow_area/tests

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
design = 'SCMQuadFlowAreaIC.md'
33
issues = '#29194'
44
[test]
5-
type = Exodiff
5+
type = CSVDiff
6+
csvdiff = test_out.csv
7+
capabilities = 'method!=dbg'
8+
valgrind = NONE
9+
recover = false
10+
abs_zero = 1e-6
11+
max_threads = 1
612
input = 'test.i'
7-
exodiff = 'test_out.e'
8-
recover = False
913
requirement = 'The system will calculate the subchannel flow area for quadrilateral assemblies'
1014
[]
1115
[]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
time,center,corner,edge
2+
0,0,0,0
3+
1,0.39269908169872,0.54817477042468,0.44634954084936
Binary file not shown.

modules/subchannel/test/tests/ics/quad_wetted_perimeter/test.i

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,30 @@
2525
[]
2626
[]
2727

28+
[Postprocessors]
29+
[center]
30+
type = SubChannelPointValue
31+
variable = w_perim
32+
index = 4
33+
execute_on = 'timestep_end'
34+
height = 0.5
35+
[]
36+
[edge]
37+
type = SubChannelPointValue
38+
variable = w_perim
39+
index = 1
40+
execute_on = 'timestep_end'
41+
height = 0.5
42+
[]
43+
[corner]
44+
type = SubChannelPointValue
45+
variable = w_perim
46+
index = 0
47+
execute_on = 'timestep_end'
48+
height = 0.5
49+
[]
50+
[]
51+
2852
[Problem]
2953
solve = false
3054
[]
@@ -34,5 +58,6 @@
3458
[]
3559

3660
[Outputs]
37-
exodus = true
61+
exodus = false
62+
csv = true
3863
[]

0 commit comments

Comments
 (0)