Exemplo n.º 1
0
cyCamera::cyCamera()
{
    // get _the_ virtual camera
    plUoid pU( kVirtualCamera1_KEY );
    hsResMgr* hrm = hsgResMgr::ResMgr();
    if ( hrm)
        fTheCam = hrm->FindKey( pU );
    else
        fTheCam = nil;
}
void meshVelocityPluginFunction::doEvaluation()
{
    autoPtr<volVectorField> pU(
        new volVectorField(
            IOobject(
                "meshUSwak",
                mesh().time().timeName(),
                mesh(),
                IOobject::NO_READ,
                IOobject::NO_WRITE
            ),
            mesh(),
            dimensionedVector("nonOr",dimless,vector::zero),
            "zeroGradient"
        )
    );
    volVectorField &U=pU();

    U = fvc::reconstruct(mesh().phi());

    U.correctBoundaryConditions();

    result().setObjectResult(pU);
}