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
{
type pressureInletVelocity;
value ${:inlet.U};
value ${:VALUE.U};
}
p
{
type calculated;
value ${:inlet.p};
value ${:VALUE.p};
}
p_rgh
{
type fixedValue;
value ${:inlet.p_rgh};
value ${:VALUE.p_rgh};
}
}
fixedVelocity
@ -45,7 +45,7 @@ flowSpecification
p
{
type calculated;
value ${:inlet.p};
value ${:VALUE.p};
}
p_rgh
{

View File

@ -28,11 +28,6 @@ subSonic
type calculated;
value ${:VALUE.p};
}
p_rgh
{
type fixedValue;
value ${:VALUE.p_rgh};
}
mut
{
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
{
k
{
type compressible::kqRWallFunction;
value ${:VALUE.k};
}
epsilon
{
type compressible::epsilonWallFunction;
value ${:VALUE.epsilon};
}
omega
{
type compressible::omegaWallFunction;
value ${:VALUE.omega};
}
mut
{
type compressible::mutkWallFunction;
type mutkWallFunction;
value ${:VALUE.mut};
}
alphat
@ -32,6 +47,21 @@ wallFunction
}
lowReynolds
{
k
{
type fixedValue;
value uniform 0;
}
epsilon
{
type fixedValue;
value uniform 0;
}
omega
{
type fixedValue;
value uniform 0;
}
mut
{
type fixedValue;

View File

@ -22,7 +22,7 @@ flowSpecification
U
{
type pressureInletVelocity;
value ${:inlet.U};
value ${:VALUE.U};
}
p
{
@ -32,8 +32,8 @@ flowSpecification
rho rho;
psi none;
gamma 1;
p0 ${:inlet.p};
value ${:inlet.p};
p0 ${:VALUE.p};
value ${:VALUE.p};
}
}
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
{
k
{
type compressible::kqRWallFunction;
value ${:VALUE.k};
}
epsilon
{
type compressible::epsilonWallFunction;
value ${:VALUE.epsilon};
}
omega
{
type compressible::omegaWallFunction;
value ${:VALUE.omega};
}
mut
{
type compressible::mutkWallFunction;
value ${:VALUE.nut};
type mutkWallFunction;
value ${:VALUE.mut};
}
alphat
{
@ -32,6 +47,21 @@ wallFunction
}
lowReynolds
{
k
{
type fixedValue;
value uniform 0;
}
epsilon
{
type fixedValue;
value uniform 0;
}
omega
{
type fixedValue;
value uniform 0;
}
mut
{
type fixedValue;

View File

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

View File

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

View File

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

View File

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

View File

@ -19,20 +19,97 @@ returnFlow
{
default
{
p
{
type fixedValue;
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};
}
}
wall
{
p
{
type fixedValue;
value ${:VALUE.p};
}
U
{
type inletOutlet;
inletValue uniform (0 0 0);
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};
}
}
movingMesh
{
U
{
type movingWallVelocity;
value ${:VALUE.U};
}
}
}

View File

@ -50,6 +50,11 @@ compressibleFields
type scalar;
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];
}
}
// ************************************************************************* //