Commit Graph

4885 Commits

Author SHA1 Message Date
93a0dd2f99 foamDictionary: Updated examples to 'slash' syntax which is the new default 2020-11-17 14:14:42 +00:00
8a62a84b68 sixDoFRigidBodyMotion::axialAngularSpring: Function1 based replacement for tabulatedAxialAngularSpring
axialAngularSpring uses a Function1 for the angular spring moment and linear
damping.  Tabulated data is supported using the 'table' Function1.
2020-11-17 10:37:29 +00:00
c0978ac0e1 functionObjects::wallHeatTransferCoeff: Redesign of the wall heat transfer coefficient (HTC) function object.
Following functionality added:
- support of dimensional inputs
- run time selection mechanism of HTC model (kappaEff, ReynoldsAnalogy)
- kappaEff has now two options for calculating HTC (with/without characteristic length)
- Reynolds Analogy estimation for HTC
- integrated HTC replaced with an average log output

Description
    Calculates and writes the estimated heat transfer coefficient at wall
    patches as the volScalarField field.

    All wall patches are included by default; to restrict the calculation to
    certain patches, use the optional 'patches' entry.

    The models are selected run time by model entry. For detailed description
    look at the header file for specific model under
    wallHeatTransferCoeffModels.

    Example of function object specification:
    \verbatim
    kappaEff1
    {
        type        wallHeatTransferCoeff;
        libs        ("libfieldFunctionObjects.so");
        model       kappaEff;
        ...
        region      fluid;
        patches     (".*Wall");
        rho         1.225;
        Cp          1005;
        Prl         0.707;
        Prt         0.9;
    }
    \endverbatim

    \verbatim
    kappaEff2
    {
        type        wallHeatTransferCoeff;
        libs        ("libfieldFunctionObjects.so");
        model       kappaEff;
        ...
        region      fluid;
        patches     (".*Wall");
        rho         1.225;
        Cp          1005;
        Prl         0.707;
        Prt         0.9;
        Lchar       0.001;
    }
    \endverbatim

    \verbatim
    ReynoldsAnalogy1
    {
        type       wallHeatTransferCoeff;
        libs       ("libfieldFunctionObjects.so");
        model      ReynoldsAnalogy;
        ...
        region     fluid;
        patches    (".*Wall");
        rho        1.225;
        Cp         1005;
        Uref       1.0;
    }
    \endverbatim

Note
    Writing field 'wallHeatTransferCoeff' is done by default, but it can be
    overridden by defining an empty \c objects list. For details see
    writeLocalObjects.
2020-11-17 00:46:37 +00:00
4e183e33d4 Function1::Table: simplified and rationalised
TableBase, TableFile and Table now combined into a single simpler Table class
which handle both the reading of embedded and file data using the generalised
TableReader.  The new EmbeddedTableReader handles the embedded data reading
providing the functionality of the original Table class within the same
structure that can read the data from separate files.

The input format defaults to 'embedded' unless the 'file' entry is present and
the Table class is added to the run-time selection table under the name 'table'
and 'tableFile' which provides complete backward comparability.  However it is
advisable to migrate cases to use the new 'table' entry and all tutorial cases
have been updated.
2020-11-16 23:48:47 +00:00
37ebdfe36e Function1::TableReader: Added EmbeddedTableReader so that TableFile can read embedded table data 2020-11-16 21:01:41 +00:00
ba823900eb sixDoFMotion, sixDoFAccelerationSource: Avoid construction order dependency for global constants 2020-11-15 22:33:59 +00:00
ac3473d7b8 Function2Evaluate: Corrected function declarations
Resolves bug-report https://bugs.openfoam.org/view.php?id=3591
2020-11-13 22:53:32 +00:00
bfedfcde55 dynamicMesh::sixDoFMotion: Generalised replacement for tabulated6DoFMotion
using Function1 and supporting all the standard Function1s including tabulated
and coded.

tutorials/multiphase/interFoam/laminar/sloshingTank3D6DoF updated to use
sixDoFMotion.
2020-11-13 21:12:15 +00:00
0a3ad1b41c fvOption::sixDoFAccelerationSource: Documented the structure of the accelerations vector 2020-11-13 18:42:38 +00:00
215b3bb84c fvOptions::sixDoFAccelerationSource: General replacement for tabulatedAccelerationSource
using Function1 and supporting all the standard Function1s including tabulated
and coded.
2020-11-13 18:37:05 +00:00
df4e94d173 fvOptions::effectivenessHeatExchangerSource: Updated to use Function2 2020-11-13 16:38:26 +00:00
b2bf6f3733 fvOptions::function2HeatTransfer: Generalised replacement for tabulatedHeatTransfer using Function2 2020-11-13 16:37:43 +00:00
2c6e4320af radiationModels::absorptionEmissionModels: Moved interpolationLookUpTable into the absorptionEmissionModels namespace
The interpolationLookUpTable is highly specialised for absorptionEmissionModels
which did not need to be templated and is now located in the appropriate
directory and namespace.
2020-11-13 16:27:21 +00:00
28dcfb5adc interpolateXY: Removed, superseded by Function1s::Table 2020-11-13 16:22:42 +00:00
e3d6c695c7 displacementInterpolationMotionSolver: Superseded by better interpolating motion solvers 2020-11-13 16:21:36 +00:00
08c79def7d engineValve: Updated to use Function1s::Table 2020-11-13 16:20:34 +00:00
fbadc20773 nutUTabulatedWallFunctionFvPatchScalarField: Removed redundant code
The current rough wall functions cover most requirements and there is no clear
need to maintain nutUTabulatedWallFunctionFvPatchScalarField and associated
clutter.
2020-11-13 16:17:45 +00:00
922c172352 thermophysicalTransportModels::FickianEddyDiffusivity: Updated diffusivity coefficients to Function2
The specie and Soret diffusivity coefficients are now functions of pressure and
temperature utilising the new run-time selectable Function2.
2020-11-12 18:10:30 +00:00
2cd197a536 Function2: New run-time selectable function of two variables
with many options provided from simple constant values to complex functions,
interpolated tabulated data etc. etc.
2020-11-12 18:07:42 +00:00
885fde7081 thermophysicalTransportModel: Updated handling of run-time re-reading
Add run-time re-reading of thermophysicalTransport dictionary after construction
to avoid problems if the dictionary is not present.
2020-11-12 10:20:19 +00:00
8e62369bc8 thermophysicalTransportModel: Instated and tested run-time re-reading of coefficients 2020-11-11 12:25:40 +00:00
2f4f358411 foamToVTK: Minor rationalisation to improve maintainability 2020-11-11 12:25:03 +00:00
93357284db vtk: Write VERTICES section in point-only files
This improves paraview's handling of VTK files which only contain
points. It means the points are visible without glyph-ing, and provides
the necessary input for some filters to operate correctly.
2020-11-11 11:21:51 +00:00
c5fc21c969 FickianEddyDiffusivity: Added support for diffusion coefficients D and DT as Function1 of T 2020-11-10 15:57:06 +00:00
7380da599c etc/codeTemplates: Corrected #ifndef/#define 2020-11-10 15:51:44 +00:00
e1e3d30f73 Typo correction. 2020-11-09 21:30:16 +00:00
21ab9958be Adding check for template material availability. 2020-11-09 17:20:22 +00:00
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