Commit graph

572 commits

Author SHA1 Message Date
Henry Weller
c47adcc10d src/finiteVolume/interpolation: Modified code to conform to OpenFOAM coding standards
declaring the namespace in function definitions in C files
2015-12-09 22:23:38 +00:00
Henry Weller
649c58423a reactingMultiphaseEulerFoam: Correct and test LTS support 2015-12-09 15:39:45 +00:00
Henry Weller
338ffee34c metisDecomp: Changed to use scalar rather than float
Requires that metis is compiled with REALTYPEWIDTH set to 32 for SP and 64 for DP.
2015-12-09 09:16:08 +00:00
Henry Weller
efa28279b8 fvPatchFields, fvsPatchFields, pointPatchFields: specifically declare namespace of functions
It is better to declare the namespace of each function in the C file
rather than "open" the namespace as this may lead to inconsistencies
between the declaration in the H files and definition in the C file.
2015-12-08 22:29:05 +00:00
Henry Weller
3e6f38f1a8 uniformInletOutletFvPatchField: Update refValue in updateCoeffs
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1943
2015-12-08 14:24:12 +00:00
Henry Weller
a2fbd855a6 fanFvPatchField, freestreamPressureFvPatchScalarField: added write function
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1942
2015-12-08 11:57:37 +00:00
Henry Weller
2d08d8dc82 fvcAverage: Removed temporary Info statement 2015-12-07 22:38:33 +00:00
Henry Weller
5a6038ccf5 TurbulenceModels/phaseCompressible/LES/SmagorinskyZhang: Added support for fvOptions 2015-12-03 16:39:00 +00:00
Henry Weller
bdabd09781 TurbulenceModels/phaseCompressible/LES/continuousGasKEqn: Added support for fvOptions 2015-12-03 16:38:43 +00:00
Henry Weller
efc0489eff TurbulenceModels/phaseCompressible/LES/Niceno: Added support for fvOptions 2015-12-03 16:18:04 +00:00
Henry Weller
cb90aed637 TurbulenceModels/phaseCompressible/RAS/continuousGasKEpsilon: Added support for fvOptions 2015-12-03 16:17:40 +00:00
Henry Weller
15a2988cc4 TurbulenceModels/phaseCompressible/RAS/kOmegaSSTSato: Added support for fvOptions 2015-12-03 16:17:23 +00:00
Henry Weller
b8ddd63297 TurbulenceModels/phaseCompressible/RAS/mixtureKEpsilon: Added support for fvOptions 2015-12-03 15:43:27 +00:00
Henry Weller
08a1b11df1 TurbulenceModels/phaseCompressible/RAS/LaheyKEpsilon: Added support for fvOptions 2015-12-03 15:37:05 +00:00
Henry Weller
af2dd0f44e turbulenceModels/LES/DeardorffDiffStress: Added support for fvOptions 2015-12-03 14:53:27 +00:00
Henry Weller
a1f9be94ed turbulenceModels/LES/SpalartAllmarasDES: Added support for fvOptions 2015-12-03 14:53:12 +00:00
Henry Weller
b84ae0ecac turbulenceModels/LES/dynamicLagrangian: Added support for fvOptions 2015-12-03 14:52:48 +00:00
Henry Weller
c816a1391b turbulenceModels/LES/dynamicKEqn: Added support for fvOptions 2015-12-03 13:48:42 +00:00
Henry Weller
039da4c00d turbulenceModels/LES/WALE: Added support for fvOptions 2015-12-03 13:48:20 +00:00
Henry Weller
211a9a377a turbulenceModels/LES/Smagorinsky: Added support for fvOptions 2015-12-03 13:40:32 +00:00
Henry Weller
e915136569 turbulenceModels/LES/kEqn: Added support for fvOptions 2015-12-03 13:39:55 +00:00
Henry Weller
5abe42817f SSG: Added support for fvOptions 2015-12-03 13:12:27 +00:00
Henry Weller
4224aff41c LRR: Added support for fvOptions 2015-12-03 13:12:10 +00:00
Henry Weller
cf51874c28 v2f: Added support for fvOptions 2015-12-03 13:11:49 +00:00
Henry Weller
8978dd912c LaunderSharmaKE: Added support for fvOptions 2015-12-03 13:11:27 +00:00
Henry Weller
9fe624b361 SpalartAllmaras: Added support for fvOptions 2015-12-03 08:43:31 +00:00
Henry Weller
66d338713b realizableKE: Added support for fvOptions 2015-12-03 08:42:08 +00:00
Henry Weller
274fbd9565 RNGkEpsilon: Added support for fvOptions 2015-12-03 08:41:39 +00:00
Henry Weller
12872f1ab8 kOmegaSST: Added support for fvOptions 2015-12-02 20:33:43 +00:00
Henry Weller
70cc5bfe73 kOmega: Added support for fvOptions 2015-12-02 20:33:28 +00:00
Henry Weller
da86adf4eb kEpsilon: Minor update of the lookup of fvOptions 2015-12-02 20:33:00 +00:00
Henry Weller
b4d7adcb01 Minor updates to aid porting to FreeBSD
Based on patches provided by Jason Bacon
2015-12-02 18:18:06 +00:00
Henry Weller
9a536b02a7 fvOptions: Reorganized and updated to simplify use in sub-models and maintenance
fvOptions are transferred to the database on construction using
fv::options::New which returns a reference.  The same function can be
use for construction and lookup so that fvOptions are now entirely
demand-driven.

The abstract base-classes for fvOptions now reside in the finiteVolume
library simplifying compilation and linkage.  The concrete
implementations of fvOptions are still in the single monolithic
fvOptions library but in the future this will be separated into smaller
libraries based on application area which may be linked at run-time in
the same manner as functionObjects.
2015-12-02 11:49:52 +00:00
Henry Weller
27e8b3d282 porousBafflePressureFvPatchField: Corrected handling of mass-flux
Resolves the bug-report http://www.openfoam.org/mantisbt/view.php?id=1934
2015-12-01 16:31:32 +00:00
Henry Weller
a3301464bd radiationModels: Correct handling of ECont and make P1 and fvDOM consistent
Patch provided by Timo Niemi
Resolved bug-report http://www.openfoam.org/mantisbt/view.php?id=1636

This correction corresponds to option 3 of the options proposed by Timo:

Define both ECont and EDisp to be the total emission per surface area,
apply multiplication by 4 in cloudAbsorptionEmission model (the only
place that uses EDisp?). Do not multiply E in P1 at all, divide both
ECont and EDisp in fvDOM.
2015-12-01 16:20:37 +00:00
Henry Weller
fe9c908b0c fvOptions: wmakeLnInclude before building the TurbulenceModels libraries
Do not link the fvOptions library into the TurbulenceModels libraries
due to cyclic dependency
2015-12-01 13:10:51 +00:00
Henry Weller
82ccde3269 TurbulenceModels: Added validate function
Moved correctNut call from constructors to the new validate function to
avoid problems with construction order and field availability for the
calculation of nut.

To ensure nut is physical and consistent with the turbulence fields the
validate function should be called after the construction of the
turbulence model, fvOptions and any other fields that the calculation of
nut might depend on.
2015-12-01 10:07:00 +00:00
Henry Weller
0a133a39f7 circleSet: Corrected point ordering
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1932
2015-12-01 09:45:58 +00:00
Henry Weller
69f0a5e316 nutWallFunctionFvPatchScalarField: Added documentation for default coefficients
Patch provided by Bruno Santos
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1930
2015-11-29 21:27:26 +00:00
Henry Weller
0517efd7db turbulenceModels/RAS/kEpsilon/kEpsilon: Added experimental support for fvOptions 2015-11-28 19:07:42 +00:00
Henry Weller
e496de6fb2 reactingTwoPhaseEulerFoam: Added thermal wall-functions with support for wall-boiling
Code and tutorial case provided by Juho Peltola
2015-11-27 18:51:23 +00:00
Henry Weller
65d917e85e waveDisplacementPointPatchVectorField: Corrected "waveLength" -> "waveNumber"
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1929
2015-11-26 10:54:14 +00:00
Henry Weller
1a2b3a69b2 TurbulenceModels: updated the mapping of k to R BCs
Now k BCs which do not have a symmTensor equivalent are converted to "calculated"
2015-11-24 22:36:50 +00:00
Henry Weller
528cc5622b fvPatchFields/derived/fixedProfile: New BC which applies the specified 1D profile
This is useful when applying an experimentally obtained profile as an
inlet condition:

    Example of the boundary condition specification:
    \verbatim
    myPatch
    {
        type            fixedProfile;
        profile    csvFile;

        profileCoeffs
        {
            nHeaderLine         0;          // Number of header lines
            refColumn           0;          // Reference column index
            componentColumns    (1 2 3);    // Component column indices
            separator           ",";        // Optional (defaults to ",")
            mergeSeparators     no;         // Merge multiple separators
            fileName            "Uprofile.csv";  // name of csv data file
            outOfBounds         clamp;      // Optional out-of-bounds handling
            interpolationScheme linear;     // Optional interpolation scheme
        }
        direction        (0 1 0);
        origin           0;
    }
    \endverbatim

or a simple polynomial profile:

    Example setting a parabolic inlet profile for the PitzDaily case:
    \verbatim
    inlet
    {
        type            fixedProfile;

        profile         polynomial
        (
            ((1 0 0)        (0 0 0))
            ((-6200 0 0)    (2 0 0))
        );
        direction       (0 1 0);
        origin          0.0127;
    }
    \endverbatim

Based on code provided by Hassan Kassem:
http://www.openfoam.org/mantisbt/view.php?id=1922
2015-11-24 16:35:45 +00:00
Henry Weller
9168a4abf9 fvPatchFields: Rationalized the construction of DataEntry values 2015-11-24 16:35:11 +00:00
Henry Weller
05adeb46be snappyHexMesh layerParameters: Increased maxIters to 20
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1918
Patch provided by Richard Jones

maxIters could be made an option input if 20 is not sufficient for
difficult cases.
2015-11-23 16:48:05 +00:00
Henry Weller
d5f8d691b0 TurbulenceModels: Correct nut during construction for single-phase solvers only.
For multiphase solvers the phase construction is not complete at this point.
2015-11-23 13:49:03 +00:00
Henry Weller
56913f6307 fvOptions: New buoyancyForce and buoyancyEnergy
Provides run-time selection of buoyancy sources for compressible solvers

Replaces the built-in buoyancy sources in XiFoam, reactingFoam and
rhoReactingFoam.

e.g. in constant/fvOptions specify

momentumSource
{
    type            buoyancyForce;

    buoyancyForceCoeffs
    {
        fieldNames      (U);
    }
}

and optionally specify the buoyancy energy source in the enthalpy
equation:

energySource
{
    type            buoyancyEnergy;

    buoyancyEnergyCoeffs
    {
        fieldNames      (h);
    }
}

or internal energy equation

energySource
{
    type            buoyancyEnergy;

    buoyancyEnergyCoeffs
    {
        fieldNames      (e);
    }
}
2015-11-23 09:29:10 +00:00
Henry Weller
151e1fafff Update header 2015-11-22 17:28:37 +00:00
Henry Weller
d870ca5be5 Corrected typo: Tranform -> Transform
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1923
2015-11-22 17:27:44 +00:00