1

Previous: Modifications for practice Up: Modifications for practice Next: When the options are

This is an automatically generated documentation by LaTeX2HTML utility. In case of any issue, please, contact us at info@cfdsupport.com.

Finer mesh

  •  
  • In file blockMeshDict we can change computational mesh to 50×50 cells3.1.
    # mcedit system/blockMeshDict

     

    blocks          
    (
        hex (0 1 2 3 4 5 6 7) (50 50 1) simpleGrading (1 1 1)
    );
    
  •  
  • Run blockMesh:
    # blockMesh
  •  
  • For transient simulations the Courant number should by always checked.
  •  
  • Let us change time step to 0.0005s and computation time to 1.5s. Solution will be saved in times 0.1, 0.2, 0.3, …, 1.5s
  •  
  • Let us modify controlDict, e.g.:
    # gedit system/controlDict

     

    stopAt          endTime;
    
    endTime         1.5;
    
    deltaT          0.0005;
    
    writeControl    runTime;
    
    writeInterval   0.1;
    

     

  •  
  • Run icoFoam on background and forward output into the text file log:
    # icoFoam > log &

     

  •  
  • It is useful to watch the log file how the computation goes:
    # tail -f log

     

  •  
  • Pressing ctrl+c one can jump back to the console

     

  •  
  • Results can be viewed during computation in paraview (button Refresh Times always rereads the time layers):
    # paraFoam

     

     
  •  
openfoam cavity tutorial velocity magnitude

Figure: OpenFOAM cavity tutorial. Velocity vector field.

cavity vec

Figure: OpenFOAM cavity tutorial. Velocity magnitude.

System of Linear Equations

Finite Volume Method converts the system of differential equations to the system of linear equations:

5 4

Such a linear algebra problem can be solved with following methods implemented in OpenFOAM:

Linear system solver method:

  • GAMG (Geometric-Algebraic Multi-Grid) for both symmetric and asymmetric matrices
  • PBiCG (Preconditioned Biconjugate Gradient ) for asymmetric matrices
  • PCG (Preconditioned Conjugate Gradient) for symmetric matrices
  • smoothSolver (solver using a smoother for both symmetric and asymmetric matrices )
  • ICCG (Incomplete Cholesky preconditioned PCG solver, i.e. PBiCG with DIC )3.1
  • BICCG (Diagonal Incomplete LU preconditioned PBiCG solver, i.e. PCG with DILU)3.2

Method preconditioner:

  • DILU (Diagonal Incomplete LU decomposition)
  • DIC (Diagonal incomplete-Cholesky) for symmetric matrices
  • FDIC (Faster diagonal incomplete-Cholesky) for symmetric matrices
  • diagonal (Diagonal)
  • GAMG (Geometric-Algebraic Multi-Grid)
  • none (No preconditioning)
  • DICGaussSeidel, GaussSeidel, nonBlockingGaussSeidel, symGaussSeidel (for symmetric matrices)
  • For more details see e.g. [10].

Previous: TCFD- Running in Up: TCFD- Running in Next: CFD Processor command mode
This is an automatically generated documentation by LaTeX2HTML utility. In case of any issue, please, contact us at info@cfdsupport.com.