|
waLBerla 7.3
|
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.
#include "blockforest/SetupBlockForest.h"#include "blockforest/StructuredBlockForest.h"#include "blockforest/communication/NonUniformBufferedScheme.h"#include "blockforest/loadbalancing/DynamicCurve.h"#include "blockforest/loadbalancing/NoPhantomData.h"#include "blockforest/loadbalancing/StaticCurve.h"#include "blockforest/Initialization.h"#include "core/all.h"#include "field/all.h"#include "geometry/all.h"#include "lbm_generated/communication/NonuniformGeneratedPdfPackInfo.h"#include "lbm_generated/evaluation/PerformanceEvaluation.h"#include "lbm_generated/field/AddToStorage.h"#include "lbm_generated/field/PdfField.h"#include "lbm_generated/refinement/BasicRecursiveTimeStep.h"#include "timeloop/all.h"#include "InfoHeader.h"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) |
| int main | ( | int | argc, |
| char ** | argv ) |