This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added temporally scale heat equation which is tested against the orig…
…inal problem that is not scaled
- Loading branch information
1 parent
8d811c9
commit 35616ba
Showing
6 changed files
with
165 additions
and
5 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
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,130 @@ | ||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 2 | ||
nx = 15 | ||
ny = 15 | ||
uniform_refine = 1 | ||
elem_type = QUAD8 | ||
[] | ||
|
||
[Variables] | ||
[./T] | ||
order = SECOND | ||
[../] | ||
[] | ||
|
||
[AuxVariables] | ||
[./phi] | ||
order = SECOND | ||
[../] | ||
[./abs_error] | ||
[../] | ||
[] | ||
|
||
[Functions] | ||
[./phi_func] | ||
type = ParsedFunction | ||
value = -t*(x*y)*(x*y) | ||
[../] | ||
[./T_func] | ||
type = ParsedFunction | ||
value = t*sin(2.0*pi*x)*sin(2.0*pi*y) | ||
[../] | ||
[] | ||
|
||
[Kernels] | ||
[./T_time] | ||
type = PikaTimeDerivative | ||
variable = T | ||
property = heat_capacity | ||
block = 0 | ||
scale = 1.0 | ||
[../] | ||
[./T_diff] | ||
type = PikaScaledMatDiffusion | ||
variable = T | ||
block = 0 | ||
diffusivity = conductivity | ||
[../] | ||
[./mms] | ||
type = HeatEquationSourceMMS | ||
variable = T | ||
phase_variable = phi | ||
block = 0 | ||
[../] | ||
[./phi_time] | ||
type = PikaScaledTimeDerivative | ||
variable = T | ||
scale = -0.5 | ||
differentiated_variable = phi | ||
property = latent_heat | ||
[../] | ||
[] | ||
|
||
[AuxKernels] | ||
[./phi_kernel] | ||
type = FunctionAux | ||
variable = phi | ||
function = phi_func | ||
[../] | ||
[./error_aux] | ||
type = ErrorFunctionAux | ||
variable = abs_error | ||
function = T_func | ||
solution_variable = T | ||
[../] | ||
[] | ||
|
||
[BCs] | ||
[./all] | ||
type = FunctionDirichletBC | ||
variable = T | ||
boundary = 'bottom left right top' | ||
function = T_func | ||
[../] | ||
[] | ||
|
||
[PikaMaterials] | ||
phi = phi | ||
temperature = T | ||
temporal_scaling = 1e-4 | ||
[] | ||
|
||
[Postprocessors] | ||
[./L2_errror] | ||
type = ElementL2Error | ||
variable = T | ||
function = T_func | ||
[../] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
num_steps = 2 | ||
dt = .1 | ||
[] | ||
|
||
[Outputs] | ||
active = '' | ||
output_initial = true | ||
exodus = true | ||
[./oversample] | ||
refinements = 2 | ||
oversample = true | ||
type = Exodus | ||
[../] | ||
[] | ||
|
||
[ICs] | ||
[./T_ic] | ||
function = T_func | ||
variable = T | ||
type = FunctionIC | ||
[../] | ||
[./phi_ic] | ||
function = phi_func | ||
variable = phi | ||
type = FunctionIC | ||
[../] | ||
[] | ||
|
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