Skip to content
  • Andrew Heather's avatar
    ENH: PatchInjectionModel - added new parcel initial velocity options · 0260643c
    Andrew Heather authored and Andrew Heather's avatar Andrew Heather committed
    The parcel initial velocity can now be set using the new `velocityType`
    entry, taking one of the following options:
    
    - fixedValue   : (default) same as earlier versions, requires U0
    - patchValue   : velocity set to seed patch face value
    - zeroGradient : velocity set to seed patch face adjacent cell value
    
    Example usage:
    
            model1
            {
                type            patchInjection;
                massTotal       1;
                SOI             0;
                parcelBasisType mass;
                patch           cylinder;
                duration        10;
                parcelsPerSecond 100;
                velocityType    patchValue;
                //velocityType    zeroGradient;
                //U0              (-10 0 0);
                flowRateProfile constant 1;
                sizeDistribution
                {
                    type        normal;
                    normalDistribution
                    {
                        expectation 1e-3;
                        variance 1e-4;
                        minValue 1e-5;
                        maxValue 2e-3;
                    }
                }
            }
    
    See the new $FOAM_TUTORIALS/lagrangian/kinematicParcelFoam/spinningDisk tutorial
    0260643c