mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: createZeroFolder - updated templates
This commit is contained in:
@ -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
|
||||
{
|
||||
|
||||
@ -28,11 +28,6 @@ subSonic
|
||||
type calculated;
|
||||
value ${:VALUE.p};
|
||||
}
|
||||
p_rgh
|
||||
{
|
||||
type fixedValue;
|
||||
value ${:VALUE.p_rgh};
|
||||
}
|
||||
mut
|
||||
{
|
||||
type zeroGradient;
|
||||
|
||||
52
etc/templates/boundaryConditions/fluid/buoyant/outletOptions
Normal file
52
etc/templates/boundaryConditions/fluid/buoyant/outletOptions
Normal 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};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
@ -24,13 +24,4 @@ subSonic
|
||||
}
|
||||
|
||||
|
||||
subSonicNoReturn
|
||||
{
|
||||
nut
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -22,12 +22,12 @@ flowSpecification
|
||||
U
|
||||
{
|
||||
type pressureInletVelocity;
|
||||
value ${:inlet.U};
|
||||
value ${:VALUE.U};
|
||||
}
|
||||
p
|
||||
{
|
||||
type fixedValue;
|
||||
value ${:inlet.p};
|
||||
value ${:VALUE.p};
|
||||
}
|
||||
}
|
||||
fixedVelocity
|
||||
|
||||
@ -17,24 +17,6 @@ FoamFile
|
||||
|
||||
subSonic
|
||||
{
|
||||
p
|
||||
{
|
||||
type fixedValue;
|
||||
value ${:VALUE.p};
|
||||
}
|
||||
k
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
epsilon
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
omega
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
OPTIONS (returnFlow);
|
||||
}
|
||||
|
||||
|
||||
@ -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};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -73,6 +73,14 @@ motion
|
||||
value ${:VALUE.U};
|
||||
}
|
||||
}
|
||||
movingMesh
|
||||
{
|
||||
U
|
||||
{
|
||||
type movingWallVelocity;
|
||||
value ${:VALUE.U};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -50,6 +50,11 @@ compressibleFields
|
||||
type scalar;
|
||||
dimensions [1 -1 -1 0 0];
|
||||
}
|
||||
alphat
|
||||
{
|
||||
type scalar;
|
||||
dimensions [1 -1 -1 0 0];
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
41
etc/templates/solvers/pimpleFoam
Normal file
41
etc/templates/solvers/pimpleFoam
Normal 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];
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
41
etc/templates/solvers/pisoFoam
Normal file
41
etc/templates/solvers/pisoFoam
Normal 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];
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
46
etc/templates/solvers/rhoPimpleDyMFoam
Normal file
46
etc/templates/solvers/rhoPimpleDyMFoam
Normal 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];
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
46
etc/templates/solvers/rhoPimpleFoam
Normal file
46
etc/templates/solvers/rhoPimpleFoam
Normal 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];
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user