Skip to content

Adrian

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 344 total)
  • Author
    Posts
  • Adrian
    Keymaster

    Solution for what? Did you actually change the physical parameters or just the collision model?

    I repeat: The error here is the difference between simulation and expected reference solution, not a program error. If you mean the gnuplot warning: just install gnuplot if you want to directly generate result plots for your simulation.

    Adrian
    Keymaster

    What do you mean by “required output”? Going by your first message I guess you just want to change the physical parameters which you can achieve by changing the parameters given to the unit converter.

    Adrian
    Keymaster

    This is not an error – the same message (with different results) is also printed for the unmodified lid driven cavity case. As the description suggests it is not a program error but the numerical error between simulation and reference solution.

    in reply to: Passing a custom field to coupling #8437
    Adrian
    Keymaster

    The problem is that your custom field PREV_PHI is not a member of DESCRIPTOR but a separate type. Simply amend your field get/set functions to use it without the DESCRIPTOR:: prefix.

    in reply to: particle flow #8420
    Adrian
    Keymaster

    Yes, this is possible and particles::creators::addResolvedArbitraryShape3D is the correct function for this. (One restriction that I am aware of is that the particles currently must be concave if you want to use the contact model)

    in reply to: An issue when running parallel simulations #8419
    Adrian
    Keymaster

    Ok, this is indeed a bug in the code. You should be able to fix it by changing line 142 of src/core/blockLattice.hh to:

    
            popF(pop, loc.data());
    

    or using SuperLattice::defineField<POPULATION>

    Sorry about this and thanks for discovering this issue!

    I also pushed a fix to the public branch.

    in reply to: An issue when running parallel simulations #8410
    Adrian
    Keymaster

    What is the type of populationPF?

    in reply to: FSLBM one-way coupling to Advection-Diffusion Equation #8406
    Adrian
    Keymaster

    Coupling ADE to a free surface model for the fluid phase should be possible in the way you describe (there may be some modification required in the specific coupling operator you want to use). Of course transport within the gas phase won’t be covered by such a combined model by definition.

    in reply to: Analysis of custom models #8405
    Adrian
    Keymaster

    What do you mean by “the simulation didn’t run”? Which error / problem did you get? The example case on its own should be a good choice for a starting point in your case.

    You can visualize streamlines in ParaView using the “Stream Tracer” filter on the velocity field produced by OpenLB. Similarly you should be able to compute the drag there (although OpenLB includes a drag/lift computation functor, this is used by e.g. the cylinder3d example case).

    in reply to: An issue when running parallel simulations #8395
    Adrian
    Keymaster

    You can use the SuperF-accepting overload of SuperLattice::definePopulations instead. If the discretization is identical (as it needs to be for coupling two lattices) you can directly pass your populationA functor.

    Communicate-to-all communicates the results of all evaluations to all processes. e.g. this can be used if all processes need to iterate over the whole simulation domain (but not all processes hold all data, i.e. parallelization is used).

    in reply to: Free Energy Model: Implementing Gravity #8387
    Adrian
    Keymaster

    For Multi-Phase models external forces such as gravity are usually defined via the descriptors::EXTERNAL_FORCE field. You can check out e.g. the Rayleigh Taylor example case.

    in reply to: How to access the basic values? #8379
    Adrian
    Keymaster

    You can access the physical location of each discrete lattice location using the CuboidGeometry::getPhysR method. If you need this in the described matrix format you can generate it using this information by e.g. assigning a globally unique cell ID as a combination of global cuboid index and block-local cell ID (obtainable via BlockStructure::getCellId).

    in reply to: Problem when using mpi #8337
    Adrian
    Keymaster

    Ok, judging from the initial log you are compiling inside WSL?

    Which distribution are you using and how / which MPI packages did you install?

    Following the “tech report” you are likely missing the libopenmpi-dev package.

    in reply to: Problem when using mpi #8335
    Adrian
    Keymaster

    Which MPI version are you using and can you share details on your system? The mpic++ wrapper should set the required include paths automatically (it is it’s main point). The issue is that does are not found in your environment.

    in reply to: An issue when running parallel simulations #8317
    Adrian
    Keymaster

    Yes, this issue was caused by enabling the “communicate to all”-mode with the second constructor argument. Happy to hear that the default arguments worked for you.

    In any case: Be aware that this functor will interpolate the values, this is not necessary when sharing the same discretization (as you do here due to constructing both lattices from the same super geometry).

Viewing 15 posts - 16 through 30 (of 344 total)