ENH: createZeroFolder - updated templates

This commit is contained in:
andy
2014-01-23 13:14:50 +00:00
parent c7ec9a26d0
commit e20845b31a
18 changed files with 428 additions and 47 deletions

View File

@ -22,17 +22,17 @@ flowSpecification
U U
{ {
type pressureInletVelocity; type pressureInletVelocity;
value ${:inlet.U}; value ${:VALUE.U};
} }
p p
{ {
type calculated; type calculated;
value ${:inlet.p}; value ${:VALUE.p};
} }
p_rgh p_rgh
{ {
type fixedValue; type fixedValue;
value ${:inlet.p_rgh}; value ${:VALUE.p_rgh};
} }
} }
fixedVelocity fixedVelocity
@ -45,7 +45,7 @@ flowSpecification
p p
{ {
type calculated; type calculated;
value ${:inlet.p}; value ${:VALUE.p};
} }
p_rgh p_rgh
{ {

View File

@ -28,11 +28,6 @@ subSonic
type calculated; type calculated;
value ${:VALUE.p}; value ${:VALUE.p};
} }
p_rgh
{
type fixedValue;
value ${:VALUE.p_rgh};
}
mut mut
{ {
type zeroGradient; type zeroGradient;

View File

@ -0,0 +1,52 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "templates";
object outletOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
returnFlow
{
default
{
p_rgh
{
type fixedValue;
value ${:VALUE.p_rgh};
}
}
wall
{
p_rgh
{
type fixedValue;
value ${:VALUE.p_rgh};
}
}
atmosphere
{
p_rgh
{
type totalPressure;
U U;
phi phi;
rho rho;
psi none;
gamma 1;
p0 ${:outlet.p_rgh};
value ${:outlet.p_rgh};
}
}
}
// ************************************************************************* //

View File

@ -19,9 +19,24 @@ wallFunction
{ {
highReynolds highReynolds
{ {
k
{
type compressible::kqRWallFunction;
value ${:VALUE.k};
}
epsilon
{
type compressible::epsilonWallFunction;
value ${:VALUE.epsilon};
}
omega
{
type compressible::omegaWallFunction;
value ${:VALUE.omega};
}
mut mut
{ {
type compressible::mutkWallFunction; type mutkWallFunction;
value ${:VALUE.mut}; value ${:VALUE.mut};
} }
alphat alphat
@ -32,6 +47,21 @@ wallFunction
} }
lowReynolds lowReynolds
{ {
k
{
type fixedValue;
value uniform 0;
}
epsilon
{
type fixedValue;
value uniform 0;
}
omega
{
type fixedValue;
value uniform 0;
}
mut mut
{ {
type fixedValue; type fixedValue;

View File

@ -22,7 +22,7 @@ flowSpecification
U U
{ {
type pressureInletVelocity; type pressureInletVelocity;
value ${:inlet.U}; value ${:VALUE.U};
} }
p p
{ {
@ -32,8 +32,8 @@ flowSpecification
rho rho; rho rho;
psi none; psi none;
gamma 1; gamma 1;
p0 ${:inlet.p}; p0 ${:VALUE.p};
value ${:inlet.p}; value ${:VALUE.p};
} }
} }
flowRate flowRate

View File

@ -0,0 +1,37 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "templates";
object outlet;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
returnFlow
{
atmosphere
{
p
{
type totalPressure;
U U;
phi phi;
rho rho;
psi none;
gamma 1;
p0 ${:VALUE.p};
value ${:VALUE.p};
}
}
}
// ************************************************************************* //

View File

@ -19,10 +19,25 @@ wallFunction
{ {
highReynolds highReynolds
{ {
k
{
type compressible::kqRWallFunction;
value ${:VALUE.k};
}
epsilon
{
type compressible::epsilonWallFunction;
value ${:VALUE.epsilon};
}
omega
{
type compressible::omegaWallFunction;
value ${:VALUE.omega};
}
mut mut
{ {
type compressible::mutkWallFunction; type mutkWallFunction;
value ${:VALUE.nut}; value ${:VALUE.mut};
} }
alphat alphat
{ {
@ -32,6 +47,21 @@ wallFunction
} }
lowReynolds lowReynolds
{ {
k
{
type fixedValue;
value uniform 0;
}
epsilon
{
type fixedValue;
value uniform 0;
}
omega
{
type fixedValue;
value uniform 0;
}
mut mut
{ {
type fixedValue; type fixedValue;

View File

@ -22,7 +22,7 @@ flowSpecification
U U
{ {
type pressureInletVelocity; type pressureInletVelocity;
value ${:inlet.U}; value ${:VALUE.U};
} }
p p
{ {
@ -32,8 +32,8 @@ flowSpecification
rho none; rho none;
psi none; psi none;
gamma 1; gamma 1;
p0 ${:inlet.p}; p0 ${:VALUE.p};
value ${:inlet.p}; value ${:VALUE.p};
} }
} }
flowRate flowRate

View File

@ -24,13 +24,4 @@ subSonic
} }
subSonicNoReturn
{
nut
{
type zeroGradient;
}
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -22,12 +22,12 @@ flowSpecification
U U
{ {
type pressureInletVelocity; type pressureInletVelocity;
value ${:inlet.U}; value ${:VALUE.U};
} }
p p
{ {
type fixedValue; type fixedValue;
value ${:inlet.p}; value ${:VALUE.p};
} }
} }
fixedVelocity fixedVelocity

View File

@ -17,24 +17,6 @@ FoamFile
subSonic subSonic
{ {
p
{
type fixedValue;
value ${:VALUE.p};
}
k
{
type zeroGradient;
}
epsilon
{
type zeroGradient;
}
omega
{
type zeroGradient;
}
OPTIONS (returnFlow); OPTIONS (returnFlow);
} }

View File

@ -19,20 +19,97 @@ returnFlow
{ {
default default
{ {
p
{
type fixedValue;
value ${:VALUE.p};
}
U U
{ {
type pressureInletOutletVelocity; type pressureInletOutletVelocity;
value ${:VALUE.U}; value ${:VALUE.U};
} }
k
{
type inletOutlet;
inletValue ${:VALUE.k};
value ${:VALUE.k};
}
epsilon
{
type inletOutlet;
inletValue ${:VALUE.epsilon};
value ${:VALUE.epsilon};
}
omega
{
type inletOutlet;
inletValue ${:VALUE.omega};
value ${:VALUE.omega};
}
} }
wall wall
{ {
p
{
type fixedValue;
value ${:VALUE.p};
}
U U
{ {
type inletOutlet; type inletOutlet;
inletValue uniform (0 0 0); inletValue uniform (0 0 0);
value ${:VALUE.U}; value ${:VALUE.U};
} }
k
{
type zeroGradient;
}
epsilon
{
type zeroGradient;
}
omega
{
type zeroGradient;
}
}
atmosphere
{
p
{
type totalPressure;
U U;
phi phi;
rho none;
psi none;
gamma 1;
p0 ${:VALUE.p};
value ${:VALUE.p};
}
U
{
type pressureInletOutletVelocity;
value ${:VALUE.U};
}
k
{
type inletOutlet;
inletValue ${:VALUE.k};
value ${:VALUE.k};
}
epsilon
{
type inletOutlet;
inletValue ${:VALUE.epsilon};
value ${:VALUE.epsilon};
}
omega
{
type inletOutlet;
inletValue ${:VALUE.omega};
value ${:VALUE.omega};
}
} }
} }

View File

@ -73,6 +73,14 @@ motion
value ${:VALUE.U}; value ${:VALUE.U};
} }
} }
movingMesh
{
U
{
type movingWallVelocity;
value ${:VALUE.U};
}
}
} }

View File

@ -50,6 +50,11 @@ compressibleFields
type scalar; type scalar;
dimensions [1 -1 -1 0 0]; dimensions [1 -1 -1 0 0];
} }
alphat
{
type scalar;
dimensions [1 -1 -1 0 0];
}
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -0,0 +1,41 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "templates";
object pimpleFoam;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solverType incompressible;
multiRegion no;
fluidModels
{
turbulenceModel turbulenceModel;
}
fluidFields
{
U
{
type vector;
dimensions [0 1 -1 0 0];
}
p
{
type scalar;
dimensions [0 2 -2 0 0];
}
}
// ************************************************************************* //

View File

@ -0,0 +1,41 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "templates";
object pisoFoam;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solverType incompressible;
multiRegion no;
fluidModels
{
turbulenceModel turbulenceModel;
}
fluidFields
{
U
{
type vector;
dimensions [0 1 -1 0 0];
}
p
{
type scalar;
dimensions [0 2 -2 0 0];
}
}
// ************************************************************************* //

View File

@ -0,0 +1,46 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "templates";
object rhoPimpleDyMFoam;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solverType compressible;
multiRegion no;
fluidModels
{
turbulenceModel turbulenceModel;
}
fluidFields
{
U
{
type vector;
dimensions [0 1 -1 0 0];
}
p
{
type scalar;
dimensions [1 -1 -2 0 0];
}
T
{
type scalar;
dimensions [0 0 0 1 0];
}
}
// ************************************************************************* //

View File

@ -0,0 +1,46 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "templates";
object rhoPimpleFoam;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solverType compressible;
multiRegion no;
fluidModels
{
turbulenceModel turbulenceModel;
}
fluidFields
{
U
{
type vector;
dimensions [0 1 -1 0 0];
}
p
{
type scalar;
dimensions [1 -1 -2 0 0];
}
T
{
type scalar;
dimensions [0 0 0 1 0];
}
}
// ************************************************************************* //