void VelocityBufferReadStencil::applyBottomWall (FlowField & flowField, int i, int j){ flowField.getVelocity().getVector(i, 1)[0] = _bottomBufferIn[ 2*i ]; flowField.getVelocity().getVector(i, 0)[1] = _bottomBufferIn[2*i+1]; }
void VelocityBufferReadStencil::applyTopWall (FlowField & flowField, int i, int j){ flowField.getVelocity().getVector(i, flowField.getNy()+2)[0] = _topBufferIn[ 2*i ]; flowField.getVelocity().getVector(i, flowField.getNy()+2)[1] = _topBufferIn[2*i+1]; }
void VelocityBufferReadStencil::applyRightWall (FlowField & flowField, int i, int j){ flowField.getVelocity().getVector(flowField.getNx()+2, j)[0] = _rightBufferIn[ 2*j ]; flowField.getVelocity().getVector(flowField.getNx()+2, j)[1] = _rightBufferIn[2*j+1]; }