openfoam/applications/utilities/preProcessing
Henry Weller 5c51836501 The "<type>Coeffs" sub-dictionary is now optional for most model parameters
except turbulence and lagrangian which will also be updated shortly.

For example in the nonNewtonianIcoFoam offsetCylinder tutorial the viscosity
model coefficients may be specified in the corresponding "<type>Coeffs"
sub-dictionary:

transportModel  CrossPowerLaw;

CrossPowerLawCoeffs
{
    nu0         [0 2 -1 0 0 0 0]  0.01;
    nuInf       [0 2 -1 0 0 0 0]  10;
    m           [0 0 1 0 0 0 0]   0.4;
    n           [0 0 0 0 0 0 0]   3;
}

BirdCarreauCoeffs
{
    nu0         [0 2 -1 0 0 0 0]  1e-06;
    nuInf       [0 2 -1 0 0 0 0]  1e-06;
    k           [0 0 1 0 0 0 0]   0;
    n           [0 0 0 0 0 0 0]   1;
}

which allows a quick change between models, or using the simpler

transportModel  CrossPowerLaw;

nu0         [0 2 -1 0 0 0 0]  0.01;
nuInf       [0 2 -1 0 0 0 0]  10;
m           [0 0 1 0 0 0 0]   0.4;
n           [0 0 0 0 0 0 0]   3;

if quick switching between models is not required.

To support this more convenient parameter specification the inconsistent
specification of seedSampleSet in the streamLine and wallBoundedStreamLine
functionObjects had to be corrected from

    // Seeding method.
    seedSampleSet   uniform;  //cloud; //triSurfaceMeshPointSet;

    uniformCoeffs
    {
        type        uniform;
        axis        x;  //distance;

        // Note: tracks slightly offset so as not to be on a face
        start       (-1.001 -0.05 0.0011);
        end         (-1.001 -0.05 1.0011);
        nPoints     20;
    }

to the simpler

    // Seeding method.
    seedSampleSet
    {
        type        uniform;
        axis        x;  //distance;

        // Note: tracks slightly offset so as not to be on a face
        start       (-1.001 -0.05 0.0011);
        end         (-1.001 -0.05 1.0011);
        nPoints     20;
    }

which also support the "<type>Coeffs" form

    // Seeding method.
    seedSampleSet
    {
        type        uniform;

        uniformCoeffs
        {
            axis        x;  //distance;

            // Note: tracks slightly offset so as not to be on a face
            start       (-1.001 -0.05 0.0011);
            end         (-1.001 -0.05 1.0011);
            nPoints     20;
        }
    }
2017-04-20 09:14:48 +01:00
..
applyBoundaryLayer applyBoundaryLayer: Ensure nut is up-to-date with the current turbulence fields 2017-03-22 10:08:37 +00:00
boxTurb GeometricField: Renamed internalField() -> primitiveField() and dimensionedInternalField() -> internalField() 2016-04-30 21:40:09 +01:00
changeDictionary Rationalized Doxygen documentation of command-line options 2016-06-17 09:11:58 +01:00
createExternalCoupledPatchGeometry C++11: Replaced the C NULL with the safer C++11 nullptr 2016-08-05 17:19:38 +01:00
dsmcInitialise applications: Update ...ErrorIn -> ...ErrorInFunction 2015-11-10 17:53:31 +00:00
engineSwirl ddtScheme::fvcDdtPhiCoeff: Zero ddtCorr on AMIs 2015-03-24 15:23:01 +00:00
faceAgglomerate GeometricField::GeometricBoundaryField -> GeometricField::Boundary 2016-04-28 07:22:02 +01:00
foamUpgradeCyclics C++11: Replaced the C NULL with the safer C++11 nullptr 2016-08-05 17:19:38 +01:00
mapFields mapFields: reset the FOAM_CASE environment variable 2016-09-17 14:53:15 +01:00
mapFieldsPar Updated UPstream::commsTypes to use the C++11 enum class 2017-03-10 19:54:55 +00:00
mdInitialise applications: Update ...ErrorIn -> ...ErrorInFunction 2015-11-10 17:53:31 +00:00
setFields setFields: Added '-dict' option 2016-12-03 11:45:36 +00:00
viewFactorsGen radiation: Corrected the name of the radiative heat flux from Qr to qr 2017-04-08 22:23:40 +01:00
wallFunctionTable The "<type>Coeffs" sub-dictionary is now optional for most model parameters 2017-04-20 09:14:48 +01:00