diff --git a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/externalCoupledTemperatureMixed/externalCoupledTemperatureMixedFvPatchScalarField.H b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/externalCoupledTemperatureMixed/externalCoupledTemperatureMixedFvPatchScalarField.H index ae2e3d4fbbf41c0f22d5e4eaf2f7f394d87dcc6e..461d5071e8d856f5237b1755bf25f4ae103ca615 100644 --- a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/externalCoupledTemperatureMixed/externalCoupledTemperatureMixedFvPatchScalarField.H +++ b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/externalCoupledTemperatureMixed/externalCoupledTemperatureMixedFvPatchScalarField.H @@ -28,44 +28,56 @@ Group grpCoupledBoundaryConditions Description - This boundary condition provides a temperatue interface to an external + This boundary condition provides a temperature interface to an external application. Values are transferred as plain text files, where OpenFOAM data is written as: - # Patch: \<patch name\> - \<magSf1\> \<value1\> \<qDot1\> \<htc1\> - \<magSf2\> \<value2\> \<qDot2\> \<htc2\> - \<magSf3\> \<value3\> \<qDot3\> \<htc2\> + \verbatim + # Patch: <patch name> + <magSf1> <value1> <qDot1> <htc1> + <magSf2> <value2> <qDot2> <htc2> + <magSf3> <value3> <qDot3> <htc2> ... - \<magSfN\> \<valueN\> \<qDotN\> \<htcN\> + <magSfN> <valueN> <qDotN> <htcN> + \endverbatim and received as the constituent pieces of the `mixed' condition, i.e. - # Patch: \<patch name\> - \<value1\> \<gradient1\> \<valueFracion1\> - \<value2\> \<gradient2\> \<valueFracion2\> - \<value3\> \<gradient3\> \<valueFracion3\> + \verbatim + # Patch: <patch name> + <value1> <gradient1> <valueFraction1> + <value2> <gradient2> <valueFraction2> + <value3> <gradient3> <valueFraction3> ... - \<valueN\> \<gradientN\> \<valueFracionN\> + <valueN> <gradientN> <valueFractionN> + \endverbatim Data is sent/received as a single file for all patches from the directory - $FOAM_CASE/\<commsDir\> + \verbatim + $FOAM_CASE/<commsDir> + \endverbatim At start-up, the boundary creates a lock file, i.e.. + \verbatim OpenFOAM.lock + \endverbatim ... to signal the external source to wait. During the boundary condition update, boundary values are written to file, e.g. - \<fileName\>.out + \verbatim + <fileName>.out + \endverbatim The lock file is then removed, instructing the external source to take control of the program execution. When ready, the external program should create the return values, e.g. to file - \<fileName\>.in + \verbatim + <fileName>.in + \endverbatim ... and then re-instate the lock file. The boundary condition will then read the return values, and pass program execution back to OpenFOAM. @@ -85,13 +97,13 @@ Description Example of the boundary condition specification: \verbatim - myPatch - { - type externalCoupledTemperature; - commsDir "$FOAM_CASE/comms"; - fileName data; - calcFrequency 1; - } + myPatch + { + type externalCoupledTemperature; + commsDir "$FOAM_CASE/comms"; + fileName data; + calcFrequency 1; + } \endverbatim SeeAlso diff --git a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/externalWallHeatFluxTemperature/externalWallHeatFluxTemperatureFvPatchScalarField.H b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/externalWallHeatFluxTemperature/externalWallHeatFluxTemperatureFvPatchScalarField.H index 8e1e3a8c259598760b9f2fd3494b6e621456c9fc..241f673ad751a51f45b7ca9287f5029c12e01e90 100644 --- a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/externalWallHeatFluxTemperature/externalWallHeatFluxTemperatureFvPatchScalarField.H +++ b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/externalWallHeatFluxTemperature/externalWallHeatFluxTemperatureFvPatchScalarField.H @@ -82,7 +82,7 @@ Description } \endverbatim - Note: + Note: \li Only supply \c h and \c Ta, or \c q in the dictionary (see above) \li \c kappa and \c kappaName are inherited from temperatureCoupledBase. diff --git a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/thermalBaffle1D/thermalBaffle1DFvPatchScalarField.H b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/thermalBaffle1D/thermalBaffle1DFvPatchScalarField.H index d861f56895ac8d38241cd0b5e2506b12ee4ffc3a..4ee5df4bf221f1ef4fa25522bd7cb1fae29fb68b 100644 --- a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/thermalBaffle1D/thermalBaffle1DFvPatchScalarField.H +++ b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/thermalBaffle1D/thermalBaffle1DFvPatchScalarField.H @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - Foam::thermalBaffle1DFvPatchScalarField + Foam::compressible::thermalBaffle1DFvPatchScalarField Group grpThermoBoundaryConditions diff --git a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentHeatFluxTemperature/turbulentHeatFluxTemperatureFvPatchScalarField.H b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentHeatFluxTemperature/turbulentHeatFluxTemperatureFvPatchScalarField.H index b288e821d9ba72c828a4d5fd466d6fe935d46570..7e4c2652709bd73cb9399dda69fef3678bd51433 100644 --- a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentHeatFluxTemperature/turbulentHeatFluxTemperatureFvPatchScalarField.H +++ b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentHeatFluxTemperature/turbulentHeatFluxTemperatureFvPatchScalarField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -22,7 +22,7 @@ License along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class - Foam::turbulentHeatFluxTemperatureFvPatchScalarField + Foam::compressible::turbulentHeatFluxTemperatureFvPatchScalarField Description Fixed heat boundary condition to specify temperature gradient. Input diff --git a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H index c541912d1e6297e654c48a27b89d5730123edf7f..ffe99ac734eebf0ad41907d2a9d7535db28f4d23 100644 --- a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H +++ b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H @@ -27,15 +27,13 @@ Class Description Mixed boundary condition for temperature, to be used for heat-transfer - on back-to-back baffles.Optional thin thermal layer - resistances can be specified through thicknessLayers and kappaLayers - entries. + on back-to-back baffles. Optional thin thermal layer resistances can be + specified through thicknessLayers and kappaLayers entries. The thermal conductivity, \c kappa, can either be retrieved from the mesh database using the \c lookup option, or from a \c solidThermo or \c fluidThermo thermophysical package. - Specifies gradient and temperature such that the equations are the same on both sides: - refGradient = zero gradient @@ -64,7 +62,7 @@ Description kappa lookup; kappaName kappa; thicknessLayers (0.1 0.2 0.3 0.4); - kappaLayers (1 2 3 4) + kappaLayers (1 2 3 4); value uniform 300; } \endverbatim diff --git a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureRadCoupledMixed/turbulentTemperatureRadCoupledMixedFvPatchScalarField.H b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureRadCoupledMixed/turbulentTemperatureRadCoupledMixedFvPatchScalarField.H index 6bd2aaa6e9959c3ff56023a30c1dc4b88e6cd911..9a22101405498f62b539b5279483f0afeba84685 100644 --- a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureRadCoupledMixed/turbulentTemperatureRadCoupledMixedFvPatchScalarField.H +++ b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureRadCoupledMixed/turbulentTemperatureRadCoupledMixedFvPatchScalarField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -55,24 +55,24 @@ Description type compressible::turbulentTemperatureRadCoupledMixed; Tnbr T; kappa lookup; - KappaName kappa; + kappaName kappa; QrNbr Qr; // or none. Name of Qr field on neighbour region Qr Qr; // or none. Name of Qr field on local region thicknessLayers (0.1 0.2 0.3 0.4); - kappaLayers (1 2 3 4) + kappaLayers (1 2 3 4); value uniform 300; } \endverbatim Needs to be on underlying mapped(Wall)FvPatch. - Note: kappa : heat conduction at patch. Gets supplied how to - lookup/calculate - kappa: - - 'lookup' : lookup volScalarField (or volSymmTensorField) with name - - 'fluidThermo' : use fluidThermo and compressible::RASmodel to calculate K - - 'solidThermo' : use solidThermo kappa() - - 'directionalSolidThermo' directionalKappa() + Note: + + \li \c kappa and \c kappaName are inherited from temperatureCoupledBase. + + +SeeAlso + Foam::temperatureCoupledBase SourceFiles turbulentTemperatureRadCoupledMixedFvPatchScalarField.C