Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev

This commit is contained in:
Henry Weller
2018-02-12 16:57:50 +00:00
37 changed files with 1625 additions and 4 deletions

View File

@ -89,6 +89,7 @@ Foam::fileName Foam::triSurfaceMesh::relativeFilePath
return fName;
}
Foam::fileName Foam::triSurfaceMesh::checkFile
(
const regIOobject& io,
@ -96,15 +97,16 @@ Foam::fileName Foam::triSurfaceMesh::checkFile
const bool isGlobal
)
{
fileName fName;
if (dict.readIfPresent("file", fName, false, false))
fileName dictFName, fName;
if (dict.readIfPresent("file", dictFName, false, false))
{
fName = relativeFilePath(io, fName, isGlobal);
fName = relativeFilePath(io, dictFName, isGlobal);
if (!exists(fName))
{
FatalErrorInFunction
<< "Cannot find triSurfaceMesh at " << fName
<< "Cannot find triSurfaceMesh at " << io.path(dictFName)
<< exit(FatalError);
}
}

View File

@ -0,0 +1,46 @@
/*--------------------------------*- 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;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,42 @@
/*--------------------------------*- 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 volVectorField;
location "0/fluid";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 1 -1 0 0 0 0 ];
internalField uniform (0 0 1e-3);
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
fluidInlet
{
type fixedValue;
value uniform (0 0 1e-3);
}
fluidOutlet
{
type pressureInletOutletVelocity;
value $internalField;
}
fluid_to_metal
{
type noSlip;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,33 @@
/*--------------------------------*- 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 p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 1 -1 -2 0 0 0 0 ];
internalField uniform 0;
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
".*"
{
type calculated;
value $internalField;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,38 @@
/*--------------------------------*- 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 p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 1 -1 -2 0 0 0 0 ];
internalField uniform 0;
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
".*"
{
type fixedFluxPressure;
value $internalField;
}
fluidOutlet
{
type fixedValue;
value $internalField;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,39 @@
/*--------------------------------*- 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/heater";
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 0 0 1 0 0 0 ];
internalField uniform 300;
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
"heater(Inlet|Outlet|External)"
{
type zeroGradient;
}
heater_to_metal
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
value $internalField;
Tnbr T;
kappaMethod solidThermo;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,33 @@
/*--------------------------------*- 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/heater";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
".*"
{
type calculated;
value $internalField;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,46 @@
/*--------------------------------*- 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/metal";
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 0 0 1 0 0 0 ];
internalField uniform 300;
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
"metal(Inlet|Outlet|External)"
{
type zeroGradient;
}
metal_to_fluid
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
value $internalField;
Tnbr T;
kappaMethod solidThermo;
}
metal_to_heater
{
type compressible::turbulentTemperatureCoupledBaffleMixed;
value $internalField;
Tnbr T;
kappaMethod solidThermo;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,33 @@
/*--------------------------------*- 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/metal";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
".*"
{
type calculated;
value $internalField;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,9 @@
#!/bin/sh
cd ${0%/*} || exit 1
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -rf constant/*/polyMesh 0/cellToRegion 0/*/cellToRegion

View File

@ -0,0 +1,15 @@
#!/bin/sh
cd ${0%/*} || exit 1
. $WM_PROJECT_DIR/bin/tools/RunFunctions
rm -rf constant/polyMesh/sets
runApplication blockMesh
runApplication snappyHexMesh -overwrite
runApplication splitMeshRegions -cellZones -overwrite
runApplication decomposePar -allRegions
runParallel $(getApplication)
runApplication reconstructPar -allRegions
paraFoam -touchAll

View File

@ -0,0 +1,21 @@
/*--------------------------------*- 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 uniformDimensionedVectorField;
location "constant/fluid";
object g;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -2 0 0 0 0];
value (0 0 0);
// ************************************************************************* //

View File

@ -0,0 +1,53 @@
/*--------------------------------*- 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 dictionary;
location "constant/fluid";
object thermophysicalProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
thermoType
{
type heRhoThermo;
mixture pureMixture;
transport const;
thermo hConst;
equationOfState rhoConst;
specie specie;
energy sensibleEnthalpy;
}
mixture
{
// Water
specie
{
molWeight 18;
}
equationOfState
{
rho 1000;
}
thermodynamics
{
Cp 4181;
Hf 0;
}
transport
{
mu 959e-6;
Pr 6.62;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,20 @@
/*--------------------------------*- 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 dictionary;
location "constant/fluid";
object turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType laminar;
// ************************************************************************* //

View File

@ -0,0 +1,36 @@
/*--------------------------------*- 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 dictionary;
location "constant/heater";
object fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
options
{
energySource
{
type scalarSemiImplicitSource;
timeStart 0;
duration 1e6;
selectionMode all;
volumeMode specific;
injectionRateSuSp
{
h (1e7 0); // W/m^3 == kg/m/s^3
}
}
}
// ************************************************************************* //

View File

@ -0,0 +1,52 @@
/*--------------------------------*- 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 dictionary;
location "constant/heater";
object thermophysicalProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
thermoType
{
type heSolidThermo;
mixture pureMixture;
transport constIso;
thermo hConst;
equationOfState rhoConst;
specie specie;
energy sensibleEnthalpy;
}
mixture
{
// Iron
specie
{
molWeight 50;
}
equationOfState
{
rho 8000;
}
transport
{
kappa 80;
}
thermodynamics
{
Hf 0;
Cp 450;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,52 @@
/*--------------------------------*- 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 dictionary;
location "constant/metal";
object thermophysicalProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
thermoType
{
type heSolidThermo;
mixture pureMixture;
transport constIso;
thermo hConst;
equationOfState rhoConst;
specie specie;
energy sensibleEnthalpy;
}
mixture
{
// Aluminium
specie
{
molWeight 27;
}
equationOfState
{
rho 2700;
}
transport
{
kappa 200;
}
thermodynamics
{
Hf 0;
Cp 900;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,24 @@
/*--------------------------------*- 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 dictionary;
location "constant";
object regionProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
regions
(
fluid (fluid)
solid (metal heater)
);
// ************************************************************************* //

View File

@ -0,0 +1,58 @@
solid fluidToMetal
facet normal 0 -1 0
outer loop
vertex 0.005 0.005 0
vertex 0.045 0.005 0
vertex 0.045 0.005 0.15
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0.005 0.005 0
vertex 0.045 0.005 0.15
vertex 0.005 0.005 0.15
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 0.045 0.005 0
vertex 0.045 0.045 0
vertex 0.045 0.045 0.15
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 0.045 0.005 0
vertex 0.045 0.045 0.15
vertex 0.045 0.005 0.15
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 0.045 0.045 0
vertex 0.005 0.045 0
vertex 0.005 0.045 0.15
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex 0.045 0.045 0
vertex 0.005 0.045 0.15
vertex 0.045 0.045 0.15
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 0.005 0.045 0
vertex 0.005 0.005 0
vertex 0.005 0.005 0.15
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 0.005 0.045 0
vertex 0.005 0.005 0.15
vertex 0.005 0.045 0.15
endloop
endfacet
endsolid fluidToMetal

View File

@ -0,0 +1,324 @@
solid metalInlet
facet normal 0 0 1
outer loop
vertex 0 0 0
vertex 0.0075 0 0
vertex 0.005 0.005 0
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 0.0075 0 0
vertex 0.0425 0 0
vertex 0.045 0.005 0
endloop
endfacet
facet normal 0 -0 1
outer loop
vertex 0.0075 0 0
vertex 0.045 0.005 0
vertex 0.005 0.005 0
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 0.0425 0 0
vertex 0.05 0 0
vertex 0.045 0.005 0
endloop
endfacet
facet normal 0 -0 1
outer loop
vertex 0.05 0 0
vertex 0.05 0.05 0
vertex 0.045 0.045 0
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 0.05 0 0
vertex 0.045 0.045 0
vertex 0.045 0.005 0
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 0.05 0.05 0
vertex 0 0.05 0
vertex 0.005 0.045 0
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 0.05 0.05 0
vertex 0.005 0.045 0
vertex 0.045 0.045 0
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 0 0.05 0
vertex 0 0 0
vertex 0.005 0.005 0
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 0 0.05 0
vertex 0.005 0.005 0
vertex 0.005 0.045 0
endloop
endfacet
endsolid metalInlet
solid heaterInlet
facet normal -0 0 1
outer loop
vertex 0.0075 0 0
vertex 0.0075 -0.01 0
vertex 0.0425 0 0
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 0.0075 -0.01 0
vertex 0.0425 -0.01 0
vertex 0.0425 0 0
endloop
endfacet
endsolid heaterInlet
solid fluidInlet
facet normal 0 0 1
outer loop
vertex 0.005 0.005 0
vertex 0.045 0.005 0
vertex 0.045 0.045 0
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 0.005 0.005 0
vertex 0.045 0.045 0
vertex 0.005 0.045 0
endloop
endfacet
endsolid fluidInlet
solid metalOutlet
facet normal 0 0 1
outer loop
vertex 0 0 0.15
vertex 0.0075 0 0.15
vertex 0.005 0.005 0.15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 0.0075 0 0.15
vertex 0.0425 0 0.15
vertex 0.045 0.005 0.15
endloop
endfacet
facet normal 0 -0 1
outer loop
vertex 0.0075 0 0.15
vertex 0.045 0.005 0.15
vertex 0.005 0.005 0.15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 0.0425 0 0.15
vertex 0.05 0 0.15
vertex 0.045 0.005 0.15
endloop
endfacet
facet normal 0 -0 1
outer loop
vertex 0.05 0 0.15
vertex 0.05 0.05 0.15
vertex 0.045 0.045 0.15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 0.05 0 0.15
vertex 0.045 0.045 0.15
vertex 0.045 0.005 0.15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 0.05 0.05 0.15
vertex 0 0.05 0.15
vertex 0.005 0.045 0.15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 0.05 0.05 0.15
vertex 0.005 0.045 0.15
vertex 0.045 0.045 0.15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 0 0.05 0.15
vertex 0 0 0.15
vertex 0.005 0.005 0.15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 0 0.05 0.15
vertex 0.005 0.005 0.15
vertex 0.005 0.045 0.15
endloop
endfacet
endsolid metalOutlet
solid heaterOutlet
facet normal -0 0 1
outer loop
vertex 0.0075 0 0.15
vertex 0.0075 -0.01 0.15
vertex 0.0425 0 0.15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 0.0075 -0.01 0.15
vertex 0.0425 -0.01 0.15
vertex 0.0425 0 0.15
endloop
endfacet
endsolid heaterOutlet
solid fluidOutlet
facet normal 0 0 1
outer loop
vertex 0.005 0.005 0.15
vertex 0.045 0.005 0.15
vertex 0.045 0.045 0.15
endloop
endfacet
facet normal 0 0 1
outer loop
vertex 0.005 0.005 0.15
vertex 0.045 0.045 0.15
vertex 0.005 0.045 0.15
endloop
endfacet
endsolid fluidOutlet
solid metalExternal
facet normal 0 -1 0
outer loop
vertex 0 0 0
vertex 0.0075 0 0
vertex 0.0075 0 0.15
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0 0 0
vertex 0.0075 0 0.15
vertex 0 0 0.15
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0.0425 0 0
vertex 0.05 0 0
vertex 0.05 0 0.15
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0.0425 0 0
vertex 0.05 0 0.15
vertex 0.0425 0 0.15
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 0.05 0 0
vertex 0.05 0.05 0
vertex 0.05 0.05 0.15
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 0.05 0 0
vertex 0.05 0.05 0.15
vertex 0.05 0 0.15
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 0.05 0.05 0
vertex 0 0.05 0
vertex 0 0.05 0.15
endloop
endfacet
facet normal 0 1 -0
outer loop
vertex 0.05 0.05 0
vertex 0 0.05 0.15
vertex 0.05 0.05 0.15
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 0 0.05 0
vertex 0 0 0
vertex 0 0 0.15
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 0 0.05 0
vertex 0 0 0.15
vertex 0 0.05 0.15
endloop
endfacet
endsolid metalExternal
solid heaterExternal
facet normal -1 0 0
outer loop
vertex 0.0075 0 0
vertex 0.0075 -0.01 0
vertex 0.0075 -0.01 0.15
endloop
endfacet
facet normal -1 0 0
outer loop
vertex 0.0075 0 0
vertex 0.0075 -0.01 0.15
vertex 0.0075 0 0.15
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0.0075 -0.01 0
vertex 0.0425 -0.01 0
vertex 0.0425 -0.01 0.15
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0.0075 -0.01 0
vertex 0.0425 -0.01 0.15
vertex 0.0075 -0.01 0.15
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 0.0425 -0.01 0
vertex 0.0425 0 0
vertex 0.0425 0 0.15
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 0.0425 -0.01 0
vertex 0.0425 0 0.15
vertex 0.0425 -0.01 0.15
endloop
endfacet
endsolid heaterExternal

View File

@ -0,0 +1,16 @@
solid metalToHeater
facet normal 0 -1 0
outer loop
vertex 0.0075 0 0
vertex 0.0425 0 0
vertex 0.0425 0 0.15
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0.0075 0 0
vertex 0.0425 0 0.15
vertex 0.0075 0 0.15
endloop
endfacet
endsolid metalToHeater

View File

@ -0,0 +1,51 @@
/*--------------------------------*- 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 dictionary;
location "system";
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
convertToMeters 0.001;
vertices
(
(-0.001 -10.001 -0.001)
(50.001 -10.001 -0.001)
(50.001 50.001 -0.001)
(-0.001 50.001 -0.001)
(-0.001 -10.001 150.001)
(50.001 -10.001 150.001)
(50.001 50.001 150.001)
(-0.001 50.001 150.001)
);
blocks
(
hex (0 1 2 3 4 5 6 7) fluid (20 24 60) simpleGrading (1 1 1)
);
edges
(
);
defaultPatch
{
type empty;
name default;
}
boundary
(
);
// ************************************************************************* //

View File

@ -0,0 +1,54 @@
/*--------------------------------*- 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 dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application chtMultiRegionFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 20;
deltaT 1e-3;
writeControl adjustableRunTime;
writeInterval 1;
purgeWrite 0;
writeFormat binary;
writePrecision 6;
writeCompression off;
timeFormat general;
timePrecision 6;
runTimeModifiable true;
maxCo 1.0;
maxDi 10.0;
adjustTimeStep yes;
// ************************************************************************* //

View File

@ -0,0 +1,31 @@
/*--------------------------------*- 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 dictionary;
note "mesh decomposition control dictionary";
location "system";
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 4;
method hierarchical;
hierarchicalCoeffs
{
n (1 1 4);
delta 0.001;
order xyz;
}
// ************************************************************************* //

View File

@ -0,0 +1 @@
../decomposeParDict

View File

@ -0,0 +1,53 @@
/*--------------------------------*- 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 dictionary;
location "system/fluid";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default Euler;
}
gradSchemes
{
default Gauss linear;
}
divSchemes
{
default none;
div(phi,U) Gauss upwind;
div(phi,K) Gauss linear;
div(phi,h) Gauss upwind;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes
{
default Gauss linear corrected;
}
interpolationSchemes
{
default linear;
}
snGradSchemes
{
default corrected;
}
// ************************************************************************* //

View File

@ -0,0 +1,73 @@
/*--------------------------------*- 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 dictionary;
location "system/fluid";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
rho
{
solver diagonal;
}
rhoFinal
{
$rho;
}
p_rgh
{
solver GAMG;
smoother symGaussSeidel;
tolerance 1e-7;
relTol 0.01;
}
p_rghFinal
{
$p_rgh;
relTol 0;
}
"(U|h)"
{
solver PBiCGStab;
preconditioner DILU;
tolerance 1e-7;
relTol 0.1;
}
"(U|h)Final"
{
$U;
relTol 0;
}
}
PIMPLE
{
momentumPredictor yes;
}
relaxationFactors
{
equations
{
"h.*" 1;
"U.*" 1;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,30 @@
/*--------------------------------*- 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 dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
divSchemes
{
}
gradSchemes
{
}
laplacianSchemes
{
}
// ************************************************************************* //

View File

@ -0,0 +1,22 @@
/*--------------------------------*- 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 dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
PIMPLE
{
}
// ************************************************************************* //

View File

@ -0,0 +1 @@
../decomposeParDict

View File

@ -0,0 +1,49 @@
/*--------------------------------*- 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 dictionary;
location "system/heater";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default Euler;
}
gradSchemes
{
default Gauss linear;
}
divSchemes
{
default none;
}
laplacianSchemes
{
default none;
laplacian(alpha,h) Gauss linear corrected;
}
interpolationSchemes
{
default linear;
}
snGradSchemes
{
default corrected;
}
// ************************************************************************* //

View File

@ -0,0 +1,40 @@
/*--------------------------------*- 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 dictionary;
location "system/heater";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
h
{
solver GAMG;
smoother symGaussSeidel;
tolerance 1e-6;
relTol 0.1;
}
hFinal
{
$h;
relTol 0;
}
}
PIMPLE
{
nNonOrthogonalCorrectors 0;
}
// ************************************************************************* //

View File

@ -0,0 +1,20 @@
/*--------------------------------*- 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 dictionary;
location "system";
object meshQualityDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeEtc "caseDicts/mesh/generation/meshQualityDict.cfg"
// ************************************************************************* //

View File

@ -0,0 +1 @@
../decomposeParDict

View File

@ -0,0 +1,49 @@
/*--------------------------------*- 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 dictionary;
location "system/metal";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default Euler;
}
gradSchemes
{
default Gauss linear;
}
divSchemes
{
default none;
}
laplacianSchemes
{
default none;
laplacian(alpha,h) Gauss linear corrected;
}
interpolationSchemes
{
default linear;
}
snGradSchemes
{
default corrected;
}
// ************************************************************************* //

View File

@ -0,0 +1,40 @@
/*--------------------------------*- 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 dictionary;
location "system/metal";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
h
{
solver GAMG;
smoother symGaussSeidel;
tolerance 1e-6;
relTol 0.1;
}
hFinal
{
$h;
relTol 0;
}
}
PIMPLE
{
nNonOrthogonalCorrectors 0;
}
// ************************************************************************* //

View File

@ -0,0 +1,114 @@
/*--------------------------------*- 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 dictionary;
object snappyHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#includeEtc "caseDicts/mesh/generation/snappyHexMeshDict.cfg"
castellatedMesh true;
snap true;
addLayers false;
geometry
{
heatedDuct
{
type triSurfaceMesh;
file "heatedDuct.stl";
regions
{
metalInlet { name metalInlet; }
heaterInlet { name heaterInlet; }
fluidInlet { name fluidInlet; }
metalOutlet { name metalOutlet; }
heaterOutlet { name heaterOutlet; }
fluidOutlet { name fluidOutlet; }
metalExternal { name metalExternal; }
heaterExternal { name heaterExternal; }
}
}
metalToHeater
{
type triSurfaceMesh;
file "metalToHeater.stl";
}
fluidToMetal
{
type triSurfaceMesh;
file "fluidToMetal.stl";
}
};
castellatedMeshControls
{
refinementSurfaces
{
heatedDuct
{
level (0 0);
regions
{
metalInlet { level (0 0); patchInfo { type patch; } }
heaterInlet { level (0 0); patchInfo { type patch; } }
fluidInlet { level (0 0); patchInfo { type patch; } }
metalOutlet { level (0 0); patchInfo { type patch; } }
heaterOutlet { level (0 0); patchInfo { type patch; } }
fluidOutlet { level (0 0); patchInfo { type patch; } }
metalExternal { level (1 1); patchInfo { type wall; } }
heaterExternal { level (1 1); patchInfo { type wall; } }
}
}
fluidToMetal
{
level (1 1);
faceZone fluidToMetal;
cellZone metal;
cellZoneInside insidePoint;
insidePoint (0.025 0.0025 0.075);
}
metalToHeater
{
level (1 1);
faceZone metalToHeater;
cellZone heater;
cellZoneInside insidePoint;
insidePoint (0.025 -0.005 0.075);
}
}
nCellsBetweenLevels 1;
refinementRegions
{}
locationInMesh (0.025 0.025 0.075);
}
addLayersControls
{
relativeSizes true;
minThickness 1;
finalLayerThickness 1;
expansionRatio 1;
layers
{}
}
// ************************************************************************* //