Skip to content

Definition of a local coordinate system in function 'forces' causes crash of the calculation

Here after is the definition of a forces function with the declaration of a local coordinate system instead of CofR, like described here: https://www.openfoam.com/documentation/cpp-guide/html/classFoam_1_1functionObjects_1_1forces.html

{ type forces;

functionObjectLibs ( "libforces.so" );

writeControl    timeStep;
writeInterval   1;

log         yes;

patches     ( "blade.*" );
pName       p;
UName       U;
rho         rhoInf;     // Indicates incompressible
log         true;
rhoInf      1;          // Redundant for incompressible

coordinateSystem
{
    type    cartesian;
    origin  (1.524 0 0); 
    coordinateRotation
    {
        type    axesRotation;
        e1      (-0.98480498 -0.17364769 0.00237365);
        e2      (-1.73648178e-01 9.84807753e-01 0.0);
    }
}

}

It causes a crash of the calculation with the error here below:

--> FOAM FATAL IO ERROR: keyword origin is undefined in dictionary "/home/etudes/etudes_NP/ETR180036_NavalGroup_GrandChallengeIrene/01_helice_E779A/E779A_cyclic_MovingMesh/system/controlDict.functions.forces"

From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
in file db/dictionary/dictionary.C at line 277.

Looks like a bug.