forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
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 idaholab#26648 from tophmatthews/spheat_dt_26647
Add spheat and density deriv to heat conduction
- Loading branch information
Showing
7 changed files
with
165 additions
and
16 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
3 changes: 3 additions & 0 deletions
3
modules/heat_transfer/test/tests/transient_heat/gold/transient_heat_derivatives_out.csv
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,3 @@ | ||
time,avg | ||
0,0 | ||
0.1,1.810271319407 |
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,29 @@ | ||
[Tests] | ||
issues = '#7759' | ||
design = 'SpecificHeatConductionTimeDerivative.md' | ||
[./test] | ||
[transient_heat] | ||
type = 'Exodiff' | ||
input = 'transient_heat.i' | ||
exodiff = 'transient_heat_out.e' | ||
requirement = 'The system shall compute the time derivative term of the heat equation' | ||
[../] | ||
issues = '#7759' | ||
design = 'SpecificHeatConductionTimeDerivative.md' | ||
[] | ||
[transient_heat_derivatives] | ||
type = 'CSVDiff' | ||
input = 'transient_heat_derivatives.i' | ||
csvdiff = 'transient_heat_derivatives_out.csv' | ||
requirement = 'The system shall compute the time derivative term of the heat equation and ' | ||
'utilize the derivative of the specific heat, thermal conductivity, and density ' | ||
'to solve a heat conduction problem' | ||
issues = '#26647' | ||
design = 'HeatConductionTimeDerivative.md' | ||
[] | ||
[transient_heat_t_limit] | ||
type = 'RunException' | ||
input = 'transient_heat_derivatives.i' | ||
expect_err = 'is below min_T' | ||
cli_args = 'Materials/constant/min_T=10' | ||
requirement = 'The system shall use a lower temperature limit to compute the specific heat' | ||
issues = '#26647' | ||
design = 'HeatConductionTimeDerivative.md' | ||
[] | ||
[] |
98 changes: 98 additions & 0 deletions
98
modules/heat_transfer/test/tests/transient_heat/transient_heat_derivatives.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,98 @@ | ||
[Mesh] | ||
[gen] | ||
type = GeneratedMeshGenerator | ||
dim = 2 | ||
nx = 10 | ||
ny = 10 | ||
[] | ||
[] | ||
|
||
[Variables] | ||
[temp] | ||
order = FIRST | ||
family = LAGRANGE | ||
initial_condition = 2 | ||
[] | ||
[] | ||
|
||
[Kernels] | ||
[heat] | ||
type = HeatConduction | ||
variable = temp | ||
[] | ||
|
||
[ie] | ||
type = HeatConductionTimeDerivative | ||
variable = temp | ||
specific_heat_dT = specific_heat_dT | ||
density_name_dT = density_dT | ||
[] | ||
[] | ||
|
||
[Functions] | ||
[spheat] | ||
type = ParsedFunction | ||
expression = 't^4' | ||
[] | ||
[thcond] | ||
type = ParsedFunction | ||
expression = 'exp(t)' | ||
[] | ||
[] | ||
|
||
[BCs] | ||
[bottom] | ||
type = DirichletBC | ||
variable = temp | ||
boundary = 1 | ||
value = 4 | ||
[] | ||
|
||
[top] | ||
type = DirichletBC | ||
variable = temp | ||
boundary = 2 | ||
value = 1 | ||
[] | ||
[] | ||
|
||
[Materials] | ||
[constant] | ||
type = HeatConductionMaterial | ||
thermal_conductivity_temperature_function = thcond | ||
specific_heat_temperature_function = spheat | ||
temp = temp | ||
[] | ||
[density] | ||
type = ParsedMaterial | ||
property_name = density | ||
coupled_variables = temp | ||
expression = 'temp^3 + 2/temp' | ||
[] | ||
[density_dT] | ||
type = ParsedMaterial | ||
property_name = density_dT | ||
coupled_variables = temp | ||
expression = '3 * temp^2 - 2/temp/temp' | ||
[] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
solve_type = NEWTON | ||
num_steps = 1 | ||
dt = .1 | ||
nl_max_its = 10 | ||
dtmin = .1 | ||
[] | ||
|
||
[Postprocessors] | ||
[avg] | ||
type = ElementAverageValue | ||
variable = temp | ||
[] | ||
[] | ||
|
||
[Outputs] | ||
csv = true | ||
[] |