/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2006 | | \\ / A nd | Website www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object fvSolution; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // solvers { "(p|pB|phiE)" { solver petsc; petsc { options { ksp_type cg; ksp_cg_single_reduction true; ksp_norm_type none; mat_type mpiaijkokkos; vec_type kokkos; // With or without hypre #if 0 pc_type hypre; pc_hypre_type boomeramg; pc_hypre_boomeramg_max_iter "1"; pc_hypre_boomeramg_strong_threshold "0.25"; pc_hypre_boomeramg_grid_sweeps_up "1"; pc_hypre_boomeramg_grid_sweeps_down "1"; pc_hypre_boomeramg_agg_nl "1"; pc_hypre_boomeramg_agg_num_paths "1"; pc_hypre_boomeramg_max_levels "25"; pc_hypre_boomeramg_coarsen_type HMIS; pc_hypre_boomeramg_interp_type ext+i; pc_hypre_boomeramg_P_max "1"; pc_hypre_boomeramg_truncfactor "0.3"; #else pc_type bjacobi; //bjkokkos; //bjacobi; sub_pc_type ilu; #endif } caching { matrix { update always; } preconditioner { update always; } } } tolerance 1e-07; relTol 0.01; } "(pFinal|pBFinal|phiEFinal|Phi)" { $p; } "(U|B|k|nuTilda)" { solver smoothSolver; smoother symGaussSeidel; tolerance 1e-08; relTol 1e-04; } "(U|B|k|nuTilda)Final" { $U; tolerance 1e-06; relTol 0; } } PIMPLE { nOuterCorrectors 1; nCorrectors 3; nNonOrthogonalCorrectors 0; pRefCell 0; pRefValue 0; phiERefCell 0; phiERefValue 0; momentumPredictor yes; } // ************************************************************************* //