This BC solves a steady 1D thermal baffle. More...


Public Member Functions | |
| TypeName ("compressible::thermalBaffle1D") | |
| Runtime type information. More... | |
| thermalBaffle1DFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. More... | |
| thermalBaffle1DFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. More... | |
| thermalBaffle1DFvPatchScalarField (const thermalBaffle1DFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given. More... | |
| thermalBaffle1DFvPatchScalarField (const thermalBaffle1DFvPatchScalarField &) | |
| Construct as copy. More... | |
| virtual tmp< fvPatchScalarField > | clone () const |
| Construct and return a clone. More... | |
| thermalBaffle1DFvPatchScalarField (const thermalBaffle1DFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
| Construct as copy setting internal field reference. More... | |
| virtual tmp< fvPatchScalarField > | clone (const DimensionedField< scalar, volMesh > &iF) const |
| Construct and return a clone setting internal field reference. More... | |
| virtual void | autoMap (const fvPatchFieldMapper &) |
| Map (and resize as needed) from self given a mapping object. More... | |
| virtual void | rmap (const fvPatchScalarField &, const labelList &) |
| Reverse map the given fvPatchField onto this fvPatchField. More... | |
| virtual void | updateCoeffs () |
| Update the coefficients associated with the patch field. More... | |
| virtual void | write (Ostream &) const |
| Write. More... | |
Public Member Functions inherited from mappedPatchBase | |
| TypeName ("mappedPatchBase") | |
| Runtime type information. More... | |
| mappedPatchBase (const polyPatch &) | |
| Construct from patch. More... | |
| mappedPatchBase (const polyPatch &pp, const word &sampleRegion, const sampleMode sampleMode, const word &samplePatch, const vectorField &offsets) | |
| Construct with offsetMode=non-uniform. More... | |
| mappedPatchBase (const polyPatch &pp, const word &sampleRegion, const sampleMode sampleMode, const word &samplePatch, const vector &offset) | |
| Construct from offsetMode=uniform. More... | |
| mappedPatchBase (const polyPatch &pp, const word &sampleRegion, const sampleMode sampleMode, const word &samplePatch, const scalar distance) | |
| Construct from offsetMode=normal and distance. More... | |
| mappedPatchBase (const polyPatch &, const dictionary &) | |
| Construct from dictionary. More... | |
| mappedPatchBase (const polyPatch &, const sampleMode, const dictionary &) | |
| Construct from dictionary and (collocated) sample mode. More... | |
| mappedPatchBase (const polyPatch &, const mappedPatchBase &) | |
| Construct as copy, resetting patch. More... | |
| mappedPatchBase (const polyPatch &, const mappedPatchBase &, const labelUList &mapAddressing) | |
| Construct as copy, resetting patch, map original data. More... | |
| virtual | ~mappedPatchBase () |
| Destructor. More... | |
| void | clearOut () |
| const sampleMode & | mode () const |
| What to sample. More... | |
| const word & | sampleRegion () const |
| Region to sample. More... | |
| const word & | samplePatch () const |
| Patch (only if NEARESTPATCHFACE) More... | |
| const word & | coupleGroup () const |
| PatchGroup (only if NEARESTPATCHFACE) More... | |
| label | sampleSize () const |
| Return size of mapped mesh/patch/boundary. More... | |
| const vector & | offset () const |
| Offset vector (from patch faces to destination mesh objects) More... | |
| const vectorField & | offsets () const |
| Offset vector (from patch faces to destination mesh objects) More... | |
| bool | sameRegion () const |
| Cached sampleRegion != mesh.name() More... | |
| const mapDistribute & | map () const |
| Return reference to the parallel distribution map. More... | |
| const AMIPatchToPatchInterpolation & | AMI (const bool forceUpdate=false) const |
| Return reference to the AMI interpolator. More... | |
| const autoPtr< Foam::searchableSurface > & | surfPtr () const |
| Return a pointer to the AMI projection surface. More... | |
| const polyMesh & | sampleMesh () const |
| Get the region mesh. More... | |
| const polyPatch & | samplePolyPatch () const |
| Get the patch on the region. More... | |
| tmp< pointField > | samplePoints () const |
| Get the sample points. More... | |
| template<class Type > | |
| void | distribute (List< Type > &lst) const |
| Wrapper around map/interpolate data distribution. More... | |
| template<class Type , class CombineOp > | |
| void | distribute (List< Type > &lst, const CombineOp &cop) const |
| Wrapper around map/interpolate data distribution with operation. More... | |
| template<class Type > | |
| void | reverseDistribute (List< Type > &lst) const |
| Wrapper around map/interpolate data distribution. More... | |
| template<class Type , class CombineOp > | |
| void | reverseDistribute (List< Type > &lst, const CombineOp &cop) const |
| Wrapper around map/interpolate data distribution with operation. More... | |
Additional Inherited Members | |
Public Types inherited from mappedPatchBase | |
| enum | sampleMode { NEARESTCELL, NEARESTPATCHFACE, NEARESTPATCHFACEAMI, NEARESTPATCHPOINT, NEARESTFACE, NEARESTONLYCELL } |
| Mesh items to sample. More... | |
| enum | offsetMode { UNIFORM, NONUNIFORM, NORMAL } |
| How to project face centres. More... | |
| typedef Tuple2< pointIndexHit, Tuple2< scalar, label > > | nearInfo |
| Helper class for finding nearest. More... | |
Static Public Member Functions inherited from mappedPatchBase | |
| static pointIndexHit | facePoint (const polyMesh &, const label facei, const polyMesh::cellDecomposition) |
| Get a point on the face given a face decomposition method: More... | |
Static Public Attributes inherited from mappedPatchBase | |
| static const NamedEnum< sampleMode, 6 > | sampleModeNames_ |
| static const NamedEnum< offsetMode, 3 > | offsetModeNames_ |
Protected Member Functions inherited from mappedPatchBase | |
| tmp< pointField > | facePoints (const polyPatch &) const |
| Get the points from face-centre-decomposition face centres. More... | |
| void | collectSamples (const pointField &facePoints, pointField &, labelList &patchFaceProcs, labelList &patchFaces, pointField &patchFc) const |
| Collect single list of samples and originating processor+face. More... | |
| void | findSamples (const sampleMode mode, const pointField &, labelList &sampleProcs, labelList &sampleIndices, pointField &sampleLocations) const |
| Find cells/faces containing samples. More... | |
| tmp< pointField > | samplePoints (const pointField &) const |
| Get the sample points given the face points. More... | |
| void | calcMapping () const |
| Calculate mapping. More... | |
| void | calcAMI () const |
| Calculate AMI interpolator. More... | |
Static Protected Member Functions inherited from mappedPatchBase | |
| static tmp< pointField > | readListOrField (const word &keyword, const dictionary &dict, const label size) |
| Helper to read field or non-uniform list from dictionary. More... | |
Protected Attributes inherited from mappedPatchBase | |
| const polyPatch & | patch_ |
| Patch to sample. More... | |
| word | sampleRegion_ |
| Region to sample. More... | |
| const sampleMode | mode_ |
| What to sample. More... | |
| word | samplePatch_ |
| Patch (if in sampleMode NEARESTPATCH*) More... | |
| const coupleGroupIdentifier | coupleGroup_ |
| PatchGroup (if in sampleMode NEARESTPATCH*) More... | |
| offsetMode | offsetMode_ |
| How to obtain samples. More... | |
| vector | offset_ |
| Offset vector (uniform) More... | |
| vectorField | offsets_ |
| Offset vector (nonuniform) More... | |
| scalar | distance_ |
| Offset distance (normal) More... | |
| bool | sameRegion_ |
| Same region. More... | |
| autoPtr< mapDistribute > | mapPtr_ |
| Communication schedule: More... | |
| autoPtr< AMIPatchToPatchInterpolation > | AMIPtr_ |
| Pointer to AMI interpolator. More... | |
| const bool | AMIReverse_ |
| Flag to indicate that slave patch should be reversed for AMI. More... | |
| autoPtr< searchableSurface > | surfPtr_ |
| Pointer to projection surface employed by AMI interpolator. More... | |
| dictionary | surfDict_ |
| Dictionary storing projection surface description. More... | |
This BC solves a steady 1D thermal baffle.
The solid properties are specify as dictionary. Optionaly radiative heat flux (qr) can be incorporated into the balance. Some under-relaxation might be needed on qr. Baffle and solid properties need to be specified on the master side of the baffle.
<masterPatchName>
{
type compressible::thermalBaffle1D<hConstSolidThermoPhysics>;
samplePatch <slavePatchName>;
thickness uniform 0.005; // thickness [m]
Qs uniform 100; // heat flux [W/m2]
qr none;
qrRelaxation 1;
// Solid thermo
specie
{
molWeight 20;
}
transport
{
kappa 1;
}
thermodynamics
{
Hf 0;
Cp 10;
}
equationOfState
{
rho 10;
}
value uniform 300;
}
<slavePatchName>
{
type compressible::thermalBaffle1D<hConstSolidThermoPhysics>;
samplePatch <masterPatchName>;
qr none;
relaxation 1;
}
Definition at line 109 of file thermalBaffle1DFvPatchScalarField.H.
| thermalBaffle1DFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Construct from patch and internal field.
Definition at line 43 of file thermalBaffle1DFvPatchScalarField.C.
Referenced by thermalBaffle1DFvPatchScalarField< solidType >::clone(), and thermalBaffle1DFvPatchScalarField< solidType >::thermalBaffle1DFvPatchScalarField().

| thermalBaffle1DFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict | ||
| ) |
Construct from patch, internal field and dictionary.
Definition at line 89 of file thermalBaffle1DFvPatchScalarField.C.
References dictionary::found(), fvPatchField< Type >::operator=(), fvPatch::size(), and thermalBaffle1DFvPatchScalarField< solidType >::thermalBaffle1DFvPatchScalarField().

| thermalBaffle1DFvPatchScalarField | ( | const thermalBaffle1DFvPatchScalarField< solidType > & | ptf, |
| const fvPatch & | p, | ||
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const fvPatchFieldMapper & | mapper | ||
| ) |
Construct by mapping given.
thermalBaffle1DFvPatchScalarField onto a new patch
Definition at line 65 of file thermalBaffle1DFvPatchScalarField.C.
References thermalBaffle1DFvPatchScalarField< solidType >::thermalBaffle1DFvPatchScalarField().

| thermalBaffle1DFvPatchScalarField | ( | const thermalBaffle1DFvPatchScalarField< solidType > & | ptf | ) |
Construct as copy.
Definition at line 145 of file thermalBaffle1DFvPatchScalarField.C.
References thermalBaffle1DFvPatchScalarField< solidType >::thermalBaffle1DFvPatchScalarField().

| thermalBaffle1DFvPatchScalarField | ( | const thermalBaffle1DFvPatchScalarField< solidType > & | ptf, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Construct as copy setting internal field reference.
Definition at line 166 of file thermalBaffle1DFvPatchScalarField.C.
References thermalBaffle1DFvPatchScalarField< solidType >::autoMap(), fvPatch::boundaryMesh(), mapDistribute::distribute(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, mappedPatchBase::map(), patchi, and tmp< T >::ref().

| TypeName | ( | "compressible::thermalBaffle1D" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 199 of file thermalBaffle1DFvPatchScalarField.H.
References thermalBaffle1DFvPatchScalarField< solidType >::thermalBaffle1DFvPatchScalarField().

|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 216 of file thermalBaffle1DFvPatchScalarField.H.
References thermalBaffle1DFvPatchScalarField< solidType >::autoMap(), thermalBaffle1DFvPatchScalarField< solidType >::rmap(), thermalBaffle1DFvPatchScalarField< solidType >::thermalBaffle1DFvPatchScalarField(), thermalBaffle1DFvPatchScalarField< solidType >::updateCoeffs(), and thermalBaffle1DFvPatchScalarField< solidType >::write().

|
virtual |
Map (and resize as needed) from self given a mapping object.
Definition at line 296 of file thermalBaffle1DFvPatchScalarField.C.
References mappedPatchBase::clearOut(), and thermalBaffle1DFvPatchScalarField< solidType >::rmap().
Referenced by thermalBaffle1DFvPatchScalarField< solidType >::clone(), and thermalBaffle1DFvPatchScalarField< solidType >::thermalBaffle1DFvPatchScalarField().


|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Definition at line 314 of file thermalBaffle1DFvPatchScalarField.C.
References thermalBaffle1DFvPatchScalarField< solidType >::rmap().
Referenced by thermalBaffle1DFvPatchScalarField< solidType >::autoMap(), thermalBaffle1DFvPatchScalarField< solidType >::clone(), and thermalBaffle1DFvPatchScalarField< solidType >::rmap().


|
virtual |
Update the coefficients associated with the patch field.
Definition at line 333 of file thermalBaffle1DFvPatchScalarField.C.
References Foam::constant::atomic::alpha, fvPatch::boundaryMesh(), mapDistribute::distribute(), Foam::endl(), forAll, Foam::gAverage(), Foam::gMax(), Foam::gMin(), Foam::Info, ThermalDiffusivity< BasicTurbulenceModel >::kappaEff(), mappedPatchBase::map(), UPstream::msgType(), fvPatch::name(), patchi, turbulenceModel::propertiesName, and Foam::fvc::snGrad().
Referenced by thermalBaffle1DFvPatchScalarField< solidType >::clone().


|
virtual |
Write.
Reimplemented from mappedPatchBase.
Definition at line 426 of file thermalBaffle1DFvPatchScalarField.C.
References token::END_STATEMENT, Foam::nl, Foam::blockMeshTools::write(), mappedPatchBase::write(), and Ostream::writeKeyword().
Referenced by thermalBaffle1DFvPatchScalarField< solidType >::clone().


1.8.13