waLBerla 7.3
Loading...
Searching...
No Matches
AdaptiveMeshRefinementExample.cpp File Reference

Detailed Description

SPDX-License-Identifier: CC-0 SPDX-FileCreatedBy:Philipp Suffa phili.nosp@m.pp.s.nosp@m.uffa@.nosp@m.fau..nosp@m.de SPDX-FileCreatedUsing: [Claude Opus 4.8].

Flow around a sphere with ADAPTIVE (dynamic) mesh refinement for the lbm_generated module.

In contrast to the (static) MeshRefinementExample, the block forest is re-partitioned during the simulation: blocks are refined where the velocity field shows strong gradients (the sphere and its developing wake) and coarsened again in calm regions. The refinement is performed via blockforest->refresh(), which migrates all block data (the PDF field, the macroscopic fields and the flag field) between the refinement levels and re-balances the load across processes.

Classes

class  walberla::VelocityGradientRefinement
 Adaptive refinement criterion. More...

Namespaces

namespace  walberla
 Storage for detected contacts which can be used to perform actions for all contacts, e.g.

Functions

const FlagUID walberla::FluidFlagUID ("Fluid")
const FlagUID walberla::NoSlipFlagUID ("NoSlip")
const FlagUID walberla::UBBFlagUID ("UBB")
const FlagUID walberla::OutflowFlagUID ("Outflow")
const FlagUID walberla::FreeSlipFlagUID ("FreeSlip")
int walberla::main (int argc, char **argv)
 Main Function ///.
int main (int argc, char **argv)

Function Documentation

◆ main()

int main ( int argc,
char ** argv )