From 917404fc303b55543f7473ba1ce7394de4f181c7 Mon Sep 17 00:00:00 2001 From: pabloseleson Date: Mon, 24 Jun 2024 13:34:32 -0400 Subject: [PATCH] Revise JSON variables naming --- .../thermomechanics/inputs/thermal_crack.json | 28 +++++++++---------- examples/thermomechanics/thermal_crack.cpp | 4 +-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/examples/thermomechanics/inputs/thermal_crack.json b/examples/thermomechanics/inputs/thermal_crack.json index f04ebda8..7900c48d 100644 --- a/examples/thermomechanics/inputs/thermal_crack.json +++ b/examples/thermomechanics/inputs/thermal_crack.json @@ -1,16 +1,16 @@ { - "num_cells" : {"value": [501, 101, 11]}, - "system_size" : {"value": [0.05, 0.01, 0.001], "unit": "m"}, - "density" : {"value": 3980, "unit": "kg/m^3"}, - "elastic_modulus" : {"value": 370e+9, "unit": "Pa"}, - "fracture_energy" : {"value": 24.32, "unit": "J/m^2"}, - "thermal_coefficient" : {"value": 7.5E-6, "unit": "oC^{-1}"}, - "reference_temperature" : {"value": 300.0, "unit": "oC"}, - "water_temperature" : {"value": 20.0, "unit": "oC"}, - "pulse_ramping_time" : {"value": 0.001, "unit": "s"}, - "horizon" : {"value": 3.0e-4, "unit": "m"}, - "final_time" : {"value": 0.002, "unit": "s"}, - "timestep" : {"value": 1.5E-8, "unit": "s"}, - "output_frequency" : {"value": 500}, - "output_reference" : {"value": true} + "num_cells" : {"value": [501, 101, 11]}, + "system_size" : {"value": [0.05, 0.01, 0.001], "unit": "m"}, + "density" : {"value": 3980, "unit": "kg/m^3"}, + "elastic_modulus" : {"value": 370e+9, "unit": "Pa"}, + "fracture_energy" : {"value": 24.32, "unit": "J/m^2"}, + "thermal_coefficient" : {"value": 7.5E-6, "unit": "oC^{-1}"}, + "reference_temperature" : {"value": 300.0, "unit": "oC"}, + "water_bath_temperature" : {"value": 20.0, "unit": "oC"}, + "surface_temperature_ramp_time" : {"value": 0.001, "unit": "s"}, + "horizon" : {"value": 3.0e-4, "unit": "m"}, + "final_time" : {"value": 0.002, "unit": "s"}, + "timestep" : {"value": 1.5E-8, "unit": "s"}, + "output_frequency" : {"value": 500}, + "output_reference" : {"value": true} } diff --git a/examples/thermomechanics/thermal_crack.cpp b/examples/thermomechanics/thermal_crack.cpp index 60803c2b..c2e2955b 100644 --- a/examples/thermomechanics/thermal_crack.cpp +++ b/examples/thermomechanics/thermal_crack.cpp @@ -47,8 +47,8 @@ void thermalCrackExample( const std::string filename ) // Problem parameters double temp0 = inputs["reference_temperature"]; - double temp_w = inputs["water_temperature"]; - double t_ramp = inputs["pulse_ramping_time"]; + double temp_w = inputs["water_bath_temperature"]; + double t_ramp = inputs["surface_temperature_ramp_time"]; // ==================================================== // Discretization