mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: Updated header documentation
This commit is contained in:
@ -52,12 +52,11 @@ void Foam::meshToMeshNew::calcMapNearest
|
||||
|
||||
do
|
||||
{
|
||||
srcToTgt[srcCellI].append(tgtCellI);
|
||||
|
||||
// find nearest tgt cell
|
||||
findNearestCell(src, tgt, srcCellI, tgtCellI);
|
||||
|
||||
// store src/tgt cell pair
|
||||
srcToTgt[srcCellI].append(tgtCellI);
|
||||
tgtToSrc[tgtCellI].append(srcCellI);
|
||||
|
||||
// mark source cell srcCellI and tgtCellI as matched
|
||||
@ -108,12 +107,7 @@ void Foam::meshToMeshNew::calcMapNearest
|
||||
forAll(tgtToSrcCellAddr_, i)
|
||||
{
|
||||
scalar v = tgtVc[i];
|
||||
scalarList w(tgtToSrc[i].size(), v);
|
||||
forAll(w, j)
|
||||
{
|
||||
w[j] /= w.size();
|
||||
}
|
||||
tgtToSrcCellWght_[i] = scalarList(w, v);
|
||||
tgtToSrcCellWght_[i] = scalarList(tgtToSrc[i].size(), v);
|
||||
tgtToSrcCellAddr_[i].transfer(tgtToSrc[i]);
|
||||
}
|
||||
}
|
||||
@ -239,4 +233,5 @@ Foam::label Foam::meshToMeshNew::findMappedSrcCell
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -27,6 +27,15 @@ Class
|
||||
Description
|
||||
Class to calculate the cell-addressing between two overlapping meshes
|
||||
|
||||
Three methods are currently available:
|
||||
- direct : 1-to-1 mapping between meshes
|
||||
- mapNearest : assign nearest cell values without interpolation
|
||||
- cellVolumeWeight : volume consistent mapping
|
||||
|
||||
The \c direct and \c cellVolumeWeight options are volume conservative,
|
||||
whereas mapNearest is non-conservative.
|
||||
|
||||
|
||||
SourceFiles
|
||||
calcDirect.C
|
||||
calcMapNearest.C
|
||||
|
||||
Reference in New Issue
Block a user