GithubHelp home page GithubHelp logo

Comments (4)

ProjectPhysX avatar ProjectPhysX commented on May 13, 2024

With the WINDOWS_GAPHICS option you'll have to compile in Windows directly, for example with the MSVC compiler in Visual Studio Community. Compiling that in WSL will not work, as that's a linux environment.

The CONSOLE_GRAPHICS option works in both Windows and Linux/WSL, provided your GPU appears as OpenCL device in WSL. Once the ASCII graphics window and pixel counter appears, the simulation is paused and by default grid flags are visualized. In the 3D Taylor-Green setup there is no solid geometry, so no flags are visualized and the window initially looks black. Press key 4 to enable Q-criterion isosurface visualization, or the other visualization modes with keys 2 or 3, then you should see something. Press P to start/pause the simulation. You can rotate the camera with W/A/S/D.

To disable interactive graphics and instead write rendered images to the hard drive, use GRTAPHICS, and in src/setup.cpp in the main_setup() function you'll need to make a loop to alternatingly run a specified number of LBM time steps and write images. For example:

key_4 = true; // enable Q-criterion isosurface rendering by default
lbm.graphics.set_camera_centered(-60.0f, 20.0f, 0.0f, 2.5f); // set camera
lbm.run(0u); // initialize simulation
while(lbm.get_t()<18000u) {
	lbm.graphics.write_frame_png(); // render frame and write it to hard drive in bin/export/
	lbm.run(30u); // run 30 LBM time steps
}

from fluidx3d.

gittigittibangbang avatar gittigittibangbang commented on May 13, 2024

Thank you, I got it working with the GRAPHICS option, and I'll try getting the WINDOWS_GRAPHICS option to work, too. Pictures of the cylinder model look great, but the ones from the F1 car, Concorde or 747 model tend to fill up with isosurfaces completely, even when using varying values of the Q-criterion. Do you have a recommendation for that? By the way, is it possible to create cutting planes and legends?

And again, thanks for creating and publishing your solver, it could really be the kick in the ass for some bigger solver developers to modernize their codes! It's really great work :)

from fluidx3d.

ProjectPhysX avatar ProjectPhysX commented on May 13, 2024

What you see is the simulation blowing up at large Reynolds numbers. For these you need to enable SUBGRID in src/defines.hpp!

from fluidx3d.

gittigittibangbang avatar gittigittibangbang commented on May 13, 2024

Ah, that makes sense, thank you.

Another quick question: I compiled the benchmark files on my home PC to run them on a workstation, which works fine. However, using the same workflow to compile the exe (using MinGW bash environment to use ./make.sh) on the workstation, the solver does not run stating that no OpenCL devices are available. Since the files created on my personal PC worked without a problem on the workstation using either the GPU or CPU, this seems odd. Do you happen to know what the issue might be? The GPU drivers are installed, of course.

from fluidx3d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.