Skip to content

cavity2d example

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10000
    Dusan
    Participant

    New to openLB. I’m getting several warnings compiling the cavity2d example and the images are not generated and the vtk file is empty after running the generated executable. These are the warnings:
    g++ -O3 -Wall -march=native -mtune=native -std=c++17 -pthread -DPLATFORM_CPU_SISD -DDEFAULT_FLOATING_POINT_TYPE=double -I../../../src -I../../../external/zlib -I../../../external/tinyxml -c -o cavity2d.o cavity2d.cpp
    In file included from ../../../src/core/core.hh:38,
    from ../../../src/core/core2D.hh:28,
    from ../../../src/olb2D.hh:1,
    from cavity2d.cpp:34:
    ../../../src/core/unitConverter.hh: In instantiation of ‘olb::UnitConverter<T, DESCRIPTOR>* olb::createUnitConverter(const XMLreader&) [with T = double; DESCRIPTOR = descriptors::D2Q9<>]’:
    cavity2d.cpp:238:77: required from here
    238 | UnitConverter<T,DESCRIPTOR>* converter = createUnitConverter<T,DESCRIPTOR>( config );
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
    ../../../src/core/unitConverter.hh:125:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
    125 | for(int i = 0; i<discretizationParam.size(); i++){
    | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
    g++ cavity2d.o -o cavity2d -lolbcore -L../../../external/lib -lpthread -lz -ltinyxml -L../../../build/lib

    #10001
    Dusan
    Participant

    Ah it seems i did not have the gnuplot installed on my machine. The images are there now, and since I’m a beginner I did not know to select Velocity and surface in paraview. Although the warnings remained.

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