File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ void HIPCylinderExample( const std::string filename )
160
160
temp = particles.sliceTemperature ();
161
161
// This is purposely delayed until after solver init so that ghosted
162
162
// 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 )
164
164
{
165
165
// ---------------------
166
166
// Isostatic pressure BC
@@ -197,10 +197,9 @@ void HIPCylinderExample( const std::string filename )
197
197
// ---------------------
198
198
// Temperature BC
199
199
// ---------------------
200
- // temp( pid ) = temp0 + 5000.0 * ( x( pid, 1 ) - low_corner_y ) * t;
201
- // temp( pid ) = Tmax;
200
+ temp ( pid ) = Tmax;
202
201
};
203
- CabanaPD::BodyTerm body_term ( temp_func , particles.size (), false );
202
+ CabanaPD::BodyTerm body_term ( force_temp_func , particles.size (), false );
204
203
205
204
// ====================================================
206
205
// Simulation run
Original file line number Diff line number Diff line change 9
9
"thermal_expansion_coeff" : {"value" : 14.56E-6 , "unit" : " oC^{-1}" },
10
10
"thermal_conductivity" : {"value" : 14.12 , "unit" : " W/(m.K)" },
11
11
"specific_heat_capacity" : {"value" : 492 , "unit" : " J/(kg.K)" },
12
- "reference_temperature" : {"value" : 20.0 , "unit" : " oC" },
13
12
"maximum_pressure" : {"value" : 110e6 , "unit" : " Pa" },
13
+ "reference_temperature" : {"value" : 1125 , "unit" : " oC" },
14
14
"maximum_temperature" : {"value" : 1125 , "unit" : " oC" },
15
15
"cylinder_outer_radius" : {"value" : 0.1187 , "unit" : " m" },
16
16
"cylinder_inner_radius" : {"value" : 0.0679 , "unit" : " m" },
You can’t perform that action at this time.
0 commit comments