src/solvers/scalar/scalar_d2.cc
/**
 ********************************************************************************************************************************************
 * \brief   Constructor of the scalar_d2 class derived from the base scalar class
 *
 *          The constructor passes its arguments to the base scalar class and then initializes all the scalar and
 *          vector fields necessary for solving the NS equations.
 *          The various coefficients for solving the equations are also set by a call to the \ref setCoefficients function.
 *          Based on the problem type specified by the user in the parameters file, and stored by the \ref parser class as
 *          \ref parser#probType "probType", the appropriate boundary conditions are specified.
 *
 * \param   mesh is a const reference to the global data contained in the grid class
 * \param   solParam is a const reference to the user-set parameters contained in the parser class
 ********************************************************************************************************************************************
 */
\brief   Constructor of the scalar_d2 class derived from the base scalar class
The constructor passes its arguments to the base scalar class and then initializes all the scalar and
vector fields necessary for solving the NS equations.
The various coefficients for solving the equations are also set by a call to the \ref setCoefficients function.
Based on the problem type specified by the user in the parameters file, and stored by the \ref parser class as
\ref parser#probType "probType", the appropriate boundary conditions are specified.

\param   mesh is a const reference to the global data contained in the grid class
\param   solParam is a const reference to the user-set parameters contained in the parser class
\ brief Constructor of the scalar_d2 class derived from the base scalar class The constructor passes its arguments to the base scalar class and then initializes all the scalar and vector fields necessary for solving the NS equations . The various coefficients for solving the equations are also set by a call to the \ ref setCoefficients function . Based on the problem type specified by the user in the parameters file and stored by the \ ref parser class as \ ref parser#probType " probType " the appropriate boundary conditions are specified . \ param mesh is a const reference to the global data contained in the grid class \ param solParam is a const reference to the user - set parameters contained in the parser class
scalar_d2::scalar_d2(const grid &mesh, const parser &solParam, parallel &mpiParam):
            scalar(mesh, solParam, mpiParam),
            mgSolver(mesh, inputParams)
{
    setCoefficients();
    if (inputParams.restartFlag) {
        std::vector<field> readFields;
        readFields.push_back(V.Vx);
        readFields.push_back(V.Vz);
        readFields.push_back(P.F);
        readFields.push_back(T.F);
        reader dataReader(mesh, readFields);
        time = dataReader.readData();
    } else {
        P = 1.0;
        T = 0.0;
        time = 0.0;
    }
    checkPeriodic();
    initVBC();
    initTBC();
    initVForcing();
    initTForcing();
    imposeUBCs();
    imposeWBCs();
    imposeTBCs();
}
scalar_d2 :: scalar_d2 ( const grid & mesh , const parser & solParam , parallel & mpiParam ) : scalar ( mesh , solParam , mpiParam ) , mgSolver ( mesh , inputParams ) { setCoefficients ( ) ; if ( inputParams . restartFlag ) { std :: vector < field > readFields ; readFields . push_back ( V . Vx ) ; readFields . push_back ( V . Vz ) ; readFields . push_back ( P . F ) ; readFields . push_back ( T . F ) ; reader dataReader ( mesh , readFields ) ; time = dataReader . readData ( ) ; } else { P = 1.0 ; T = 0.0 ; time = 0.0 ; } checkPeriodic ( ) ; initVBC ( ) ; initTBC ( ) ; initVForcing ( ) ; initTForcing ( ) ; imposeUBCs ( ) ; imposeWBCs ( ) ; imposeTBCs ( ) ; }
\brief   Constructor of the scalar_d2 class derived from the base scalar class
          The constructor passes its arguments to the base scalar class and then initializes all the scalar and
          vector fields necessary for solving the NS equations.
\ brief Constructor of the scalar_d2 class derived from the base scalar class The constructor passes its arguments to the base scalar class and then initializes all the scalar and vector fields necessary for solving the NS equations .
// SET VALUES OF COEFFICIENTS USED FOR COMPUTING LAPLACIAN // INITIALIZE PRESSURE AND SCALAR // Fields to be read from HDF5 file are passed to reader class as a vector // Populate the vector with required fields // Initialize reader object // Initialize velocity and temperature boundary conditions // Initialize velocity and temperature forcing fields