Skip to content

Commit

Permalink
Once around circle simulation
Browse files Browse the repository at this point in the history
- Move the laser spot in a parametric circle
- Fluid surface starts at 3000 K
  • Loading branch information
lindsayad authored and cticenhour committed Dec 5, 2018
1 parent 506fc13 commit bc1125c
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions test/tests/kc/kc.i
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
period=4e-5
timestep=4e-7

[GlobalParams]
gravity = '0 0 0'
pspg = true
Expand Down Expand Up @@ -47,10 +50,6 @@
[../]

[./T]
[./InitialCondition]
type = ConstantIC
value = 300
[../]
[../]

[./p]
Expand All @@ -63,6 +62,14 @@
[../]
[]

[ICs]
[./T]
type = FunctionIC
variable = T
function = '(3000 - 300) / .7e-3 * z + 3000'
[../]
[]

[Kernels]
[./disp_x]
type = Diffusion
Expand Down Expand Up @@ -256,8 +263,8 @@
reff = 0.6
F0 = 2.546e9
R = 1e-4
x_beam_coord = '1e-4 * sin(t * 2 * pi / 2e-5)'
y_beam_coord = 0
x_beam_coord = '2e-4 * cos(t * 2 * pi / ${period})'
y_beam_coord = '2e-4 * sin(t * 2 * pi / ${period})'
z_beam_coord = 0
use_displaced_mesh = true
[../]
Expand Down Expand Up @@ -337,8 +344,9 @@

[Executioner]
type = Transient
end_time = 5e-4
end_time = ${period}
dtmin = 1e-8
dtmax = ${timestep}
petsc_options = '-snes_converged_reason -ksp_converged_reason -options_left -ksp_monitor_singular_value'
petsc_options_iname = '-ksp_gmres_restart -pc_type'
petsc_options_value = '100 asm'
Expand All @@ -348,9 +356,10 @@
l_max_its = 100
[./TimeStepper]
type = IterationAdaptiveDT
optimal_iterations = 6
dt = 1e-6
optimal_iterations = 7
dt = ${timestep}
linear_iteration_ratio = 1e6
growth_factor = 1.5
[../]
[]

Expand Down Expand Up @@ -440,8 +449,8 @@
# [../]
[./errorfrac_T]
type = ErrorFractionMarker
refine = 0.7
coarsen = 0.3
refine = 0.5
coarsen = 0.2
indicator = error_T
[../]
# [./errorfrac_dispx]
Expand All @@ -458,8 +467,8 @@
# [../]
[./errorfrac_dispz]
type = ErrorFractionMarker
refine = 0.7
coarsen = 0.3
refine = 0.5
coarsen = 0.2
indicator = error_dispz
[../]
[./combo]
Expand Down

0 comments on commit bc1125c

Please sign in to comment.