Skip to content
Snippets Groups Projects
Forked from VTK / VTK
26977 commits behind the upstream repository.
Mark Olesen's avatar
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
History
Name Last commit Last update