Skip to content

Commit

Permalink
Organize input files
Browse files Browse the repository at this point in the history
  • Loading branch information
lindsayad authored and cticenhour committed Jan 8, 2019
1 parent c928a6d commit e0500fb
Show file tree
Hide file tree
Showing 13 changed files with 902 additions and 42 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
endtime=500
timestep=.5
surfacetemp=.3
bottomtemp=.3
pooldepth=2

[GlobalParams]
gravity = '0 0 0'
pspg = true
supg = true
# supg = true
laplace = true
integrate_p_by_parts = true
convective_term = true
transient_term = true
temperature = T
order = FIRST
[]

[Mesh]
Expand All @@ -24,60 +26,45 @@ pooldepth=2
nx = 4
ny = 1
displacements = 'disp_x disp_y'
elem_type = QUAD9
uniform_refine = 1
uniform_refine = 4
[]

[Problem]
kernel_coverage_check = false
[]

[AuxVariables]
[./random]
[../]
[]

[Variables]
[./vel_x]
order = SECOND
[./InitialCondition]
type = ConstantIC
value = 1e-15
[../]
[../]

[./vel_y]
order = SECOND
[./InitialCondition]
type = ConstantIC
value = 1e-15
[../]
[../]

[./T]
order = SECOND
[../]

[./p]
# order = SECOND
order = FIRST
[../]
[./disp_x]
order = SECOND
[../]
[./disp_y]
order = SECOND
[../]
[]

[ICs]
[./T]
type = FunctionIC
variable = T
function = '(${surfacetemp} - .3) / ${pooldepth} * z + ${surfacetemp}'
[../]
[./random]
type = RandomIC
variable = random
function = '(${surfacetemp} - ${bottomtemp}) / ${pooldepth} * z + ${surfacetemp}'
[../]
[]

Expand Down Expand Up @@ -210,7 +197,7 @@ pooldepth=2
type = DirichletBC
variable = T
boundary = 'bottom'
value = .3
value = ${bottomtemp}
[../]
[]

Expand All @@ -219,7 +206,7 @@ pooldepth=2
type = RadiationEnergyFluxBC
variable = T
boundary = 'top'
ff_temp = .3
ff_temp = ${bottomtemp}
sb_constant = 'sb_constant'
absorptivity = 'abs'
use_displaced_mesh = true
Expand Down Expand Up @@ -310,7 +297,7 @@ pooldepth=2
[./const]
type = GenericConstantMaterial
prop_names = 'abs sb_constant'
prop_values = '1 5.67e3'
prop_values = '1 5.67e-5'
[../]
[]

Expand All @@ -326,10 +313,10 @@ pooldepth=2
type = Transient
end_time = ${endtime}
dtmin = 1e-3
num_steps = 1
num_steps = 12
petsc_options = '-snes_converged_reason -ksp_converged_reason -options_left -ksp_monitor_singular_value'
petsc_options_iname = '-ksp_max_it -ksp_gmres_restart -pc_type -sub_pc_factor_levels'
petsc_options_value = '1000 200 asm 1'
petsc_options_iname = '-ksp_max_it -ksp_gmres_restart -pc_type'
petsc_options_value = '1000 200 asm'

line_search = 'none'
nl_max_its = 12
Expand Down Expand Up @@ -363,14 +350,11 @@ pooldepth=2


[Adaptivity]
# marker = combo
marker = errorfrac_random
max_h_level = 1
marker = combo
max_h_level = 5
initial_steps = 0

[./Indicators]
# active = 'error_x error_y error_T error_dispx error_dispy'
active = 'random_indicator'
[./error_x]
type = GradientJumpIndicator
variable = vel_x
Expand All @@ -395,15 +379,9 @@ pooldepth=2
type = GradientJumpIndicator
variable = disp_y
[../]
[./random_indicator]
type = ElementIntegralIndicator
variable = random
[../]
[../]

[./Markers]
# active = 'errorfrac_x errorfrac_y errorfrac_T errorfrac_dispx errorfrac_dispy combo'
active = 'errorfrac_random'
[./errorfrac_x]
type = ErrorFractionMarker
refine = 0.4
Expand Down Expand Up @@ -444,12 +422,6 @@ pooldepth=2
type = ComboMarker
markers = 'errorfrac_x errorfrac_y errorfrac_T errorfrac_dispx errorfrac_dispy'
[../]
[./errorfrac_random]
type = ErrorFractionMarker
refine = 0.4
coarsen = 0.2
indicator = random_indicator
[../]
[../]
[]

Expand Down
Loading

0 comments on commit e0500fb

Please sign in to comment.