Skip to content

Commit f46d4b9

Browse files
committed
Changes to HIP example
1 parent 69d4b0e commit f46d4b9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

examples/thermomechanics/hip_cylinder.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ void HIPCylinderExample( const std::string filename )
160160
temp = particles.sliceTemperature();
161161
// This is purposely delayed until after solver init so that ghosted
162162
// particles are correctly taken into account for lambda capture here.
163-
auto temp_func = KOKKOS_LAMBDA( const int pid, const double t )
163+
auto force_temp_func = KOKKOS_LAMBDA( const int pid, const double t )
164164
{
165165
// ---------------------
166166
// Isostatic pressure BC
@@ -197,10 +197,9 @@ void HIPCylinderExample( const std::string filename )
197197
// ---------------------
198198
// Temperature BC
199199
// ---------------------
200-
// temp( pid ) = temp0 + 5000.0 * ( x( pid, 1 ) - low_corner_y ) * t;
201-
// temp( pid ) = Tmax;
200+
temp( pid ) = Tmax;
202201
};
203-
CabanaPD::BodyTerm body_term( temp_func, particles.size(), false );
202+
CabanaPD::BodyTerm body_term( force_temp_func, particles.size(), false );
204203

205204
// ====================================================
206205
// Simulation run

examples/thermomechanics/inputs/hip_cylinder.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"thermal_expansion_coeff" : {"value": 14.56E-6, "unit": "oC^{-1}"},
1010
"thermal_conductivity" : {"value": 14.12, "unit": "W/(m.K)"},
1111
"specific_heat_capacity" : {"value": 492, "unit": "J/(kg.K)"},
12-
"reference_temperature" : {"value": 20.0, "unit": "oC"},
1312
"maximum_pressure" : {"value": 110e6, "unit": "Pa"},
13+
"reference_temperature" : {"value": 1125, "unit": "oC"},
1414
"maximum_temperature" : {"value": 1125, "unit": "oC"},
1515
"cylinder_outer_radius" : {"value": 0.1187, "unit": "m"},
1616
"cylinder_inner_radius" : {"value": 0.0679, "unit": "m"},

0 commit comments

Comments
 (0)