Dear all,
I am currently trying to get into the Smagorinsky model implemented in Palabos. For this, I wanted to compile the file
examples/codesByTopic/smagorinskyModel/smagorinskyCavity3D.cpp
however, the compilation breaks with the lines for BGK dynamics and follow-up instantiation of the Smagorinsky model.
MultiBlockLattice3D<T, DESCRIPTOR> lattice (
parameters.getNx(), parameters.getNy(), parameters.getNz(),
//new SmagorinskyBGKdynamics<T,DESCRIPTOR>(parameters.getOmega(), cSmago) );
//new SmagorinskyRegularizedDynamics<T,DESCRIPTOR>(parameters.getOmega(), cSmago) );
new BGKdynamics<T,DESCRIPTOR>(parameters.getOmega()) );
// Uncomment the following line to instantiate the Smagorinsky LES model,
// if the background-dynamics (i.e. the dynamics given to "lattice" in
// the constructor) is BGKdynamics instead of SmagorinskyBGKdynamics.
instantiateStaticSmagorinsky(lattice, lattice.getBoundingBox(), cSmago);
compiler output:
make
python ../../../scons/scons.py -f ../../../SConstruct palabosRoot=../../.. projectFiles="smagorinskyCavity3D.cpp" optimize=true debug=false profile=false MPIparallel=false SMPparallel=false usePOSIX=true useCVMLCPP=false serialCXX=g++ parallelCXX=mpicxx compileFlags="" linkFlags="" optimFlags="-O3" debugFlags="-g" profileFlags="-pg" libraryPaths="" includePaths="../include" libraries=""
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o smagorinskyCavity3D.o -c -O3 -DPLB_USE_POSIX -I/home/seil/fluidmech/palabos-v0.7r3/src -I/home/seil/fluidmech/palabos-v0.7r3/externalLibraries -I/home/seil/fluidmech/palabos-v0.7r3/examples/codesByTopic/include smagorinskyCavity3D.cpp
In file included from /home/seil/fluidmech/palabos-v0.7r3/src/complexDynamics/smagorinskyDynamics3D.h:45,
from /home/seil/fluidmech/palabos-v0.7r3/src/complexDynamics/headers3D.h:34,
from /home/seil/fluidmech/palabos-v0.7r3/src/palabos3D.h:27,
from smagorinskyCavity3D.cpp:21:
/home/seil/fluidmech/palabos-v0.7r3/src/complexDynamics/smagorinskyGenerics3D.h: In member function ‘void plb::StaticSmagorinskyFunctional3D<T, Descriptor, SmagoFunction>::process(plb::Box3D, plb::BlockLattice3D<T, Descriptor>&) [with T = double, Descriptor = plb::descriptors::D3Q19Descriptor, SmagoFunction = double (*)(long int, long int, long int, double)]’:
smagorinskyCavity3D.cpp:177: instantiated from here
/home/seil/fluidmech/palabos-v0.7r3/src/complexDynamics/smagorinskyGenerics3D.h:46: error: ‘class plb::Cell<double, plb::descriptors::D3Q19Descriptor>’ has no member named ‘getOmega’
scons: *** [smagorinskyCavity3D.o] Error 1
scons: building terminated because of errors.
make: *** [compile] Fehler 2
I am using Palabos 0.7r3
regards,
Philippe