Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
thermophysicalModels: Centralised instantiation macros
All models that require templating on the thermodynamic model, including the thermodynamic models themselves, are now instantiated using a centralised set of variadic macros. Seven macros exist to instantiate models for different classes of thermodynamics model. These are: forGases: All model combinations valid for gases forCommonGases: The most commonly used gas models forAbsoluteGases: A limited selection of gas models with absolute forms of energy, for use with Xi-combustion models forLiquids: All model combinations valid for liquids forCommonLiquids: The most commonly used liquid models forPolynomials: Model combinations with properties fitted to polynomials forSolids: All model combinations valid for solids All the *ThermoPhysics typedefs have been removed, as this system was fundamentally not extensible. The enormous lists of thermodynamic instantiations that existed for reaction thermos, chemistry models, tabulation methods, etc..., were extremely difficult to read and reason about what combinations are valid under what circumstances. This change centralises those decisions, makes them concise and readable, and makes them consistent across the entire codebase. Soot model selection has now been brought up to date in line with chemistry, combustion, and others. The angle-bracketed part of the name is no longer necessary; this information is determined directly from the existing thermo model. So, now to select a mixture-fraction soot model, the entry is simply: sootModel mixtureFraction; Rather than: sootModel mixtureFraction<rhoReactionThermo,gasHThermoPhysics>; The only place in which *ThermoPhysics typedefs are still required in the selection name is in the thermalBaffle1D boundary condition. Here there is no thermo model from which to determine a name. This eventually needs resolving either by adding a selection mechanism similar to that of the thermo packages themselves, or by removing this boundary condition in favour of the (non-1D) thermal baffle boundary condition and region model.
- Loading branch information
Will Bainbridge
committed
Apr 30, 2020
1 parent
73a594c
commit fe89082
Showing
83 changed files
with
1,999 additions
and
4,318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.