Skip to content

Commit

Permalink
hit formatting of melt pool heat input files
Browse files Browse the repository at this point in the history
  • Loading branch information
Armando Pabon committed Jul 9, 2024
1 parent 542f440 commit e463707
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 35 deletions.
40 changes: 23 additions & 17 deletions test/tests/melt_pool_heat/heat.i
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
[Mesh/gen]
type = GeneratedMeshGenerator
dim = 2
xmin = 0
xmax = 1
ymin = 0
ymax = 1
nx = 40
ny = 40
elem_type = QUAD4
[Mesh]
[gen]
type = GeneratedMeshGenerator
dim = 2
xmin = 0
xmax = 1
ymin = 0
ymax = 1
nx = 40
ny = 40
elem_type = QUAD4
[]
[]

[ICs]
Expand All @@ -27,14 +29,18 @@
[]
[]

[AuxVariables/ls]
[AuxVariables]
[ls]
[]
[]

[Functions/ls_exact]
type = LevelSetOlssonPlane
epsilon = 0.04
point = '0.5 0.5 0'
normal = '0 1 0'
[Functions]
[ls_exact]
type = LevelSetOlssonPlane
epsilon = 0.04
point = '0.5 0.5 0'
normal = '0 1 0'
[]
[]

[Kernels]
Expand Down Expand Up @@ -78,7 +84,7 @@
[Materials]
[thermal]
type = ADGenericConstantMaterial
prop_names = 'rho thermal_conductivity specific_heat melt_pool_mass_rate'
prop_names = 'rho thermal_conductivity specific_heat melt_pool_mass_rate'
prop_values = '8000 50 500 0'
[]
[delta]
Expand Down
40 changes: 22 additions & 18 deletions test/tests/melt_pool_heat/thermal_material.i
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
[Mesh/gen]
type = GeneratedMeshGenerator
dim = 2
xmin = 0
xmax = 1
ymin = 0
ymax = 1
nx = 40
ny = 40
elem_type = QUAD4
[Mesh]
[gen]
type = GeneratedMeshGenerator
dim = 2
xmin = 0
xmax = 1
ymin = 0
ymax = 1
nx = 40
ny = 40
elem_type = QUAD4
[]
[]

[ICs]
Expand All @@ -32,19 +34,21 @@
[]
[]

[Functions/ls_exact]
type = LevelSetOlssonPlane
epsilon = 0.04
point = '0.5 0.5 0'
normal = '0 1 0'
[Functions]
[ls_exact]
type = LevelSetOlssonPlane
epsilon = 0.04
point = '0.5 0.5 0'
normal = '0 1 0'
[]
[]

[Kernels]
[./grad_ls]
[grad_ls]
type = VariableGradientRegularization
regularized_var = ls
variable = grad_ls
[../]
[]

[heat_time]
type = ADHeatConductionTimeDerivative
Expand Down Expand Up @@ -100,7 +104,7 @@
[]
[rho]
type = ADGenericConstantMaterial
prop_names = 'rho melt_pool_mass_rate'
prop_names = 'rho melt_pool_mass_rate'
prop_values = '8000 0'
[]
[heaviside]
Expand Down

0 comments on commit e463707

Please sign in to comment.