porousPoiseuille2d.cpp
› Forums › on OpenLB › General Topics › porousPoiseuille2d.cpp
- This topic has 1 reply, 2 voices, and was last updated 5 years, 1 month ago by jan.
-
AuthorPosts
-
September 11, 2020 at 4:29 pm #5118zhaisnParticipant
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 ZhaiSeptember 14, 2020 at 10:19 am #5123janParticipantHello Shuainan Zhai,
The problem is that the compiler cannot find
SuperLatticeEpsilon2D, since it does not exist. Please try to useSuperLatticeGuoZhaoEpsilon2Dinstead. For more information about this functor see https://www.openlb.net/DoxyGen/html/db/da5/classolb_1_1SuperLatticeGuoZhaoEpsilon2D.html.Cheers,
Jan -
AuthorPosts
- You must be logged in to reply to this topic.
