Merge branch 'HrvojeJasak'
This commit is contained in:
commit
0b7bacfbb3
25 changed files with 110 additions and 83 deletions
|
@ -4,7 +4,14 @@
|
|||
U = UEqn.H()/UEqn.A();
|
||||
|
||||
phi = fvc::interpolate(U) & mesh.Sf();
|
||||
surfaceScalarField phiU = phi;
|
||||
|
||||
// Bug fix: must change name of phi on copy to keep objectRegistry happy
|
||||
// HJ, 7/Nov/2010
|
||||
surfaceScalarField phiU
|
||||
(
|
||||
"phiU",
|
||||
phi
|
||||
);
|
||||
|
||||
surfaceScalarField phip = fvc::interpolate(psiByRho)*phi;
|
||||
|
||||
|
|
|
@ -202,7 +202,14 @@ void Foam::kineticTheoryModel::solve()
|
|||
|
||||
word scheme("div(phi,Theta)");
|
||||
|
||||
volScalarField alpha = alpha_;
|
||||
// Bug fix: copying field alpha without mane change vreaks objectRegistry
|
||||
// HJ, 7/Nov/2010
|
||||
volScalarField alpha
|
||||
(
|
||||
"alphaMinMax",
|
||||
alpha_
|
||||
);
|
||||
|
||||
alpha.max(1.0e-6);
|
||||
const scalar sqrtPi = sqrt(mathematicalConstant::pi);
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ Foam::BlockBiCGStabSolver<Type>::BlockBiCGStabSolver
|
|||
BlockLduPrecon<Type>::New
|
||||
(
|
||||
matrix,
|
||||
this->dict().subDict("preconditioner")
|
||||
this->dict()
|
||||
)
|
||||
)
|
||||
{}
|
||||
|
|
|
@ -51,7 +51,7 @@ Foam::BlockCGSolver<Type>::BlockCGSolver
|
|||
BlockLduPrecon<Type>::New
|
||||
(
|
||||
matrix,
|
||||
this->dict().subDict("preconditioner")
|
||||
this->dict()
|
||||
)
|
||||
)
|
||||
{}
|
||||
|
|
|
@ -85,7 +85,7 @@ Foam::BlockGMRESSolver<Type>::BlockGMRESSolver
|
|||
BlockLduPrecon<Type>::New
|
||||
(
|
||||
matrix,
|
||||
this->dict().subDict("preconditioner")
|
||||
this->dict()
|
||||
)
|
||||
),
|
||||
nDirs_(readLabel(this->dict().lookup("nDirections")))
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5-dev |
|
||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
|
||||
| \\ / O peration | Version: 1.6-ext |
|
||||
| \\ / A nd | Web: www.extend-project.de |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
|
||||
| \\ / O peration | Version: 1.6-ext |
|
||||
| \\ / A nd | Web: www.extend-project.de |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
|
@ -21,25 +21,25 @@ FoamFile
|
|||
{
|
||||
type patch;
|
||||
nFaces 51;
|
||||
startFace 15151;
|
||||
startFace 23114;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type patch;
|
||||
nFaces 51;
|
||||
startFace 15202;
|
||||
startFace 23165;
|
||||
}
|
||||
walls
|
||||
{
|
||||
type wall;
|
||||
nFaces 436;
|
||||
startFace 15253;
|
||||
nFaces 512;
|
||||
startFace 23216;
|
||||
}
|
||||
frontBack
|
||||
{
|
||||
type empty;
|
||||
nFaces 15420;
|
||||
startFace 15689;
|
||||
nFaces 23340;
|
||||
startFace 23728;
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@ boundaryField
|
|||
top
|
||||
{
|
||||
type inletOutlet;
|
||||
phi phia;
|
||||
inletValue uniform 1.0e-8;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ boundaryField
|
|||
top
|
||||
{
|
||||
type inletOutlet;
|
||||
phi phia;
|
||||
inletValue uniform (0 0 0);
|
||||
value uniform ( 0 0 0 );
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ boundaryField
|
|||
top
|
||||
{
|
||||
type inletOutlet;
|
||||
phi phib;
|
||||
value uniform (0 0 0);
|
||||
inletValue uniform ( 0 0 0 );
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ boundaryField
|
|||
top
|
||||
{
|
||||
type inletOutlet;
|
||||
phi phia;
|
||||
inletValue uniform 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ boundaryField
|
|||
top
|
||||
{
|
||||
type inletOutlet;
|
||||
phi phia;
|
||||
inletValue uniform 10.0;
|
||||
value uniform 10.0;
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ boundaryField
|
|||
top
|
||||
{
|
||||
type inletOutlet;
|
||||
phi phia;
|
||||
inletValue uniform 1.0;
|
||||
value uniform 1.0;
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
|
||||
| \\ / O peration | Version: 1.6-ext |
|
||||
| \\ / A nd | Web: www.extend-project.de |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
|
@ -10,6 +10,7 @@ FoamFile
|
|||
version 2.0;
|
||||
format binary;
|
||||
class polyBoundaryMesh;
|
||||
location "constant/polyMesh";
|
||||
object boundary;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
|
|
@ -29,6 +29,7 @@ boundaryField
|
|||
outlet
|
||||
{
|
||||
type inletOutlet;
|
||||
phi phia;
|
||||
inletValue uniform 10.0;
|
||||
value uniform 10.0;
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ boundaryField
|
|||
outlet
|
||||
{
|
||||
type inletOutlet;
|
||||
phi phia;
|
||||
inletValue uniform 1.0;
|
||||
value uniform 1.0;
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
|
||||
| \\ / O peration | Version: 1.6-ext |
|
||||
| \\ / A nd | Web: www.extend-project.de |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
|
|
|
@ -29,6 +29,7 @@ boundaryField
|
|||
outlet
|
||||
{
|
||||
type inletOutlet;
|
||||
phi phia;
|
||||
inletValue uniform 1.0e-7;
|
||||
value uniform 1.0e-7;
|
||||
}
|
||||
|
|
|
@ -1908,6 +1908,7 @@ boundaryField
|
|||
outlet
|
||||
{
|
||||
type inletOutlet;
|
||||
phi phia;
|
||||
inletValue uniform (0 0 0);
|
||||
value nonuniform List<vector>
|
||||
25
|
||||
|
|
|
@ -1908,6 +1908,7 @@ boundaryField
|
|||
outlet
|
||||
{
|
||||
type inletOutlet;
|
||||
phi phib;
|
||||
inletValue uniform (0 0 0);
|
||||
value nonuniform List<vector>
|
||||
25
|
||||
|
|
|
@ -1908,6 +1908,7 @@ boundaryField
|
|||
outlet
|
||||
{
|
||||
type inletOutlet;
|
||||
phi phia;
|
||||
inletValue uniform 1;
|
||||
value uniform 1;
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ boundaryField
|
|||
outlet
|
||||
{
|
||||
type inletOutlet;
|
||||
phi phia;
|
||||
inletValue uniform 0.1;
|
||||
value uniform 0.1;
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ boundaryField
|
|||
outlet
|
||||
{
|
||||
type inletOutlet;
|
||||
phi phia;
|
||||
inletValue uniform 1e-8;
|
||||
value uniform 1e-8;
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.5 |
|
||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
|
||||
| \\ / O peration | Version: 1.6-ext |
|
||||
| \\ / A nd | Web: www.extend-project.de |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
|
@ -10,39 +10,37 @@ FoamFile
|
|||
version 2.0;
|
||||
format ascii;
|
||||
class polyBoundaryMesh;
|
||||
location "constant/polyMesh";
|
||||
object boundary;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
4
|
||||
(
|
||||
inlet
|
||||
{
|
||||
inlet
|
||||
{
|
||||
type patch;
|
||||
nFaces 25;
|
||||
startFace 3650;
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type patch;
|
||||
nFaces 25;
|
||||
startFace 3675;
|
||||
}
|
||||
|
||||
walls
|
||||
{
|
||||
}
|
||||
walls
|
||||
{
|
||||
type wall;
|
||||
nFaces 150;
|
||||
startFace 3700;
|
||||
}
|
||||
|
||||
defaultFaces
|
||||
{
|
||||
}
|
||||
defaultFaces
|
||||
{
|
||||
type empty;
|
||||
nFaces 3750;
|
||||
startFace 3850;
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
// ************************************************************************* //
|
||||
|
|
Reference in a new issue