This is a CHT case which uses snappyHexMesh. It is a tutorial, in the traditional sense, in that it has been designed for training purposes. It does not rely on changeDictionary, surface utilities, or extensive scripting. This work was supported by Colin Moughton, at Strix
47 lines
1.4 KiB
C++
47 lines
1.4 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: dev |
|
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class volScalarField;
|
|
location "0/fluid";
|
|
object T;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
dimensions [ 0 0 0 1 0 0 0 ];
|
|
|
|
internalField uniform 300;
|
|
|
|
boundaryField
|
|
{
|
|
#includeEtc "caseDicts/setConstraintTypes"
|
|
|
|
fluidInlet
|
|
{
|
|
type fixedValue;
|
|
value $internalField;
|
|
}
|
|
fluidOutlet
|
|
{
|
|
type inletOutlet;
|
|
value $internalField;
|
|
inletValue $internalField;
|
|
}
|
|
fluid_to_metal
|
|
{
|
|
type compressible::turbulentTemperatureCoupledBaffleMixed;
|
|
value $internalField;
|
|
Tnbr T;
|
|
kappaMethod fluidThermo;
|
|
}
|
|
}
|
|
|
|
// ************************************************************************* //
|