mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: adjustments in multiRegionHeater tutorials
- missing 'g' file, improve file consistency (fields, dictionaries)
This commit is contained in:
@ -1 +0,0 @@
|
|||||||
../bottomWater/g
|
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: v1806 |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class uniformDimensionedVectorField;
|
||||||
|
object g;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 1 -2 0 0 0 0];
|
||||||
|
value (0 -9.81 0);
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -19,12 +19,10 @@ numberOfSubdomains 4;
|
|||||||
method scotch;
|
method scotch;
|
||||||
// method hierarchical;
|
// method hierarchical;
|
||||||
// method simple;
|
// method simple;
|
||||||
// method manual;
|
|
||||||
|
|
||||||
coeffs
|
coeffs
|
||||||
{
|
{
|
||||||
n (2 2 1);
|
n (2 2 1);
|
||||||
dataFile "decompositionData";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -36,13 +36,13 @@ U
|
|||||||
minX
|
minX
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type fixedValue;
|
||||||
value uniform ( 0.1 0 0 );
|
value uniform (0.1 0 0);
|
||||||
}
|
}
|
||||||
maxX
|
maxX
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type inletOutlet;
|
||||||
inletValue uniform ( 0 0 0 );
|
inletValue uniform (0 0 0);
|
||||||
value uniform ( 0.1 0 0 );
|
value uniform (0.1 0 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,14 +23,14 @@ actions
|
|||||||
type cellSet;
|
type cellSet;
|
||||||
action new;
|
action new;
|
||||||
source boxToCell;
|
source boxToCell;
|
||||||
box (-0.01001 0 -100 )(0.01001 0.00999 100);
|
box (-0.01001 0 -100) (0.01001 0.00999 100);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name heaterCellSet;
|
name heaterCellSet;
|
||||||
type cellSet;
|
type cellSet;
|
||||||
action add;
|
action add;
|
||||||
source boxToCell;
|
source boxToCell;
|
||||||
box (-0.01001 -100 -0.01001)(0.01001 0.00999 0.01001);
|
box (-0.01001 -100 -0.01001) (0.01001 0.00999 0.01001);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name heater;
|
name heater;
|
||||||
@ -46,7 +46,7 @@ actions
|
|||||||
type cellSet;
|
type cellSet;
|
||||||
action new;
|
action new;
|
||||||
source boxToCell;
|
source boxToCell;
|
||||||
box (-100 0 -100 )(-0.01001 0.00999 100);
|
box (-100 0 -100) (-0.01001 0.00999 100);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name leftSolid;
|
name leftSolid;
|
||||||
@ -62,7 +62,7 @@ actions
|
|||||||
type cellSet;
|
type cellSet;
|
||||||
action new;
|
action new;
|
||||||
source boxToCell;
|
source boxToCell;
|
||||||
box (0.01001 0 -100 )(100 0.00999 100);
|
box (0.01001 0 -100) (100 0.00999 100);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name rightSolid;
|
name rightSolid;
|
||||||
@ -78,7 +78,7 @@ actions
|
|||||||
type cellSet;
|
type cellSet;
|
||||||
action new;
|
action new;
|
||||||
source boxToCell;
|
source boxToCell;
|
||||||
box (-100 0.00999 -100 )(100 100 100);
|
box (-100 0.00999 -100) (100 100 100);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name topAir;
|
name topAir;
|
||||||
|
|||||||
@ -23,7 +23,7 @@ boundaryField
|
|||||||
".*"
|
".*"
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
value uniform 300;
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ boundaryField
|
|||||||
".*"
|
".*"
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
value uniform (0.01 0 0);
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -23,9 +23,8 @@ boundaryField
|
|||||||
".*"
|
".*"
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
value uniform 0.01;
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -23,9 +23,8 @@ boundaryField
|
|||||||
".*"
|
".*"
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
value uniform 0.1;
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -23,7 +23,7 @@ boundaryField
|
|||||||
".*"
|
".*"
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
value uniform 1e5;
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ boundaryField
|
|||||||
".*"
|
".*"
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
value uniform 1e5;
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
|
||||||
|
|
||||||
runApplication ./Allmesh
|
runApplication ./Allrun.pre
|
||||||
|
|
||||||
#-- Run on single processor
|
#-- Run on single processor
|
||||||
#runApplication $(getApplication)
|
#runApplication $(getApplication)
|
||||||
|
|||||||
@ -53,4 +53,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -19,14 +19,13 @@ numberOfSubdomains 4;
|
|||||||
method scotch;
|
method scotch;
|
||||||
// method hierarchical;
|
// method hierarchical;
|
||||||
// method simple;
|
// method simple;
|
||||||
// method manual;
|
|
||||||
|
|
||||||
regions
|
regions
|
||||||
{
|
{
|
||||||
heater
|
heater
|
||||||
{
|
{
|
||||||
numberOfSubdomains 1;
|
numberOfSubdomains 1;
|
||||||
method simple; // none;
|
method simple; // none;
|
||||||
|
|
||||||
coeffs
|
coeffs
|
||||||
{
|
{
|
||||||
|
|||||||
@ -19,6 +19,7 @@ boundary
|
|||||||
minY
|
minY
|
||||||
{
|
{
|
||||||
type patch;
|
type patch;
|
||||||
|
inGroups (coupleGroup);
|
||||||
}
|
}
|
||||||
minZ
|
minZ
|
||||||
{
|
{
|
||||||
|
|||||||
@ -14,6 +14,14 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
boundary
|
||||||
|
{
|
||||||
|
minX
|
||||||
|
{
|
||||||
|
inGroups (coupleGroup);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
U
|
U
|
||||||
{
|
{
|
||||||
internalField uniform (0.1 0 0);
|
internalField uniform (0.1 0 0);
|
||||||
|
|||||||
@ -23,14 +23,14 @@ actions
|
|||||||
type cellSet;
|
type cellSet;
|
||||||
action new;
|
action new;
|
||||||
source boxToCell;
|
source boxToCell;
|
||||||
box (-0.01001 0 -100)(0.01001 0.00999 100);
|
box (-0.01001 0 -100) (0.01001 0.00999 100);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name heaterCellSet;
|
name heaterCellSet;
|
||||||
type cellSet;
|
type cellSet;
|
||||||
action add;
|
action add;
|
||||||
source boxToCell;
|
source boxToCell;
|
||||||
box (-0.01001 -100 -0.01001)(0.01001 0.00999 0.01001);
|
box (-0.01001 -100 -0.01001) (0.01001 0.00999 0.01001);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name heater;
|
name heater;
|
||||||
@ -46,7 +46,7 @@ actions
|
|||||||
type cellSet;
|
type cellSet;
|
||||||
action new;
|
action new;
|
||||||
source boxToCell;
|
source boxToCell;
|
||||||
box (-100 0 -100 )(-0.01001 0.00999 100);
|
box (-100 0 -100) (-0.01001 0.00999 100);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name leftSolid;
|
name leftSolid;
|
||||||
@ -62,7 +62,7 @@ actions
|
|||||||
type cellSet;
|
type cellSet;
|
||||||
action new;
|
action new;
|
||||||
source boxToCell;
|
source boxToCell;
|
||||||
box (0.01001 0 -100 )(100 0.00999 100);
|
box (0.01001 0 -100) (100 0.00999 100);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name rightSolid;
|
name rightSolid;
|
||||||
@ -78,7 +78,7 @@ actions
|
|||||||
type cellSet;
|
type cellSet;
|
||||||
action new;
|
action new;
|
||||||
source boxToCell;
|
source boxToCell;
|
||||||
box (-100 0.00999 -100 )(100 100 100);
|
box (-100 0.00999 -100) (100 100 100);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name topAir;
|
name topAir;
|
||||||
|
|||||||
@ -0,0 +1,20 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: v1806 |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class uniformDimensionedVectorField;
|
||||||
|
object g;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 1 -2 0 0 0 0];
|
||||||
|
value (0 -9.81 0);
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: v1806 |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class uniformDimensionedVectorField;
|
||||||
|
object g;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 1 -2 0 0 0 0];
|
||||||
|
value (0 0 -9.81);
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
Reference in New Issue
Block a user