Commit Graph

5148 Commits

Author SHA1 Message Date
8ec5eac35e twoPhaseMixtureThermo: Corrected mixture molecular weight
Resolves bug-report https://bugs.openfoam.org/view.php?id=3645
2021-03-21 10:09:46 +00:00
7dc7956327 wallHeatTransferCoeff: Fixed read bug and standardised input 2021-03-19 14:37:13 +00:00
8312197b0f dictionary: Added backwards compatible stream lookup 2021-03-19 14:37:03 +00:00
34f6e40753 fvModels: massSource: Specify temperature in example 2021-03-19 09:43:24 +00:00
da288597e2 tutorials: Replaced semiImplicitSource with more specific fvModels 2021-03-19 09:43:24 +00:00
8d707b48c6 fvModels: Added heatSource model
This model applies a heat source. It requires either the power, Q, or
the power per unit volume, q, to be specified.

Example usage:

    heatSource
    {
        type            heatSource;

        selectionMode   cellSet;
        cellSet         heater;

        Q               1e6;
    }
2021-03-19 09:43:24 +00:00
07a0afd011 fvModels: Added heatTransfer model
This model represents volumetric heat exchange with a constant ambient
temperature, using an area per unit volume, and a heat transfer
coefficient. It utilises the same heat transfer coefficient modelling as
the equivalent inter-region option.

Example usage:

    heatTransfer
    {
        type            heatTransfer;

        heatTransferCoeffs
        {
            selectionMode   cellSet;
            cellSet         c0;

            semiImplicit    no;

            Ta              300;

            type            constant;

            AoV             200;
            htc             10;
        }
    }
2021-03-19 09:43:24 +00:00
4442ce54a5 fvModels: interRegionHeatTransfer: Rationalisation
There is now just one inter-region heat transfer model, and heat
transfer coefficient models are selected as sub-models. This has been
done to permit usage of the heat transfer models in other contexts.

Example usage:

    interRegionHeatTransfer
    {
        type            interRegionHeatTransfer;

        interRegionHeatTransferCoeffs
        {
            nbrRegion       other;

            interpolationMethod cellVolumeWeight;
            master          true;

            semiImplicit    no;

            type            constant;

            AoV             200;
            htc             10;
        }
    }
2021-03-19 09:43:24 +00:00
de39bb45ca src/lagrangian/parcel/submodels/Thermodynamic/SurfaceFilmModel: Temporary revert of the film Cp change 2021-03-19 09:41:39 +00:00
c2b572b468 lagrangian/parcel/submodels/Thermodynamic/SurfaceFilmModel: Updated for changes to film thermo 2021-03-19 09:28:41 +00:00
f1f7843109 Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev 2021-03-18 16:30:10 +00:00
3931ac406a surfaceFilmModels: Remove unnecessary caching of derived surface and wall fields 2021-03-18 16:29:27 +00:00
ac169bb5bf foamInfo: Improved searching for models in the applications directory 2021-03-18 12:18:35 +00:00
0e4663e530 Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev 2021-03-17 14:21:21 +00:00
76cfa3d136 applyBoundaryLayer: Improved the calculation of omega 2021-03-17 14:20:56 +00:00
4865cd18c5 multiphaseEulerFoam: mixerVessel2D: Made fully incompressible
This now serves as an example of a multiphaseEulerFoam case that
requires pressure referencing.
2021-03-17 08:42:03 +00:00
762fb48ddf multiphaseEulerFoam: Use pressureControl
pMin and pMax settings are now available in multiphaseEulerFoam in the
PIMPLE section of the system/fvOptions file. This is consistent with
other compressible solvers. The pMin setting in system/phaseProperties
is no longer read, and it's presence will result in a warning.
2021-03-17 08:42:03 +00:00
96f07b0137 surfaceFilmModels: Removed dependency on the deprecated SLGThermo
SLGThermo has been moved to lagrangian, which still depends on it, pending
complete removal and replacement with a more rational interface to the carrier
phase thermodynamics.
2021-03-16 16:47:07 +00:00
84103902ac solidDisplacementFoam: Corrected post-processing stress
to correspond to the new displacement equation formulation which handles
non-uniform density.

Resolves bug-report https://bugs.openfoam.org/view.php?id=3642
2021-03-15 10:36:01 +00:00
633095a790 surfaceFilmModels::transferModels: Removed unused functions 20210315 2021-03-12 20:33:00 +00:00
c5edb78b58 surfaceFilmModels: Added missing momentum transfer functionality 2021-03-12 20:21:09 +00:00
17e8ceed64 fvModels: Prevent ambiguity when using the index operator
fvModels should operate primarily like a list of fvModel-s, so the index
operator of relevance is the one from its list base class. This has been
made explicit to prevent ambiguity associated with the same operator in
the dictionary base class.
2021-03-12 16:57:40 +00:00
2cb03184cf ReynoldsStress: Added RSource and epsilonSource methods
These permit derivations of reynolds stress models to add source terms
into the R and epsilon equations

Patch contributed by Institute of Fluid Dynamics,
Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
2021-03-11 17:36:13 +00:00
16b19a3106 MomentumTransportModels: Add missing groups to turbulence fields
Patch contributed by Institute of Fluid Dynamics,
Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
2021-03-11 17:13:42 +00:00
a3c8514870 fvModels: Source method field reference made constant
This makes the interface consistent with that of the fvMatrix and
other fvMatrix-generating functions; e.g., fvm::ddt.
2021-03-10 16:22:24 +00:00
b0a57397a4 plateFilm: New compressibleInterFoam tutorial to demonstrate the VoFSurfaceFilm fvModel
The film is left to drain down a vertical plate after the liquid drains out.
2021-03-10 14:24:58 +00:00
252b71f3c6 fvModels: Simplified structure using fvCellSet member data
which will allow for a run-time selectable and hence extensible fvCellSet in the
future.
2021-03-09 15:17:32 +00:00
e090643f63 fvConstraints: Simplified structure using fvCellSet member data
which will allow for a run-time selectable and hence extensible fvCellSet in the
future.
2021-03-09 13:24:05 +00:00
4c4673ab24 Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev 2021-03-09 12:41:23 +00:00
fb7edbcffc tutorials/compressible/rhoSimpleFoam/aerofoilNACA0012: Corrected fvConstraints 2021-03-09 12:40:52 +00:00
b79c2d3aea fvModels: Removed temporary placeholder argument 2021-03-09 08:20:03 +00:00
6e172a708d fvModels: codedSource -> codedFvModel 2021-03-08 14:53:22 +00:00
cce3e13fe3 sixDoFAccelerationSource: Corrected typo 2021-03-08 12:25:12 +00:00
46dbb26299 fvModels: Corrected typos 2021-03-08 12:15:11 +00:00
da3f4cc92e fvModels, fvConstraints: Rational separation of fvOptions between physical modelling and numerical constraints
The new fvModels is a general interface to optional physical models in the
finite volume framework, providing sources to the governing conservation
equations, thus ensuring consistency and conservation.  This structure is used
not only for simple sources and forces but also provides a general run-time
selection interface for more complex models such as radiation and film, in the
future this will be extended to Lagrangian, reaction, combustion etc.  For such
complex models the 'correct()' function is provided to update the state of these
models at the beginning of the PIMPLE loop.

fvModels are specified in the optional constant/fvModels dictionary and
backward-compatibility with fvOption is provided by reading the
constant/fvOptions or system/fvOptions dictionary if present.

The new fvConstraints is a general interface to optional numerical constraints
applied to the matrices of the governing equations after construction and/or to
the resulting field after solution.  This system allows arbitrary changes to
either the matrix or solution to ensure numerical or other constraints and hence
violates consistency with the governing equations and conservation but it often
useful to ensure numerical stability, particularly during the initial start-up
period of a run.  Complex manipulations can be achieved with fvConstraints, for
example 'meanVelocityForce' used to maintain a specified mean velocity in a
cyclic channel by manipulating the momentum matrix and the velocity solution.

fvConstraints are specified in the optional system/fvConstraints dictionary and
backward-compatibility with fvOption is provided by reading the
constant/fvOptions or system/fvOptions dictionary if present.

The separation of fvOptions into fvModels and fvConstraints provides a rational
and consistent separation between physical and numerical models which is easier
to understand and reason about, avoids the confusing issue of location of the
controlling dictionary file, improves maintainability and easier to extend to
handle current and future requirements for optional complex physical models and
numerical constraints.
2021-03-07 22:45:01 +00:00
a28fd5552f systemDict: Changed return to IOdictionary 2021-03-07 12:11:39 +00:00
b63173bd5f extrudeMesh: Updated handling of -dict option 2021-03-05 15:25:23 +00:00
a0ca9a745e applications/utilities/surface: Updated handling of -dict option 2021-03-05 14:43:35 +00:00
7d22121153 tutorials/multiphase/interFoam/RAS/waterChannel/Allmesh: Updated extrudeMesh -dict option 2021-03-05 13:46:55 +00:00
cf552e6343 utilities: Rationalised and standardised the handling of the -dict option 2021-03-05 13:42:46 +00:00
d4d21c9c04 engineMesh: Added dynamic() member function 2021-03-05 13:36:06 +00:00
9d520c6ef0 multiphaseEuerFoam: LaakkonenAlopaeusAittamaaDsd: Corrected SourceFiles documentation
Patch contributed by Institute of Fluid Dynamics,
Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
2021-03-03 14:12:32 +00:00
a936156f6d multiphaseEulerFoam: populationBalance: Removed population balance name suffix
A population balance suffix after the phase suffix makes determining the
phase for a given name more complex. The additional suffix is also
unnecessary as a phase can only ever belong to one population balance,
so the phase name alone uniquely idetifies the grouping.

Patch contributed by Institute of Fluid Dynamics,
Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
2021-03-03 14:06:35 +00:00
9055f96a1b ISstream: Removed limits on buffer size and made thread safe 2021-03-03 13:41:24 +00:00
2730049f70 fvOptions: Merged corrections with constraints
Field corrections are effectively explicit constraints applied to the field
after solution rather than to the equation and it significantly simplifies the
implementation to treat them as a special case of constraints.  To implement
this the fvOption::correct(<field>) function has been renamed
fvOption::constrain(<field>) and uses constrainsField and constrainedFields.
2021-03-02 16:57:44 +00:00
bdf45fb915 multiphaseEulerFoam: Added correctPhi support for moving-mesh cases with cell-volume change 2021-03-01 17:12:29 +00:00
be86c8ec0f CorrectPhi: Separated correctUphiBCs to simplify and generalise the use of CorrectPhi 2021-03-01 17:11:05 +00:00
6eb19d1b4a multiphaseEulerFoam::MovingPhaseModel: Added cast for older gcc versions 2021-03-01 14:43:45 +00:00
91874975aa multiphaseEulerFoam: Added UfRef() access function for moving-mesh flux manipulations 2021-03-01 11:53:41 +00:00
0e1db2f3c6 compressibleInterFoam: Corrected handling for rAU for restart of moving-mesh cases 2021-02-26 22:23:48 +00:00