Skip to content

porousPoiseuille2d.cpp

Due to recent bot attacks we have chanced the sign-up process. If you want to participate in our forum, first register on this website and then send a message via our contact form.

Forums on OpenLB General Topics porousPoiseuille2d.cpp

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5118
    zhaisn
    Participant

    Dear all,
    I got some problems when I run the porousPoiseuille2d.cpp of examples. When I cancel the comment of `
    SuperVTMwriter2D<T> vtkWriter(“porousPoiseuille2d”);
    SuperLatticePhysVelocity2D<T, DESCRIPTOR> velocity(sLattice, converter);
    SuperLatticePhysPressure2D<T, DESCRIPTOR> pressure(sLattice, converter);
    // SuperLatticeEpsilon2D<T, DESCRIPTOR> epsilonVTM(sLattice, converter);
    // SuperLatticePhysK2D<T, DESCRIPTOR> KVTM(sLattice, converter);
    // SuperLatticePhysBodyForce2D<T, DESCRIPTOR> bodyForce(sLattice, converter);
    vtkWriter.addFunctor( velocity );
    vtkWriter.addFunctor( pressure );
    // vtkWriter.addFunctor( epsilonVTM );
    // vtkWriter.addFunctor( KVTM );
    // vtkWriter.addFunctor( bodyForce );`
    in the function of getResults, the program export an error, likes,
    porousPoiseuille2d.cpp:224:3: error: ‘SuperLatticeEpsilon2D’ was not declared in this scope
    224 | SuperLatticeEpsilon2D<T, DESCRIPTOR> epsilonVTM(sLattice, converter);
    | ^~~~~~~~~~~~~~~~~~~~~
    porousPoiseuille2d.cpp:224:26: error: expected primary-expression before ‘,’ token
    224 | SuperLatticeEpsilon2D<T, DESCRIPTOR> epsilonVTM(sLattice, converter);
    | ^
    porousPoiseuille2d.cpp:224:38: error: expected primary-expression before ‘>’ token
    224 | SuperLatticeEpsilon2D<T, DESCRIPTOR> epsilonVTM(sLattice, converter);
    | ^
    porousPoiseuille2d.cpp:224:40: error: ‘epsilonVTM’ was not declared in this scope; did you mean ‘epsilon’?
    224 | SuperLatticeEpsilon2D<T, DESCRIPTOR> epsilonVTM(sLattice, converter);
    | ^~~~~~~~~~
    | epsilon
    make: *** [Makefile:57: /home/zsn/openLB/examples/porousMedia/porousPoiseuille2d/porousPoiseuille2d.o] Error 1
    How can I solve it?
    Thanks,
    Shuainan Zhai

    #5123
    jan
    Participant

    Hello Shuainan Zhai,

    The problem is that the compiler cannot find SuperLatticeEpsilon2D, since it does not exist. Please try to use SuperLatticeGuoZhaoEpsilon2D instead. For more information about this functor see https://www.openlb.net/DoxyGen/html/db/da5/classolb_1_1SuperLatticeGuoZhaoEpsilon2D.html.

    Cheers,
    Jan

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.