Commit Graph

4858 Commits

Author SHA1 Message Date
1bbbd40a0d Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev 20201108 2020-11-06 19:29:34 +00:00
bbc00ccd2e OpenFOAM: Simplified the handling of global switches and constants
to improve robustness and maintainability.  Now all switches and constants are
set correctly on constructions without the need for dynamic update after the
system/controlDict is read.  This significantly simplifies the code and make it
much easier to add new switches, constants and settings without the need to
ensure they are registered to a database for update.
2020-11-06 19:25:49 +00:00
402362edc3 multiphaseEulerFoam/.../sphericalHeatTransfer: Corrected conductivity
This is a model for heat transfer through the inside of a dispersed
phase. It should therefore use the dispersed phase conductivity.
2020-11-06 15:17:23 +00:00
e001cdd42b ThermophysicalTransportModels::FickianEddyDiffusivity: New multi-component thermophysical transport model
Description
    Multi-component Fickian and eddy-diffusivity turbulent based temperature
    gradient heat flux model for RAS or LES of turbulent flow with optional
    Soret thermal diffusion of species.

    Currently the diffusion coefficients are constant but temperature and
    pressure dependency will be added.

    The heat flux source is implemented as an implicit energy correction to the
    temperature gradient based flux source.  At convergence the energy
    correction is 0.

Usage
    \verbatim
    RAS
    {
        model           FickianEddyDiffusivity;
        Prt             0.85;
        Sct             0.7;
        D               (1e-5 2e-5 1e-5); // [m^2/s]
        DT              (1e-5 2e-5 1e-5); // [kg/m/s] Optional
    }
    \endverbatim
2020-11-06 12:19:06 +00:00
9f25bc0adc Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev 2020-11-05 15:31:21 +00:00
d231c7e619 basicSpecieMixture: Added index(const volScalarField& Yi) member function
which returns the index of the specie corresponding to the give mass-fraction
field.
2020-11-05 15:30:05 +00:00
6364ef08e2 LangmuirHinshelwoodReactionRate: Updated order of 'm' coefficent array
for consistency with fluxLimitedLangmuirHinshelwoodReactionRate,
now the exponent is the first coefficient in the 'm' array.
2020-11-05 15:27:58 +00:00
e2b3598d38 tests: Updated to dictionary slash syntax 2020-11-04 10:51:43 +00:00
900eb1cf8c lagrangian/.../LiquidEvaporation: Corrected surface vapour concentration
Resolves bug report https://bugs.openfoam.org/view.php?id=3480
2020-11-04 08:56:48 +00:00
15103380d0 TimeIO: Corrected reading of dimensionedConstants 2020-11-03 09:40:11 +00:00
ce5ab981e8 OpenFOAM: Rationalised the update of registered switches and constants
Moved the switch and constant reading functionality from TimeIO to more rational
locations.

Added registration of InfoSwitches which are not run-time controlled by other
means.
2020-11-02 17:22:23 +00:00
a121baf047 OpenFOAM::dimensionedConstants: Updated handling of constant specification in system/controlDict
Resolves bug-report https://bugs.openfoam.org/view.php?id=3584
2020-11-02 09:26:04 +00:00
1ab7e2814b multiphaseEulerFoam: Named pPrime and kineticTheory viscosity fields 2020-10-30 13:49:16 +00:00
0392bcdfc7 IOobject: Corrected model-name ordering in modelName function 2020-10-30 13:49:16 +00:00
bf10406cf7 Corrected file formatting 2020-10-30 12:38:15 +00:00
d8aa79ed55 combustionModel, sootModel: Simplified selectors 2020-10-30 11:13:24 +00:00
8b76dbf712 combustionModels: Removed templating on the ThermoType
combustionModels now use the virtual functions provided by SpecieMixture to
avoid the complexity in code and compilation of templating on the ThermoType.
Additionally the models based on singleStepCombustion now use the concrete
reaction base class to avoid the templating on ThermoType introduced by the
Reaction type.
2020-10-30 08:38:58 +00:00
ba9312a26b ThermophysicalTransportModels: Updated documentation for j() 2020-10-30 08:38:27 +00:00
e8fba9844a thermophysicalModels::reaction: New concrete base class for Reaction
to provide reaction specie coefficients without the need for a thermodynamics
model.
2020-10-29 22:21:58 +00:00
ab12f38c2a ThermophysicalTransportModels: Corrected the documentation of the units of the q() function
heSolidThermo: Changed the q() function to return an intensive flux consistent
with ThermophysicalTransportModels.
2020-10-29 20:51:32 +00:00
aa4cb44b1e streamLines: Write out the streamline age
The streamLines function object now writes out "age" by default. This is
calculated as the total integration time from the starting point of the
streamline. This value can be negative if tracking is performed in the
reverse direction. Writing "age" can be deactivated by means of a
"writeAge no;" entry in the function object specification.
2020-10-28 08:39:00 +00:00
4cd71d9d0d tutorials/compressible/rhoCentralFoam/biconic25-55Run35: Removed temporary changes 2020-10-27 20:42:02 +00:00
f7848e62a1 functionObjects: Emit warning messages only for field names which do not exist for any type
Resolves bug-report https://bugs.openfoam.org/view.php?id=3583
2020-10-27 20:03:19 +00:00
efbf198022 test/multiphase/multiphaseEulerFoam: Removed tests for mass-fraction scaling 2020-10-27 18:20:28 +00:00
9b2f938586 functionObjects::wallHeatFlux: Corrected dimensions
The wallHeatFlux field is now intensive with units [W/m^2]
and the minimum, maximum, patch integrated Q [W] and patch average q [W-m^2]
are written in postProcessing/wallHeatFlux/<time>/wallHeatFlux.dat
2020-10-27 14:01:57 +00:00
e2b5be42c3 ThermophysicalTransportModels: Added units to the documentation of the q and j functions 2020-10-27 11:29:39 +00:00
095054d82e applications/solvers/combustion: Moved the inertSpecie functionality into basicSpecieMixture
and renamed defaultSpecie as its mass fraction is derived from the sum of the
mass fractions of all other species and it need not be inert but must be present
everywhere, e.g. N2 in air/fuel combustion which can be involved in the
production of NOx.

The previous name inertSpecie in thermophysicalProperties is supported for
backward compatibility.
2020-10-26 20:57:01 +00:00
5e3c5a9698 tutorials/combustion/reactingFoam: Removed redundant entries
Resolves bug report https://bugs.openfoam.org/view.php?id=3582
2020-10-25 18:14:44 +00:00
a50ded5b9a MomentumTransportModels::mixtureKEpsilon: Reverted change to Gd and Gc 2020-10-22 15:46:38 +01:00
b4e411b897 Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev 2020-10-22 12:40:43 +01:00
b7b000be3b functionObjects::writeObjects: Changed the default executeAtStart to 'no'
This avoids attempting to write temporary fields before they have been created.
The executeAtStart can be set to 'yes' in the writeObjects dictionary or the

functions
{
    #includeFunc writeObjects(executeAtStart = yes, <field1>, <field2>...)
}
2020-10-22 12:36:47 +01:00
ea3e7f50bf tutorials/.../TJunction: Added OBJ-based flow rate monitoring
This tutorial now serves as an example of how to compute flow-rates
through zones defined by triangulated surfaces.

A small fix has also been added to searchableSurfaceToFaceZone to
improve robustness on ambiguous cases.
2020-10-22 11:19:13 +01:00
89b9e2d24c topoSet: searchableSurfaceToFaceZone: Improved robustness
This set now produces a contiguous face zone even when cell centres fall
exactly on the plane of the searchable surface.

The set now calculates the intersections between the
cell-centre-to-cell-centre vectors for every face, and uses those to to
categorise the adjacent cells either side of the set as either above or
below the surface. Then, faces which border both an above and a below
cell are included. This guarantees a contiguous result.

Previously faces for which an intersection was found were included
directly, which resulted in a non-contiguous result when the
intersections became ambiguous; i.e., when the surface passed very close
to the cell centres.
2020-10-22 10:40:48 +01:00
a7de472748 multiphaseEulerFoam::phasePressureModel: Updated to use *Field::New 2020-10-22 10:21:27 +01:00
c8f6ba2305 OpenFOAM::tmp: Added support for non-reusable temporaries
Temporary fields returned from functions which are then reused by the calling
function can now be cached by declaring them as non-reusable to guarantee their
integrity.  *Field::New functions have been updated to use this new
functionality and it is recommended to use these functions to create temporary
fields rather than "new *Field".
2020-10-22 08:56:55 +01:00
ffbcf8a4fb multiphaseEulerFoam::SchaefferFrictionalStress: Updated allocation of temporary using volScalarField::New 2020-10-22 08:55:22 +01:00
1cd08407e9 chemistryModel: Split chemistrySolvers.C, chemistryReductionMethods.C and chemistryTabulationMethods.C
to reduces the memory requirement for compilation and speed-up parallel
compilation.
2020-10-20 14:33:14 +01:00
e326af2b4f distributionModels/general: Fixed copy constructor
Patch contributed by Timo Niemi, VTT.
Resolves bug-report https://bugs.openfoam.org/view.php?id=3569
2020-10-13 10:21:58 +01:00
48c06ad843 PVReaders: Remove old libvtkPV* libraries during build or clean
This is to make sure the old paths do not get linked in preference,
which could cause errors on updating
2020-10-13 08:29:09 +01:00
52a10b0505 Reaction: Added a reaction mass balance check 20201010 20201012 2020-10-07 14:59:33 +01:00
48cc85c19b setWaves: Fix typo in documentation 2020-10-07 10:10:07 +01:00
077e35dc83 DimensionedField: Corrected component and T functions
Resolves bug-report https://bugs.openfoam.org/view.php?id=3564
2020-10-05 11:03:14 +01:00
23bd252137 Correcting template cases. Removed enthalpy from fvOptions and baffles transform changed to none. 2020-10-05 10:48:01 +01:00
1b49f08c6d Fixing mencoderCreateVideo function. Passing the file type variable. 2020-10-04 11:46:36 +01:00
164972b19c fixedNormalInletOutletVelocityFvPatchVectorField: Provide the internal field to the clone of the normalVelocity 2020-10-03 22:23:57 +01:00
7e3f4976a8 PatchFields: Removed simple copy constructors and clone functions
These do not necessarily set the internal field reference correctly and it is
safer that the correct internal field is provided as an argument.
2020-10-03 22:16:10 +01:00
cdd2db01cc applications/test: Updated 2020-10-01 16:09:02 +01:00
d89a8d3daa compressibleMultiphaseInterFoam: updated mixing of thermophysical properties
Thermodynamic properties are now mass-fraction mixed
Transport properties remain volume-fraction mixed
2020-10-01 15:24:14 +01:00
90e4222db3 twoPhaseMixtureThermo: Added documentation for Alpha1,2 2020-10-01 12:45:16 +01:00
268c2e5aed twoPhaseMixtureThermo: Correct gamma functions 2020-10-01 11:27:22 +01:00