/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | foam-extend: Open Source CFD                    |
|  \\    /   O peration     | Version:     4.1                                |
|   \\  /    A nd           | Web:         http://www.foam-extend.org         |
|    \\/     M anipulation  | For copyright notice see file Copyright         |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
    default         Euler;
}

gradSchemes
{
    default         Gauss linear;
    grad(PAcIm)     Gauss linear;
    grad(PAcRe)     Gauss linear;
    grad(p)         Gauss linear;
    grad(U)         Gauss linear;
}

divSchemes
{
    default         none;
    div(phi,U)      Gauss linearUpwind Gauss linear;
    div(phi,k)      Gauss limitedLinear 1;
    div(phi,omega) Gauss limitedLinear 1;
    div((nuEff*dev(T(grad(U))))) Gauss linear;
}

laplacianSchemes
{
    default          Gauss linear corrected;
    laplacian(PAcRe) Gauss linear corrected;
    laplacian(PAcIm) Gauss linear corrected;
    laplacian(dPAcRe) Gauss linear corrected;
    laplacian(dPAcIm) Gauss linear corrected;
    laplacian(nuEff,U) Gauss linear corrected;
    laplacian((1|A(U)),p) Gauss linear corrected;
    laplacian(DkEff,k) Gauss linear corrected;
}

interpolationSchemes
{
    default         linear;
    interpolate(U)  linear;
    interpolate(HbyA) linear;
}

snGradSchemes
{
    default         corrected;
}

fluxRequired
{
    default         no;
}

// ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | foam-extend: Open Source CFD                    |
|  \\    /   O peration     | Version:     4.1                                |
|   \\  /    A nd           | Web:         http://www.foam-extend.org         |
|    \\/     M anipulation  | For copyright notice see file Copyright         |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

newtonRaphson
{
    maxOuterInitIter        0;
    initDamping             0.001;
    minDamping              1e-4;
    maxRecoveryDamping      0.075;
    nRaiseRecovery          10;
    maxOuterIterations      1000;
    residualControl         1e-5;
    residualNorm            scaledL1Norm;
}

solvers
{
    pcorr
    {
        solver          PCG;
        preconditioner  DIC;
        tolerance       0.01;
        relTol          0;
    }

    p
    {
        solver          PCG;
        preconditioner  DIC;
        tolerance       1e-06;
        relTol          0;
    }
    
    pFinal
    {
        $p;
        relTol          0;
    }

    U
    {
        solver          BiCGStab;
        preconditioner  DILU;
        tolerance       1e-08;
        relTol          0;
    }
    
    UFinal
    {
        $U;
        relTol          0;
    }
    
    k
    {
        solver          BiCGStab;
        preconditioner  DILU;
        tolerance       1e-05;
        relTol          0;
    }

    omega
    {
        solver          BiCGStab;
        preconditioner  DILU;
        tolerance       1e-05;
        relTol          0;
    }
}

PIMPLE
{
    momentumPredictor   yes;
    correctPhi          no;
    nOuterCorrectors    5;
    nCorrectors         2;
    nNonOrthogonalCorrectors 0;
    pRefCell        0;
    pRefValue       0;
    
    residualControl
    {
        "(U|k|omega)"
        {
            relTol      0;
            tolerance   1e-4;
        }
    }
}

relaxationFactors
{
    p               1;
    U               1;
    UFinal          1;

//     If defined within subdictionaries, the relaxation will be applied only
//     on the corresponding class.
//     If other class also needs to be relaxed, it has to be defined
//     inside the subdictionary
//     fields
//     {
//         PAcRe   0.51;
//         PAcIm   0.51;
//     }
    
//     equations
//     {
//         PAcRe   0.7;
//     }

//     If no subdictionary defined, relaxation is applied only to equations
//     PAcRe   0.7;
//     Above is equivalent to:
//     equations
//     {
//         PAcRe           0.7;
//     }

}

// ************************************************************************* //
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | foam-extend: Open Source CFD                    |
|  \\    /   O peration     | Version:     5.0                                |
|   \\  /    A nd           | Web:         http://www.foam-extend.org         |
|    \\/     M anipulation  | For copyright notice see file Copyright         |
\*---------------------------------------------------------------------------*/
Build  : 5.0-287705b4a589
Exec   : blockMesh
Date   : Jan 27 2025
Time   : 05:28:31
Host   : "ip-172-31-37-117"
PID    : 274916
CtrlDict : "/home/ubuntu/foam/acousticCavitationOpenFOAM/run/acousticCavitationCloudFoam/sonotrodeInCylinderTank_wedge2D/system/controlDict"
Case   : /home/ubuntu/foam/acousticCavitationOpenFOAM/run/acousticCavitationCloudFoam/sonotrodeInCylinderTank_wedge2D
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

--> FOAM Warning : 
    From function void* Foam::dlOpen(const Foam::fileName&, bool)
    in file POSIX.C at line 1204
    dlopen error : libparMetisByParcelsDecomp.so: cannot open shared object file: No such file or directory
--> FOAM Warning : 
    From function bool Foam::dlLibraryTable::open(const Foam::fileName&, bool)
    in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 97
    could not load "libparMetisByParcelsDecomp.so"
--> FOAM Warning : 
    From function int main(int, char**)
    in file findBlockMeshDict.H at line 33
    Using the old blockMeshDict location: "constant/polyMesh/blockMeshDict"
    instead of the default location:  "system/blockMeshDict"


Creating block mesh from
    "/home/ubuntu/foam/acousticCavitationOpenFOAM/run/acousticCavitationCloudFoam/sonotrodeInCylinderTank_wedge2D/constant/polyMesh/blockMeshDict"


Creating block mesh topology

Creating polyMesh from blockMesh

Writing polyMesh
----------------
Mesh Information
----------------
  boundingBox: (0 0 -0.00471118) (0.119907 0.18 0.00471118)
  nPoints: 52783
  nCells: 26136
  nFaces: 104709
  nInternalFaces: 51927
----------------
Patches
----------------
  patch 0 (start: 51927 size: 60) name: Transducer
  patch 1 (start: 51987 size: 33) name: TransducerLateralWall
  patch 2 (start: 52020 size: 72) name: FreeSurface
  patch 3 (start: 52092 size: 345) name: Walls
  patch 4 (start: 52437 size: 0) name: Axis
  patch 5 (start: 52437 size: 26136) name: Front
  patch 6 (start: 78573 size: 26136) name: Back

End

