Skip to content

Commit

Permalink
Merge pull request #183 from lanl/Integrated_Tests_Updates
Browse files Browse the repository at this point in the history
Integrated tests updates
  • Loading branch information
nathanielmorgan authored Mar 22, 2024
2 parents 1542245 + df260ee commit 852f96a
Show file tree
Hide file tree
Showing 16 changed files with 21,845 additions and 21,427 deletions.
72 changes: 72 additions & 0 deletions integrated-tests/Test-scripts/MueLu_Thermal_3D_Params.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<ParameterList name="MueLu">

<!--
For 3D elasticity, these are the recommended settings for MueLu.
-->

<!-- =========== GENERAL ================ -->
<Parameter name="problem: type" type="string" value="Poisson-3D"/>

<Parameter name="verbosity" type="string" value="none"/>

<Parameter name="coarse: max size" type="int" value="2000"/>

<Parameter name="multigrid algorithm" type="string" value="sa"/>

<Parameter name="coarse: type" type="string" value="Klu2"/>

<!-- reduces setup cost for symmetric problems -->
<Parameter name="transpose: use implicit" type="bool" value="true"/>

<!-- start of default values for general options (can be omitted) -->
<Parameter name="max levels" type="int" value="10"/>
<Parameter name="number of equations" type="int" value="1"/>
<Parameter name="sa: use filtered matrix" type="bool" value="true"/>
<!-- end of default values -->

<!-- =========== AGGREGATION =========== -->
<Parameter name="aggregation: type" type="string" value="uncoupled"/>
<Parameter name="aggregation: drop scheme" type="string" value="classical"/>

<!-- =========== REUSE =========== -->
<Parameter name="reuse: type" type="string" value="S"/>
<!-- Uncomment the next line to enable dropping of weak connections, which can help AMG convergence
for anisotropic problems. The exact value is problem dependent. -->
<!-- <Parameter name="aggregation: drop tol" type="double" value="0.02"/> -->

<!-- =========== SMOOTHING ===========-->
<Parameter name="smoother: type" type="string" value="CHEBYSHEV"/>
<ParameterList name="smoother: params">
<Parameter name="chebyshev: degree" type="int" value="2"/>>
<Parameter name="chebyshev: ratio eigenvalue" type="double" value="7"/>
<Parameter name="chebyshev: min eigenvalue" type="double" value="1"/>
<Parameter name="chebyshev: zero starting solution" type="bool" value="true"/>
<Parameter name="chebyshev: eigenvalue max iterations" type="int" value="100"/>
</ParameterList>
<!-- =========== SMOOTHING ===========
<Parameter name="smoother: type" type="string" value="RELAXATION"/>
<ParameterList name="smoother: params">
<Parameter name="relaxation: type" type="string" value="Jacobi"/>
<Parameter name="relaxation: sweeps" type="int" value="1"/>
<Parameter name="relaxation: damping factor" type="double" value="0.3"/>
</ParameterList>
-->

<!-- =========== REPARTITIONING =========== -->
<Parameter name="repartition: enable" type="bool" value="true"/>
<Parameter name="repartition: partitioner" type="string" value="zoltan2"/>
<Parameter name="repartition: start level" type="int" value="2"/>
<Parameter name="repartition: min rows per proc" type="int" value="1000"/>
<Parameter name="repartition: max imbalance" type="double" value="1.10"/>
<!-- start of default values for repartitioning (can be omitted) -->
<Parameter name="repartition: remap parts" type="bool" value="true"/>
<Parameter name="repartition: rebalance P and R" type="bool" value="true"/>
<ParameterList name="repartition: params">
<Parameter name="algorithm" type="string" value="multijagged"/>
<Parameter name="mj_premigration_option" type="int" value="1"/>
</ParameterList>
<!-- end of default values -->

<!-- for runs on with OpenMP or Cuda backend, enable -->
<Parameter name="use kokkos refactor" type="bool" value="false"/>
</ParameterList>
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ materials:
strength_model: none
elastic_modulus: 10
poisson_ratio: 0.3
q1: 0.06
q2: 1.2
q1ex: 0.06
q2ex: 1.2
q1: 1.0
q2: 1.333
q1ex: 1.0
q2ex: 0.0
eos_global_vars:
- 1.666666666666667
- 1.0E-14
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,10 @@ fea_module_parameters:
materials:
- id: 0
eos_model: ideal_gas
strength_model: none
elastic_modulus: 10
poisson_ratio: 0.3
q1: 0.06
q2: 1.0
q1ex: 0.06
q2ex: 1.0
q1: 1.0
q2: 1.33333
q1ex: 1.0
q2ex: 0.0
eos_global_vars:
- 1.666666666666667
- 1.0E-14
Expand All @@ -75,7 +72,7 @@ regions:
radius2: 0.1
material_id: 0
den: 1.0
ie: 0.25833839995946534
ie: 0.493390
velocity: cartesian
u: 0.0
v: 0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ materials:
- id: 0
eos_model: ideal_gas
# Artificial viscosity linear and quadratic terms
q1: 0.06
q2: 1.2
q1: 1.0
q2: 1.3333
q1ex: 0.06
q2ex: 1.2
eos_global_vars:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# input file
num_dims: 3

mesh_generation_options:
type: Box
origin: [0, 0, 0]
length: [10, 10, 100]
num_elems: [10, 10, 100]

output_options:
timer_output_level: thorough
output_file_format: vtk
write_initial: false
write_final: true

materials:
- id: 0
elastic_modulus: 20000000
poisson_ratio: 0.3
density: 7850
thermal_conductivity: 10
specific_internal_energy_rate: 1.0
initial_temperature: 293

fea_module_parameters:
- type: Inertial
material_id: 0
inertia_center_x: 0
inertia_center_y: 0
inertia_center_z: 0

- type: Elasticity
material_id: 0
# Dirichlet conditions
boundary_conditions:
- surface:
type: z_plane
plane_position: 0.0
type: displacement
value: 0.0

# # Loading/Neumann Conditions
# loading_conditions:
# - surface:
# type: z_plane
# plane_position: 100.0
# type: surface_traction
# component_x: 0.0
# component_y: -5000.0
# component_z: 0.0

- type: Heat_Conduction
material_id: 0
# Dirichlet conditions
boundary_conditions:
- surface:
type: z_plane
plane_position: 0.0
type: temperature
value: 293.0

# Loading/Neumann Conditions
loading_conditions:
- surface:
type: z_plane
plane_position: 100.0
type: surface_heat_flux
#can be normal (q dot n) or coordinated (vector q) for curved surfaces
specification: normal
flux_value: 1.0

# optimization_options:
# optimization_process: topology_optimization
# method_of_moving_asymptotes: false
# density_epsilon: 0.00001
# simp_penalty_power: 4
# optimization_objective: multi_objective
# #Weight coefficients should add up to 1
# multi_objective_structure: linear
# multi_objective_modules:
# - type: minimize_thermal_resistance
# weight_coefficient: 0.25
# - type: minimize_compliance
# weight_coefficient: 0.75

# constraints:
# - type: mass
# relation: equality
# value: 0.25
# - type: moment_of_inertia
# relation: equality
# component: yy
# value: 0.35
# - type: moment_of_inertia
# relation: equality
# component: xy
# value: 0.0

Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# input file
num_dims: 3

mesh_generation_options:
type: Box
origin: [0, 0, 0]
length: [10, 10, 100]
num_elems: [10, 10, 100]

output_options:
timer_output_level: thorough
output_file_format: vtk
write_initial: false
write_final: true

materials:
- id: 0
elastic_modulus: 20000000
poisson_ratio: 0.3
density: 7850
thermal_conductivity: 10
specific_internal_energy_rate: 1.0
initial_temperature: 293

fea_module_parameters:
- type: Inertial
material_id: 0
inertia_center_x: 0
inertia_center_y: 0
inertia_center_z: 0

- type: Elasticity
material_id: 0
# Dirichlet conditions
boundary_conditions:
- surface:
type: z_plane
plane_position: 0.0
type: displacement
value: 0.0

# Loading/Neumann Conditions
loading_conditions:
- surface:
type: z_plane
plane_position: 100.0
type: surface_traction
component_x: 0.0
component_y: -5000.0
component_z: 0.0

Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# input file
num_dims: 3

mesh_generation_options:
type: Box
origin: [0, 0, 0]
length: [10, 10, 100]
num_elems: [10, 10, 100]

output_options:
timer_output_level: thorough
output_file_format: vtk
write_initial: false
write_final: true

materials:
- id: 0
elastic_modulus: 20000000
poisson_ratio: 0.3
density: 7850
thermal_conductivity: 10
specific_internal_energy_rate: 1.0
initial_temperature: 293

fea_module_parameters:
- type: Inertial
material_id: 0
inertia_center_x: 0
inertia_center_y: 0
inertia_center_z: 0

- type: Elasticity
material_id: 0
# Dirichlet conditions
boundary_conditions:
- surface:
type: z_plane
plane_position: 0.0
type: displacement
value: 0.0

# # Loading/Neumann Conditions
# loading_conditions:
# - surface:
# type: z_plane
# plane_position: 100.0
# type: surface_traction
# component_x: 0.0
# component_y: -5000.0
# component_z: 0.0

- type: Heat_Conduction
material_id: 0
# Dirichlet conditions
boundary_conditions:
- surface:
type: z_plane
plane_position: 0.0
type: temperature
value: 293.0

# Loading/Neumann Conditions
loading_conditions:
- surface:
type: z_plane
plane_position: 100.0
type: surface_heat_flux
#can be normal (q dot n) or coordinated (vector q) for curved surfaces
specification: normal
flux_value: 1.0

# optimization_options:
# optimization_process: topology_optimization
# method_of_moving_asymptotes: false
# density_epsilon: 0.00001
# simp_penalty_power: 4
# optimization_objective: multi_objective
# #Weight coefficients should add up to 1
# multi_objective_structure: linear
# multi_objective_modules:
# - type: minimize_thermal_resistance
# weight_coefficient: 0.25
# - type: minimize_compliance
# weight_coefficient: 0.75

# constraints:
# - type: mass
# relation: equality
# value: 0.25
# - type: moment_of_inertia
# relation: equality
# component: yy
# value: 0.35
# - type: moment_of_inertia
# relation: equality
# component: xy
# value: 0.0

Loading

0 comments on commit 852f96a

Please sign in to comment.