const tensorField&
MixingPlaneInterpolation<MasterPatch, SlavePatch>::slaveProfileToPatchT() const
{
    if (!slaveProfileToPatchTPtr_)
    {
        calcTransforms();
    }

    return *slaveProfileToPatchTPtr_;
}
Esempio n. 2
0
void Foam::ggiPolyPatch::calcGeometry()
{
    polyPatch::calcGeometry();

    // Note: Calculation of transforms must be forced before the
    // reconFaceCellCentres in order to correctly set the transformation
    // in the interpolation routines.
    // HJ, 3/Jul/2009
    calcTransforms();

    // Reconstruct the cell face centres
    if (patchToPatchPtr_ && master())
    {
        reconFaceCellCentres();
    }
}
Esempio n. 3
0
//--------------------------------------------------------------
void testApp::update(){
	
	FOREACH_CAMERA
		camera[iCam].update();
	
	if (NUM_CAMERAS==2)
		if (camera[0].bangAdded && camera[1].bangAdded)
		{
			camera[0].bangAdded = false;
			camera[1].bangAdded = false;
			calcTransforms();
		}
	
	if (timerOn)
		if (ofGetElapsedTimef() > (lastCaptureTime+TIMER_PERIOD) && !camera[0].doAdd && !camera[1].doAdd)
		{
			capture();
			lastCaptureTime = ofGetElapsedTimef();
		}
}
Esempio n. 4
0
void Foam::cyclicFaPatch::movePoints(const pointField& p)
{
    faPatch::movePoints(p);
    calcTransforms();
}
Esempio n. 5
0
void Foam::cyclicFaPatch::calcGeometry()
{
    faPatch::calcGeometry();
    calcTransforms();
}