Mixed boundary condition for temperature, to be used for heat-transfer on back-to-back baffles. More...
#include <compressibleRASModels/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H>
Mixed boundary condition for temperature, to be used for heat-transfer on back-to-back baffles.
Specifies gradient and temperature such that the equations are the same on both sides:
where KDelta is heat-transfer coefficient K * deltaCoeffs
Example usage: myInterfacePatchName { typecompressible::turbulentTemperatureCoupledBaffleMixed; neighbourFieldName T; K K; // or none value uniform 300; }
Needs to be on underlying directMapped(Wall)FvPatch.
Note: if K is "none" looks up RASModel and basicThermo, otherwise expects the solver to calculate a 'K' field.
Note: runs in parallel with arbitrary decomposition. Uses directMapped functionality to calculate exchange.
Definition at line 78 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H.
 Collaboration diagram for turbulentTemperatureCoupledBaffleMixedFvPatchScalarField:Public Member Functions | |
| TypeName ("compressible::turbulentTemperatureCoupledBaffleMixed") | |
| Runtime type information.  
 | |
| turbulentTemperatureCoupledBaffleMixedFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field.  
 | |
| turbulentTemperatureCoupledBaffleMixedFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary.  
 | |
| turbulentTemperatureCoupledBaffleMixedFvPatchScalarField (const turbulentTemperatureCoupledBaffleMixedFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given.  
 | |
| virtual tmp< fvPatchScalarField > | clone () const | 
| Construct and return a clone.  
 | |
| turbulentTemperatureCoupledBaffleMixedFvPatchScalarField (const turbulentTemperatureCoupledBaffleMixedFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
| Construct as copy setting internal field reference.  
 | |
| virtual tmp< fvPatchScalarField > | clone (const DimensionedField< scalar, volMesh > &iF) const | 
| Construct and return a clone setting internal field reference.  
 | |
| tmp< scalarField > | K () const | 
| Get corresponding K field.  
 | |
| virtual void | updateCoeffs () | 
| Update the coefficients associated with the patch field.  
 | |
| virtual void | write (Ostream &) const | 
| Write.  
 | |
| turbulentTemperatureCoupledBaffleMixedFvPatchScalarField | ( | const fvPatch & | p, | 
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) | 
Construct from patch and internal field.
Definition at line 50 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
| turbulentTemperatureCoupledBaffleMixedFvPatchScalarField | ( | const fvPatch & | p, | 
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict | ||
| ) | 
Construct from patch, internal field and dictionary.
Definition at line 82 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
References Foam::exit(), Foam::FatalError, FatalErrorIn, dictionary::found(), fvPatch::name(), fvPatchField< scalar >::operator=(), and fvPatch::size().
| turbulentTemperatureCoupledBaffleMixedFvPatchScalarField | ( | const turbulentTemperatureCoupledBaffleMixedFvPatchScalarField & | ptf, | 
| const fvPatch & | p, | ||
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const fvPatchFieldMapper & | mapper | ||
| ) | 
Construct by mapping given.
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField onto a new patch
Definition at line 67 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
| turbulentTemperatureCoupledBaffleMixedFvPatchScalarField | ( | const turbulentTemperatureCoupledBaffleMixedFvPatchScalarField & | wtcsf, | 
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) | 
Construct as copy setting internal field reference.
Definition at line 132 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
| TypeName | ( | "compressible::turbulentTemperatureCoupledBaffleMixed" | ) | 
Runtime type information.
| virtual tmp<fvPatchScalarField> clone | ( | ) |  const [inline, virtual]
 | 
        
Construct and return a clone.
Definition at line 126 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H.
References turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::clone().
Referenced by turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::clone().
| virtual tmp<fvPatchScalarField> clone | ( | const DimensionedField< scalar, volMesh > & | iF ) |  const [inline, virtual]
 | 
        
Construct and return a clone setting internal field reference.
Definition at line 146 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H.
| tmp< scalarField > K | ( | ) | const | 
Get corresponding K field.
Definition at line 146 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
References boundaryField(), polyMesh::boundaryMesh(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, polyBoundaryMesh::mesh(), mesh, fvMesh::name(), RASModel(), and thermo.
Referenced by turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs().
| void updateCoeffs | ( | ) |  [virtual]
 | 
        
Update the coefficients associated with the patch field.
Definition at line 192 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
References boundary(), mapDistribute::constructMap(), mapDistribute::constructSize(), Pstream::defaultCommsType, fvPatch::deltaCoeffs(), mapDistribute::distribute(), Foam::endl(), Foam::gAverage(), Foam::gMax(), Foam::gMin(), Foam::gSum(), patchIdentifier::index(), Foam::Info, K, turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::K(), fvPatch::lookupPatchField(), directMappedPatchBase::map(), fvPatch::name(), Foam::refCast(), directMappedPatchBase::sampleMesh(), directMappedPatchBase::samplePolyPatch(), mapDistribute::schedule(), Foam::fvc::snGrad(), and mapDistribute::subMap().
| void write | ( | Ostream & | os ) |  const [virtual]
 | 
        
Write.
Definition at line 304 of file turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C.
References token::END_STATEMENT, Foam::nl, and Ostream::writeKeyword().