Skip to content
Snippets Groups Projects
setAlphaFieldDict 1.21 KiB
Newer Older
  • Learn to ignore specific revisions
  • /*--------------------------------*- C++ -*----------------------------------*\
    | =========                 |                                                 |
    | \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
    
    |  \\    /   O peration     | Version:  v2412                                 |
    
    |   \\  /    A nd           | Website:  www.openfoam.com                      |
    |    \\/     M anipulation  |                                                 |
    \*---------------------------------------------------------------------------*/
    FoamFile
    {
        version     2.0;
        format      ascii;
        class       dictionary;
        location    "system";
        object      fvSolution;
    }
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    
    field "alpha.water";
    
    type composedFunction;
    mode add;
    composedFunctions
    {
        plane
        {
            type plane;
            centre (0 1. 0);
            normal (0 1 0);
        }
    
        sphere
        {
            type sphere;
            radius 0.4;
            centre (0.5 0.8 0.5);
            scale 1;
        }
    
        sphere2
        {
            type sphere;
            radius 0.4;
            centre (0.5 0.5 0.5);
        }
    }
    
    
    // ************************************************************************* //