-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29668 from GiudGiud/PR_component_mesh
Add a clean error on adding components with a regular / mesh generated mesh
- Loading branch information
Showing
3 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
modules/thermal_hydraulics/test/tests/misc/mesh_block_interaction/test.i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 1 | ||
nx = 1 | ||
[] | ||
|
||
[Variables] | ||
[u] | ||
[] | ||
[] | ||
|
||
[Kernels] | ||
[diff] | ||
type = CoefDiffusion | ||
variable = u | ||
coef = 0.1 | ||
[] | ||
[time] | ||
type = TimeDerivative | ||
variable = u | ||
[] | ||
[] | ||
|
||
[Components] | ||
[inlet] | ||
type = InletMassFlowRateTemperature1Phase | ||
input = 'iwst_pipe_1:in' | ||
m_dot = 1 | ||
T = 100 | ||
[] | ||
|
||
[iwst_pipe_1] | ||
type = FlowChannel1Phase | ||
position = '0 0 0' | ||
orientation = '0 1 0' | ||
length = 10 | ||
n_elems = 15 | ||
A = 1 | ||
D_h = 1 | ||
[] | ||
|
||
[outlet] | ||
type = Outlet1Phase | ||
input = 'iwst_pipe_1:out' | ||
p = 1e5 | ||
[] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
dt = 0.1 | ||
num_steps = 10 | ||
abort_on_solve_fail = true | ||
[] |
10 changes: 10 additions & 0 deletions
10
modules/thermal_hydraulics/test/tests/misc/mesh_block_interaction/tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Tests] | ||
issues = '#29667' | ||
design = 'THMMesh.md' | ||
[no_components_and_mesh] | ||
type = 'RunException' | ||
input = 'test.i' | ||
requirement = 'The system shall error if using both a regular mesh, usually created in the Mesh syntax, and components, usually created in the Components syntax.' | ||
expect_err = "The Components block cannot be used to add a Component in conjunction with the Mesh block at this time" | ||
[] | ||
[] |