Skip to content
Snippets Groups Projects
Select Git revision
  • a97975445120e6aa1213fec405de33d01ab8bb01
  • master default
  • waldwiesen-simulation
  • weilin
  • textures
  • colab
  • torch_native-rewrite
  • ci-experiments
  • test-travis-test
  • os-travis
  • remove-lbm
  • bootstrap_theme
  • 0.3.3
  • 0.3.2
  • 0.3.1
  • 0.3.0
  • 0.2.2
  • 0.2.1
  • 0.2.0
  • 0.1.4
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
24 results

test_tfmad.py

Blame
  • 03_AdvancedLBMCodegen.cpp 8.71 KiB
    //======================================================================================================================
    //
    //  This file is part of waLBerla. waLBerla is free software: you can
    //  redistribute it and/or modify it under the terms of the GNU General Public
    //  License as published by the Free Software Foundation, either version 3 of
    //  the License, or (at your option) any later version.
    //
    //  waLBerla is distributed in the hope that it will be useful, but WITHOUT
    //  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    //  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    //  for more details.
    //
    //  You should have received a copy of the GNU General Public License along
    //  with waLBerla (see COPYING.txt). If not, see <http://www.gnu.org/licenses/>.
    //
    //! \file 03_AdvancedLBMCodegen.cpp
    //! \author Frederik Hennig <frederik.hennig@fau.de>
    //
    //======================================================================================================================
    
    #include "blockforest/all.h"
    
    #include "core/all.h"
    
    #if defined(WALBERLA_BUILD_WITH_CUDA)
    #   include "cuda/AddGPUFieldToStorage.h"
    #   include "cuda/DeviceSelectMPI.h"
    #   include "cuda/HostFieldAllocator.h"
    #   include "cuda/NVTX.h"
    #   include "cuda/ParallelStreams.h"
    #   include "cuda/communication/GPUPackInfo.h"
    #   include "cuda/communication/UniformGPUScheme.h"
    #endif
    
    #include "domain_decomposition/all.h"
    
    #include "field/all.h"
    #include "field/vtk/VTKWriter.h"
    
    #include "geometry/all.h"
    
    #include "stencil/D2Q9.h"
    
    #include "timeloop/all.h"
    
    //    Codegen Includes
    #include "CumulantMRTNoSlip.h"
    #include "CumulantMRTPackInfo.h"
    #include "CumulantMRTSweep.h"
    #include "InitialPDFsSetter.h"
    
    namespace walberla
    {
    ///////////////////////
    /// Typedef Aliases ///
    ///////////////////////
    
    // Communication Pack Info
    typedef pystencils::CumulantMRTPackInfo PackInfo_T;
    
    // LB Method Stencil
    typedef stencil::D2Q9 Stencil_T;
    
    // PDF field type
    typedef field::GhostLayerField< real_t, Stencil_T::Size > PdfField_T;
    
    // Velocity Field Type
    typedef field::GhostLayerField< real_t, Stencil_T::D > VectorField_T;
    
    // Boundary Handling