Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
dadac8ac
Commit
dadac8ac
authored
Dec 06, 2010
by
mattijs
Browse files
Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev
parents
228c4ab2
d54b31e2
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
applications/utilities/parallelProcessing/decomposePar/decomposeParDict
View file @
dadac8ac
...
...
@@ -19,15 +19,17 @@ FoamFile
numberOfSubdomains 8;
//- Keep owner and neighbour on same processor for faces in zones:
// preserveFaceZones (heater solid1 solid3);
//- Keep owner and neighbour on same processor for faces in patches:
// (makes sense only for cyclic patches)
//preservePatches (cyclic_half0 cyclic_half1);
//- Use the volScalarField named here as a weight for each cell in the
// decomposition. For example, use a particle population field to decompose
// for a balanced number of particles in a lagrangian simulation.
// weightField dsmcRhoNMean;
method scotch;
// method hierarchical;
...
...
@@ -59,11 +61,8 @@ multiLevelCoeffs
}
}
// Desired output
simpleCoeffs
{
n (2 1 1);
...
...
applications/utilities/parallelProcessing/decomposePar/domainDecomposition.C
View file @
dadac8ac
...
...
@@ -24,7 +24,6 @@ License
\*---------------------------------------------------------------------------*/
#include "domainDecomposition.H"
#include "Time.H"
#include "dictionary.H"
#include "labelIOList.H"
#include "processorPolyPatch.H"
...
...
@@ -341,10 +340,10 @@ bool Foam::domainDecomposition::writeDecomposition()
const
labelList
&
curProcessorPatchStarts
=
procProcessorPatchStartIndex_
[
procI
];
const
labelListList
&
curSubPatchIDs
=
const
labelListList
&
curSubPatchIDs
=
procProcessorPatchSubPatchIDs_
[
procI
];
const
labelListList
&
curSubStarts
=
const
labelListList
&
curSubStarts
=
procProcessorPatchSubPatchStarts_
[
procI
];
const
polyPatchList
&
meshPatches
=
boundaryMesh
();
...
...
applications/utilities/parallelProcessing/decomposePar/domainDecomposition.H
View file @
dadac8ac
...
...
@@ -41,6 +41,9 @@ SourceFiles
#include "SLList.H"
#include "PtrList.H"
#include "point.H"
#include "Time.H"
#include "volFields.H"
namespace
Foam
{
...
...
@@ -80,7 +83,7 @@ class domainDecomposition
// original face. In order to do this properly, all face
// indices will be incremented by 1 and the decremented as
// necessary to avoid the problem of face number zero having no
// sign.
// sign.
List
<
DynamicList
<
label
>
>
procFaceAddressing_
;
//- Labels of cells for each processor
...
...
applications/utilities/parallelProcessing/decomposePar/domainDecompositionDistribute.C
View file @
dadac8ac
...
...
@@ -114,7 +114,35 @@ void Foam::domainDecomposition::distributeCells()
if
(
sameProcFaces
.
empty
())
{
cellToProc_
=
decomposePtr
().
decompose
(
*
this
,
cellCentres
());
if
(
decompositionDict_
.
found
(
"weightField"
))
{
word
weightName
=
decompositionDict_
.
lookup
(
"weightField"
);
volScalarField
weights
(
IOobject
(
weightName
,
time
().
timeName
(),
*
this
,
IOobject
::
MUST_READ
,
IOobject
::
NO_WRITE
),
*
this
);
cellToProc_
=
decomposePtr
().
decompose
(
*
this
,
cellCentres
(),
weights
.
internalField
()
);
}
else
{
cellToProc_
=
decomposePtr
().
decompose
(
*
this
,
cellCentres
());
}
}
else
{
...
...
@@ -173,12 +201,49 @@ void Foam::domainDecomposition::distributeCells()
// Do decomposition on agglomeration
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cellToProc_
=
decomposePtr
().
decompose
(
*
this
,
globalRegion
,
regionCentres
);
if
(
decompositionDict_
.
found
(
"weightField"
))
{
scalarField
regionWeights
(
globalRegion
.
nRegions
(),
0
);
word
weightName
=
decompositionDict_
.
lookup
(
"weightField"
);
volScalarField
weights
(
IOobject
(
weightName
,
time
().
timeName
(),
*
this
,
IOobject
::
MUST_READ
,
IOobject
::
NO_WRITE
),
*
this
);
forAll
(
globalRegion
,
cellI
)
{
label
regionI
=
globalRegion
[
cellI
];
regionWeights
[
regionI
]
+=
weights
.
internalField
()[
cellI
];
}
cellToProc_
=
decomposePtr
().
decompose
(
*
this
,
globalRegion
,
regionCentres
,
regionWeights
);
}
else
{
cellToProc_
=
decomposePtr
().
decompose
(
*
this
,
globalRegion
,
regionCentres
);
}
}
Info
<<
"
\n
Finished decomposition in "
...
...
applications/utilities/preProcessing/engineSwirl/kivaSwirl.ps
deleted
100644 → 0
View file @
228c4ab2
This diff is collapsed.
Click to expand it.
src/turbulenceModels/incompressible/LES/SpalartAllmarasIDDES/IDDESDelta/IDDESDelta.C
View file @
dadac8ac
...
...
@@ -42,47 +42,34 @@ void Foam::IDDESDelta::calcDelta()
{
label
nD
=
mesh
().
nGeometricD
();
volScalarField
delta
(
IOobject
(
"delta"
,
mesh_
.
time
().
timeName
(),
mesh_
,
IOobject
::
NO_READ
,
IOobject
::
NO_WRITE
),
mesh_
,
dimensionedScalar
(
"zero"
,
dimLength
,
SMALL
),
calculatedFvPatchScalarField
::
typeName
);
delta
.
internalField
()
=
pow
(
mesh_
.
V
(),
1
.
0
/
3
.
0
);
// initialise hwn as wall distance
volScalarField
hwn
=
wallDist
(
mesh
()).
y
();
scalar
deltamaxTmp
=
0
.;
const
cellList
&
cells
=
mesh
().
cells
();
forAll
(
cells
,
cellI
)
{
scalar
deltaminTmp
=
1.e10
;
const
labelList
&
cFaces
=
mesh
().
cells
()[
cellI
];
const
point
&
centrevector
=
mesh
().
cellCentres
()[
cellI
];
forAll
(
cFaces
,
cFaceI
)
{
label
faceI
=
cFaces
[
cFaceI
];
const
point
&
facevector
=
mesh
().
faceCentres
()[
faceI
];
scalar
tmp
=
mag
(
facevector
-
centrevector
);
if
(
tmp
>
deltamaxTmp
)
{
deltamaxTmp
=
tmp
;
}
if
(
tmp
<
deltaminTmp
)
{
deltaminTmp
=
tmp
;
}
}
hwn
[
cellI
]
=
2
.
0
*
deltaminTmp
;
}
dimensionedScalar
deltamax
(
"deltamax"
,
dimLength
,
2
.
0
*
deltamaxTmp
);
if
(
nD
==
3
)
{
delta_
.
internalField
()
=
deltaCoeff_
*
min
(
max
(
max
(
cw_
*
wallDist
(
mesh
()).
y
(),
cw_
*
delta
max
),
hwn
),
delta
max
max
(
max
(
cw_
*
wallDist
(
mesh
()).
y
(),
cw_
*
delta
),
hwn
),
delta
);
}
else
if
(
nD
==
2
)
...
...
@@ -95,8 +82,8 @@ void Foam::IDDESDelta::calcDelta()
deltaCoeff_
*
min
(
max
(
max
(
cw_
*
wallDist
(
mesh
()).
y
(),
cw_
*
delta
max
),
hwn
),
delta
max
max
(
max
(
cw_
*
wallDist
(
mesh
()).
y
(),
cw_
*
delta
),
hwn
),
delta
);
}
else
...
...
src/turbulenceModels/incompressible/LES/SpalartAllmarasIDDES/SpalartAllmarasIDDES.C
View file @
dadac8ac
...
...
@@ -44,9 +44,26 @@ addToRunTimeSelectionTable(LESModel, SpalartAllmarasIDDES, dictionary);
tmp
<
volScalarField
>
SpalartAllmarasIDDES
::
alpha
()
const
{
volScalarField
delta
(
IOobject
(
"delta"
,
mesh_
.
time
().
timeName
(),
mesh_
,
IOobject
::
NO_READ
,
IOobject
::
NO_WRITE
),
mesh_
,
dimensionedScalar
(
"zero"
,
dimLength
,
SMALL
),
calculatedFvPatchScalarField
::
typeName
);
delta
.
internalField
()
=
pow
(
mesh_
.
V
(),
1
.
0
/
3
.
0
);
return
max
(
0
.
25
-
y_
/
d
imensionedScalar
(
"hMax"
,
dimLength
,
max
(
cmptMax
(
delta
())))
,
0
.
25
-
y_
/
d
elta
,
scalar
(
-
5
)
);
}
...
...
wmake/rules/linux64Icc/c++
View file @
dadac8ac
...
...
@@ -2,7 +2,7 @@
c++WARN = -wd327,654,819,1125,1476,1505,1572
CC = icpc
CC = icpc
-std=c++0x
include $(RULES)/c++$(WM_COMPILE_OPTION)
...
...
wmake/rules/linux64Icc/c++Opt
View file @
dadac8ac
c++DBUG =
c++OPT = -x
T
-O3 -no-prec-div
c++OPT = -x
SSE3
-O3 -no-prec-div
wmake/rules/linuxIcc/c++
View file @
dadac8ac
...
...
@@ -3,7 +3,7 @@
c++WARN = -wd327,654,819,1125,1476,1505,1572
#CC = icpc -gcc-version=400
CC = icpc
CC = icpc
-std=c++0x
include $(RULES)/c++$(WM_COMPILE_OPTION)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment