BUGFIX: Correct averaging in ProcessorPointPatchField. Author: Vanja Skuric. Merge: Dominik Christ.
This commit is contained in:
commit
8f829cc2e7
6 changed files with 13 additions and 26005 deletions
|
@ -80,3 +80,4 @@ Contents:
|
|||
Tian Tang
|
||||
Zeljko Tukovic
|
||||
Niklas Wikstrom
|
||||
Vanja Skuric
|
||||
|
|
|
@ -476,7 +476,7 @@ initEvaluate
|
|||
}
|
||||
|
||||
|
||||
// Field transfer
|
||||
// Initialise field transfer
|
||||
template
|
||||
<
|
||||
template<class> class PatchField,
|
||||
|
@ -511,18 +511,21 @@ evaluate
|
|||
}
|
||||
|
||||
// Average over two sides
|
||||
// VS, 2015-04-12 - This works in parallel!
|
||||
tpn = 0.5*(this->patchInternalField(this->internalField()) + tpn);
|
||||
|
||||
// ZT, 22-07-2014 - point ordering is not same
|
||||
// at master and slave side after topology change
|
||||
const labelList& neiPoints =
|
||||
procPatch_.procPolyPatch().neighbPoints();
|
||||
|
||||
tpn =
|
||||
0.5*
|
||||
(
|
||||
this->patchInternalField(this->internalField())
|
||||
+ Field<Type>(tpn, neiPoints)
|
||||
);
|
||||
// VS, 2015-04-12 - This doesn't work in parallel!
|
||||
// tpn =
|
||||
// 0.5*
|
||||
// (
|
||||
// this->patchInternalField(this->internalField())
|
||||
// + Field<Type>(tpn, neiPoints)
|
||||
// );
|
||||
|
||||
// Get internal field to insert values into
|
||||
Field<Type>& iF = const_cast<Field<Type>&>(this->internalField());
|
||||
|
|
|
@ -5,3 +5,4 @@
|
|||
|
||||
cleanCase
|
||||
\rm -rf constant/polyMesh/*
|
||||
\rm -f naca0012.cas
|
||||
|
|
|
@ -7,4 +7,5 @@ application="dbnsTurbFoam"
|
|||
|
||||
gunzip naca0012.cas.gz
|
||||
runApplication fluentMeshToFoam naca0012.cas
|
||||
gzip naca0012.cas
|
||||
runApplication $application
|
||||
|
|
File diff suppressed because one or more lines are too long
BIN
tutorials/compressible/dbnsTurbFoam/naca0012/naca0012.cas.gz
Normal file
BIN
tutorials/compressible/dbnsTurbFoam/naca0012/naca0012.cas.gz
Normal file
Binary file not shown.
Reference in a new issue