Skip to content

OpenLB including

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #4747
    iJokerify
    Participant

    Dear all!
    I have installed OpenLB on the Linux system Ubuntu by following the instruction. Now i can’t understand how to include OpenLB in my project. Can someone help me, please?
    In addition i have one more question. Can i simulate an aerodynamic process in a porous substance using this?

    #4748
    mathias
    Keymaster

    Dear iJokerify,
    I think you can simulate it (depending on the fluid regime). You can link the libary to your project (which includes something like our of our examples codes). If you want to learn more about OpenLB, have a look at the user guide or come to our spring school.

    Best
    Mathias

    #4756
    nv4dll
    Participant

    Dear iJokerify,
    I’m using Clion for debug, here is my cmakelist:

    cmake_minimum_required(VERSION 3.10)
    project(LBM)
    SET (CMAKE_USE_RELATIVE_PATHS ON)
    #OpenLB库文件
    set(LINK_DIR ${PROJECT_SOURCE_DIR}/lib/olb/build/precompiled/lib)
    link_directories(${LINK_DIR})
    set(CMAKE_CXX_STANDARD 14)
    #OpenLB库文件
    include_directories(${PROJECT_SOURCE_DIR}/lib/olb/src)
    include_directories(${PROJECT_SOURCE_DIR}/lib/olb/src/external/zlib)
    include_directories(${PROJECT_SOURCE_DIR}/lib/olb/src/external/tinyxml)
    
    include_directories(SYSTEM ${MPI_INCLUDE_PATH})
    set(CMAKE_CXX_COMPILE_FLAGS ${CMAKE_CXX_COMPILE_FLAGS} 
    #your source code PATH
    add_executable(LBM ${PROJECT_SOURCE_DIR}/src/main3d.cpp )
    
    target_link_libraries(LBM olb)
    target_link_libraries(LBM z)

    you should precompiled opeblb first and put everthing in opeblb libary under the /lib/olb/ (make new dir named lib&olb)

    or you can just give me your email I can send you files

    #4762
    iJokerify
    Participant

    Thanks for your reply. My email is ijoker0998@gmail.com and i’ll very grateful if you send it )

    #4763
    nv4dll
    Participant

    I had send you a email, please check your inbox.
    You are welcome:)

    #4782
    iJokerify
    Participant

    I’m sorry but i didn’t receive your email. Can your resend it ?

    #4783
    nv4dll
    Participant

    I had resend the email via gmail , please check for it.

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