Skip to content
  • olesen's avatar
    ENH: gracefully ignore the OpenFOAM code blocks (fixes #17030) · 8b9b5239
    olesen authored
    These #{ .. #} constructs are used for dynamic code compilation/loading,
    and are typically used for boundary conditions.
    Eg, tutorials/combustion/XiDyMFoam/oscillatingCylinder/ pointDisplacementy
    
        cylinder
        {
            type            codedFixedValue;
            value           uniform 0.00095105652;
            name            pointDisplacementy_cylinder;
            code            #{
                const scalar t = this->db().time().value();
                const scalar a = 0.001;
                const scalar f = 200;
                operator==(a*sin(constant::mathematical::twoPi*f*t));
            #};
        }
    
    The 'value' entry has been generated by the boundary condition, and is
    the only entry that ParaView needs to represent the boundary values.
    The code entry can be silently skipped over with no ill-effect.
    8b9b5239