Skip to content

Commit

Permalink
Added placeholder for cooling channel b.c. on divertor monoblock with…
Browse files Browse the repository at this point in the history
… heat transfer example
  • Loading branch information
pabloseleson committed Sep 14, 2024
1 parent d744fc5 commit 20807aa
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ void thermalDeformationHeatTransferExample( const std::string filename )
// ====================================================
// Boundary condition
// ====================================================

// EXAMPLE 1: Temperature profile imposed over entire domain
using plane_type = CabanaPD::RegionBoundary<CabanaPD::RectangularPrism>;
/*
Expand Down Expand Up @@ -207,12 +208,28 @@ void thermalDeformationHeatTransferExample( const std::string filename )
auto bc = CabanaPD::createBoundaryCondition(
temp_func, exec_space{}, *particles, planes, false, 1.0 );

// Boundary condition on cooling channel
using cylinder_type = CabanaPD::RegionBoundary<CabanaPD::Cylinder>;
cylinder_type cylinder1( radius - dx, radius + dx, low_corner[2],
high_corner[2], x_center, y_center );

auto temp_func2 = KOKKOS_LAMBDA( const int pid, const double t )
{
temp( pid ) = temp0;
};

auto bc2 = CabanaPD::createBoundaryCondition(
temp_func2, exec_space{}, *particles, cylinder1, false, 1.0 );

// ====================================================
// Simulation run
// ====================================================
cabana_pd->init( bc );
cabana_pd->run( bc );

// cabana_pd->init( bc2 );
// cabana_pd->run( bc2 );

// ====================================================
// Outputs
// ====================================================
Expand Down

0 comments on commit 20807aa

Please sign in to comment.