mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
processorFvPatchField now holds opposite value; not interpolate
This commit is contained in:
@ -59,7 +59,6 @@ processorVolPatchFieldDecomposer
|
|||||||
addressing_(addressingSlice.size()),
|
addressing_(addressingSlice.size()),
|
||||||
weights_(addressingSlice.size())
|
weights_(addressingSlice.size())
|
||||||
{
|
{
|
||||||
const scalarField& weights = mesh.weights().internalField();
|
|
||||||
const labelList& own = mesh.faceOwner();
|
const labelList& own = mesh.faceOwner();
|
||||||
const labelList& neighb = mesh.faceNeighbour();
|
const labelList& neighb = mesh.faceNeighbour();
|
||||||
|
|
||||||
@ -72,15 +71,22 @@ processorVolPatchFieldDecomposer
|
|||||||
{
|
{
|
||||||
// This is a regular face. it has been an internal face
|
// This is a regular face. it has been an internal face
|
||||||
// of the original mesh and now it has become a face
|
// of the original mesh and now it has become a face
|
||||||
// on the parallel boundary
|
// on the parallel boundary.
|
||||||
addressing_[i].setSize(2);
|
// Give face the value of the neighbour.
|
||||||
weights_[i].setSize(2);
|
|
||||||
|
|
||||||
addressing_[i][0] = own[ai];
|
addressing_[i].setSize(1);
|
||||||
addressing_[i][1] = neighb[ai];
|
weights_[i].setSize(1);
|
||||||
|
weights_[i][0] = 1.0;
|
||||||
|
|
||||||
weights_[i][0] = weights[ai];
|
if (addressingSlice[i] >= 0)
|
||||||
weights_[i][1] = 1.0 - weights[ai];
|
{
|
||||||
|
// I have the owner so use the neighbour value
|
||||||
|
addressing_[i][0] = neighb[ai];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
addressing_[i][0] = own[ai];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -89,7 +95,7 @@ processorVolPatchFieldDecomposer
|
|||||||
// do the interpolation properly (I would need to look
|
// do the interpolation properly (I would need to look
|
||||||
// up the different (face) list of data), so I will
|
// up the different (face) list of data), so I will
|
||||||
// just grab the value from the owner cell
|
// just grab the value from the owner cell
|
||||||
//
|
|
||||||
addressing_[i].setSize(1);
|
addressing_[i].setSize(1);
|
||||||
weights_[i].setSize(1);
|
weights_[i].setSize(1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user