src/solvers/scalar/scalar.cc
/**
 ********************************************************************************************************************************************
 * \brief   Function to impose the boundary conditions for temperature
 *
 *          The function first calls the syncData() function of the temperature field to update the sub-domain pads.
 *          Then the boundary conditions are applied at the full domain boundaries by calling the imposeBC()
 *          of each boundary class object assigned to each wall.
 *
 ********************************************************************************************************************************************
 */
\brief   Function to impose the boundary conditions for temperature
The function first calls the syncData() function of the temperature field to update the sub-domain pads.
Then the boundary conditions are applied at the full domain boundaries by calling the imposeBC()
of each boundary class object assigned to each wall.
\ brief Function to impose the boundary conditions for temperature The function first calls the syncData () function of the temperature field to update the sub - domain pads . Then the boundary conditions are applied at the full domain boundaries by calling the imposeBC () of each boundary class object assigned to each wall .
void scalar::imposeTBCs() {
    T.syncData();
    if (not inputParams.xPer) {
        tLft->imposeBC();
        tRgt->imposeBC();
    }
#ifndef PLANAR
    if (not inputParams.yPer) {
        tFrn->imposeBC();
        tBak->imposeBC();
    }
#endif
    tTop->imposeBC();
    tBot->imposeBC();
}
void scalar :: imposeTBCs ( ) { T . syncData ( ) ; if ( not inputParams . xPer ) { tLft -> imposeBC ( ) ; tRgt -> imposeBC ( ) ; } #ifndef PLANAR if ( not inputParams . yPer ) { tFrn -> imposeBC ( ) ; tBak -> imposeBC ( ) ; } #endif tTop -> imposeBC ( ) ; tBot -> imposeBC ( ) ; }
\brief   Function to impose the boundary conditions for temperature
          The function first calls the syncData() function of the temperature field to update the sub-domain pads.
\ brief Function to impose the boundary conditions for temperature The function first calls the syncData () function of the temperature field to update the sub - domain pads .