Find answers, ask questions, and connect with our <br>community around the world.

Home Forums OpenFOAM Forum Tutorial 4: Multiphase Flow Reply To: Tutorial 4: Multiphase Flow

  • Sreeharsh

    Member
    July 22, 2022 at 4:27 pm

    Hi,

    setFields dictionary:
    defaultFieldValues

    (

    volScalarFieldValue alpha.water 0

    );

    regions

    (

    // Set cell values

    // (does zerogradient on boundaries)

    boxToCell

    {

    box (-999 -999 -999) (999 999 0.244);

    fieldValues

    (

    volScalarFieldValue alpha.water 1

    );

    }

    // Set patch values (using ==)

    boxToFace

    {

    box (-999 -999 -999) (999 999 0.244);

    fieldValues

    (

    volScalarFieldValue alpha.water 1

    );

    }

    );
    ———————————————————————————————-
    alpha.water in 0 folder (But I am unable to open the alpha.water file after I setfields):
    dimensions [0 0 0 0 0 0 0];

    internalField uniform 0;

    boundaryField

    {

    #includeEtc “caseDicts/setConstraintTypes”

    inlet

    {

    type fixedValue;

    value $internalField;

    }

    outlet

    {

    type variableHeightFlowRate;

    lowerBound 0;

    upperBound 1;

    value $internalField;

    }

    atmosphere

    {

    type inletOutlet;

    inletValue $internalField;

    value $internalField;

    }

    hull

    {

    type zeroGradient;

    }

    }
    ———————————————————————————

error: Content is protected !!