Skip to content

Commit

Permalink
Revise JSON variables naming
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloseleson authored and streeve committed Jun 24, 2024
1 parent a24df90 commit 917404f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
28 changes: 14 additions & 14 deletions examples/thermomechanics/inputs/thermal_crack.json
Original file line number Diff line number Diff line change
@@ -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}
}
4 changes: 2 additions & 2 deletions examples/thermomechanics/thermal_crack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 917404f

Please sign in to comment.