forked from idaholab/moose
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
override functions in ElementIDInterface for materials idaholab#16005
- Loading branch information
Showing
7 changed files
with
188 additions
and
4 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
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
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
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,117 @@ | ||
[Mesh] | ||
[gmg] | ||
type = GeneratedMeshGenerator | ||
dim = 2 | ||
xmin = 0 | ||
xmax = 1 | ||
ymin = 0 | ||
ymax = 1 | ||
nx = 5 | ||
ny = 5 | ||
extra_element_integers = 'material_id' | ||
[] | ||
[set_material_id0] | ||
type = SubdomainBoundingBoxGenerator | ||
input = gmg | ||
bottom_left = '0 0 0' | ||
top_right = '0.8 0.6 0' | ||
block_id = 0 | ||
location = INSIDE | ||
integer_name = material_id | ||
[] | ||
[set_material_id1] | ||
type = SubdomainBoundingBoxGenerator | ||
input = set_material_id0 | ||
bottom_left = '0 0 0' | ||
top_right = '0.8 0.6 0' | ||
block_id = 1 | ||
location = OUTSIDE | ||
integer_name = material_id | ||
[] | ||
[] | ||
|
||
[Variables] | ||
[u] | ||
family = L2_LAGRANGE | ||
order = FIRST | ||
[] | ||
[] | ||
|
||
[Kernels] | ||
[diff] | ||
type = MatDiffusion | ||
variable = u | ||
diffusivity = dc | ||
[] | ||
[timederivative] | ||
type = TimeDerivative | ||
variable = u | ||
[] | ||
[sourceterm] | ||
type = BodyForce | ||
variable = u | ||
function = 1 | ||
[] | ||
[] | ||
|
||
[DGKernels] | ||
[dg_diff] | ||
type = DGDiffusion | ||
variable = u | ||
diff = dc | ||
epsilon = -1 | ||
sigma = 6 | ||
[] | ||
[] | ||
|
||
[AuxVariables] | ||
[id] | ||
family = MONOMIAL | ||
order = CONSTANT | ||
[] | ||
[] | ||
|
||
[AuxKernels] | ||
[id] | ||
type = ElementIntegerAux | ||
variable = id | ||
integer_names = material_id | ||
[] | ||
[] | ||
|
||
[BCs] | ||
[vacuum] | ||
type = VacuumBC | ||
variable = u | ||
boundary = 'right left top bottom' | ||
[] | ||
[] | ||
|
||
[Materials] | ||
[dc] | ||
type = ConstantIDMaterial | ||
prop_name = dc | ||
prop_values = '1 2' | ||
id_name = material_id | ||
[] | ||
[] | ||
|
||
[Postprocessors] | ||
[unorm] | ||
type = ElementL2Norm | ||
variable = u | ||
[] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
|
||
end_time = 0.1 | ||
dt = 0.01 | ||
nl_abs_tol = 1.e-15 | ||
[] | ||
|
||
[Outputs] | ||
execute_on = 'timestep_end' | ||
exodus = true | ||
[] |
Binary file not shown.
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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
[Mesh] | ||
type = MeshGeneratorMesh | ||
|
||
[gmg] | ||
type = GeneratedMeshGenerator | ||
dim = 2 | ||
|
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 |
---|---|---|
@@ -1,10 +1,17 @@ | ||
[Tests] | ||
issues = '#13764' | ||
design = 'syntax/Mesh/index.md' | ||
[./mesh_integer] | ||
type = 'Exodiff' | ||
input = 'mesh_integer.i' | ||
exodiff = 'mesh_integer_out.e' | ||
issues = '#13764' | ||
requirement = "MOOSE shall include the ability to use extra element integers." | ||
[../] | ||
[./dg_mesh_integer] | ||
type = 'Exodiff' | ||
input = 'mesh_integer.i' | ||
exodiff = 'mesh_integer_out.e' | ||
issues = '#16005' | ||
requirement = "MOOSE shall include the ability to use extra element integers." | ||
[../] | ||
[] |