Skip to content

Commit f434031

Browse files
committed
Add a component physics version of ver 1fb
refs idaholab#8
1 parent 4706fe4 commit f434031

File tree

3 files changed

+79
-0
lines changed

3 files changed

+79
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ver-1fb_out.e

test/tests/ver-1fb/tests

+7
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,11 @@
4646
requirement = 'The system shall be able to generate comparison plots between the analytical solution and simulated solution of verification case 1fb, modeling thermal transient in a slab with fixed temperatures at both the ends.'
4747
required_python_packages = 'matplotlib numpy pandas os'
4848
[]
49+
[thermal_transient_physics]
50+
type = Exodiff
51+
input = ver-1fb-physics.i
52+
exodiff = ver-1fb-physics_out.e
53+
requirement = 'The system shall be able to model thermal transient in a slab that has temperatures fixed at both the ends using the component and physics syntax.'
54+
verification = 'ver-1fb.md'
55+
[]
4956
[]

test/tests/ver-1fb/ver-1fb-physics.i

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
[Mesh]
2+
type = GeneratedMesh
3+
dim = 1
4+
xmax = 4.0
5+
nx = 20
6+
[]
7+
8+
[Physics]
9+
[HeatConduction]
10+
[FiniteElement]
11+
[h1]
12+
temperature_name = 'temp'
13+
14+
initial_temperature = 300
15+
16+
# Thermal properties
17+
thermal_conductivity = 'thermal_conductivity'
18+
19+
# Boundary conditions
20+
fixed_temperature_boundaries = 'right left'
21+
boundary_temperatures = '300 400'
22+
[]
23+
[]
24+
[]
25+
[]
26+
27+
[Materials]
28+
[diffusivity]
29+
type = ADGenericConstantMaterial
30+
prop_names = 'density thermal_conductivity specific_heat'
31+
prop_values = '1.0 10.0 10.0' # arbitrary values for diffusivity (=k/rho-Cp) to be 1.0
32+
[]
33+
[]
34+
35+
[Preconditioning]
36+
[SMP]
37+
type = SMP
38+
full = true
39+
[]
40+
[]
41+
42+
[Executioner]
43+
type = Transient
44+
scheme = bdf2
45+
solve_type = PJFNK
46+
petsc_options_iname = '-pc_type -ksp_grmres_restart -sub_ksp_type -sub_pc_type -pc_asm_overlap'
47+
petsc_options_value = 'asm 101 preonly ilu 1'
48+
nl_rel_tol = 1e-8
49+
nl_abs_tol = 1e-10
50+
l_tol = 1e-4
51+
dt = 0.01
52+
end_time = 10
53+
automatic_scaling = true
54+
[]
55+
56+
[VectorPostprocessors]
57+
[line]
58+
type = LineValueSampler
59+
start_point = '0 0 0'
60+
end_point = '4.0 0 0'
61+
num_points = 40
62+
sort_by = 'x'
63+
variable = temp
64+
[]
65+
[]
66+
67+
[Outputs]
68+
#execute_on = FINAL
69+
exodus = true
70+
csv = false
71+
[]

0 commit comments

Comments
 (0)