From 4674e59727b2a8f685064954c11ebd82542ca01a Mon Sep 17 00:00:00 2001 From: Markus Holzer <markus.holzer@fau.de> Date: Tue, 2 May 2023 20:15:33 +0200 Subject: [PATCH] Change default field layout to fzyx --- .../AMRSedimentSettling.cpp | 8 ++--- .../AMRSettlingSphere.cpp | 8 ++--- .../WorkloadEvaluation.cpp | 6 ++-- .../FluidParticleWorkloadDistribution.cpp | 6 ++-- .../FluidParticleWorkloadEvaluation.cpp | 6 ++-- .../ForcesOnSphereNearPlaneInShearFlow.cpp | 6 ++-- .../MotionSingleHeavySphere.cpp | 8 ++--- .../SchaeferTurek/SchaeferTurek.cpp | 2 +- apps/showcases/Antidunes/Antidunes.cpp | 2 +- .../BidisperseFluidizedBedDPM.cpp | 32 +++++++++---------- .../CombinedResolvedUnresolved.cpp | 32 +++++++++---------- .../FluidizedBed/FluidizedBedMEM.cpp | 4 +-- .../LightRisingParticleInFluidAMR.cpp | 12 +++---- apps/showcases/PorousMedia/PorousMedia.cpp | 2 +- apps/tutorials/basics/03_GameOfLife.cpp | 2 +- apps/tutorials/pde/01_SolvingPDE.cpp | 6 ++-- apps/tutorials/pde/02_HeatEquation.cpp | 6 ++-- .../pde/03_HeatEquation_Extensions.cpp | 6 ++-- src/cuda/GPUField.h | 2 +- src/field/AddToStorage.h | 12 +++---- src/field/Field.h | 8 ++--- src/field/Field.impl.h | 4 +-- src/field/GhostLayerField.h | 8 ++--- src/field/blockforest/BlockDataHandling.h | 10 +++--- src/lbm/boundary/Curved.h | 2 +- src/lbm/boundary/DiffusionDirichlet.h | 4 +-- src/lbm/boundary/DynamicUBB.h | 2 +- src/lbm/boundary/NoSlip.h | 2 +- src/lbm/boundary/ParserUBB.h | 10 +++--- src/lbm/boundary/Pressure.h | 4 +-- src/lbm/boundary/SimpleUBB.h | 4 +-- src/lbm/boundary/UBB.h | 6 ++-- src/lbm/boundary/VelocityBoundary.h | 4 +-- src/lbm/field/AddToStorage.h | 16 +++++----- src/lbm/field/PdfField.h | 2 +- src/mesh/boundary/BoundarySetup.cpp | 2 +- src/pde/boundary/Dirichlet.h | 2 +- src/pde/boundary/Dirichlet_withDx.h | 2 +- src/pde/boundary/Neumann.h | 2 +- src/pde/iterations/VCycles.impl.h | 26 +++++++-------- src/python_coupling/export/CUDAExport.impl.h | 2 +- src/python_coupling/export/FieldExport.impl.h | 4 +-- tests/blockforest/BlockDataIOTest.cpp | 4 +-- tests/core/load_balancing/MetisTest.cpp | 4 +-- tests/core/load_balancing/ParMetisTest.cpp | 4 +-- .../GPUPackInfoCommunicationTest.cpp | 2 +- tests/fft/GreensTest.cpp | 4 +-- tests/field/AddToStorageTest.cpp | 6 ++-- tests/field/FieldTest.cpp | 8 ++--- tests/field/distributors/DistributionTest.cpp | 6 ++-- .../interpolators/FieldInterpolationTest.cpp | 6 ++-- tests/gui/SimpleGuiRun.cpp | 4 +-- tests/lbm/field/QCriterionTest.cpp | 2 +- tests/lbm/refinement/Uniformity.cpp | 2 +- .../mapping/ParticleMapping.cpp | 4 +-- .../DragForceSphere.cpp | 6 ++-- .../ForceBetweenTwoStationaryObjects.cpp | 4 +-- .../MovingParticleMapping.cpp | 6 ++-- .../PdfReconstruction.cpp | 6 ++-- .../SettlingSphere.cpp | 6 ++-- .../UpdateParticleMapping.cpp | 6 ++-- .../DragForceSphere.cpp | 4 +-- .../ParticleAndVolumeFractionMapping.cpp | 2 +- .../SettlingSphere.cpp | 4 +-- .../TorqueSphere.cpp | 6 ++-- .../utility/InspectionProbe.cpp | 6 ++-- tests/pde/BoundaryTest.cpp | 10 +++--- tests/pde/CGTest.cpp | 10 +++--- tests/pde/JacobiTest.cpp | 6 ++-- tests/pde/MGConvergenceTest.cpp | 4 +-- tests/pde/MGTest.cpp | 4 +-- tests/pde/RBGSTest.cpp | 4 +-- tests/pde/SORTest.cpp | 4 +-- .../HinderedSettlingDynamicsDPM.cpp | 32 +++++++++---------- .../SphereWallCollisionBehaviorDPM.cpp | 30 ++++++++--------- .../BodyAtBlockBoarderCheck.cpp | 6 ++-- .../BodyMappingTest.cpp | 6 ++-- .../DragForceSphereMEM.cpp | 8 ++--- .../DragForceSphereMEMRefinement.cpp | 6 ++-- ...lobalBodyAsBoundaryMEMStaticRefinement.cpp | 6 ++-- .../LubricationCorrectionMEM.cpp | 6 ++-- .../PeriodicParticleChannelMEM.cpp | 6 ++-- .../SegreSilberbergMEM.cpp | 8 ++--- .../SettlingSphereMEM.cpp | 6 ++-- .../SettlingSphereMEMDynamicRefinement.cpp | 6 ++-- .../SettlingSphereMEMStaticRefinement.cpp | 6 ++-- .../momentum_exchange_method/SquirmerTest.cpp | 4 +-- .../TaylorCouetteFlowMEM.cpp | 4 +-- .../TorqueSphereMEM.cpp | 8 ++--- .../DragForceSpherePSM.cpp | 6 ++-- .../DragForceSpherePSMRefinement.cpp | 6 ++-- .../SegreSilberbergPSM.cpp | 6 ++-- .../TorqueSpherePSM.cpp | 6 ++-- 93 files changed, 310 insertions(+), 310 deletions(-) diff --git a/apps/benchmarks/AdaptiveMeshRefinementFluidParticleCoupling/AMRSedimentSettling.cpp b/apps/benchmarks/AdaptiveMeshRefinementFluidParticleCoupling/AMRSedimentSettling.cpp index e6a1f4f6f..38d1d9ad4 100644 --- a/apps/benchmarks/AdaptiveMeshRefinementFluidParticleCoupling/AMRSedimentSettling.cpp +++ b/apps/benchmarks/AdaptiveMeshRefinementFluidParticleCoupling/AMRSedimentSettling.cpp @@ -1492,17 +1492,17 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( lbm::collision_model::TRT::constructWithMagicNumber( omega, lbm::collision_model::TRT::threeSixteenth, finestLevel ) ); // add PDF field - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_t(0) ), real_t(1), - FieldGhostLayers, field::zyxf ); + FieldGhostLayers, field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field", FieldGhostLayers ); // add body field - BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::zyxf, FieldGhostLayers ); + BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::fzyx, FieldGhostLayers ); // add velocity field and utility - BlockDataID velocityFieldID = field::addToStorage<VelocityField_T>( blocks, "velocity field", Vector3<real_t>(real_t(0)), field::zyxf, uint_t(2) ); + BlockDataID velocityFieldID = field::addToStorage<VelocityField_T>( blocks, "velocity field", Vector3<real_t>(real_t(0)), field::fzyx, uint_t(2) ); using VelocityFieldWriter_T = lbm::VelocityFieldWriter<PdfField_T, VelocityField_T>; BlockSweepWrapper< VelocityFieldWriter_T > velocityFieldWriter( blocks, VelocityFieldWriter_T( pdfFieldID, velocityFieldID ) ); diff --git a/apps/benchmarks/AdaptiveMeshRefinementFluidParticleCoupling/AMRSettlingSphere.cpp b/apps/benchmarks/AdaptiveMeshRefinementFluidParticleCoupling/AMRSettlingSphere.cpp index bbba3ba70..2f738db33 100644 --- a/apps/benchmarks/AdaptiveMeshRefinementFluidParticleCoupling/AMRSettlingSphere.cpp +++ b/apps/benchmarks/AdaptiveMeshRefinementFluidParticleCoupling/AMRSettlingSphere.cpp @@ -977,17 +977,17 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( lbm::collision_model::TRT::constructWithMagicNumber( omega, lbm::collision_model::TRT::threeSixteenth, finestLevel ) ); // add PDF field - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_t(0) ), real_t(1), - FieldGhostLayers, field::zyxf ); + FieldGhostLayers, field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field", FieldGhostLayers ); // add body field - BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::zyxf, FieldGhostLayers ); + BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::fzyx, FieldGhostLayers ); // add velocity field and utility - BlockDataID velocityFieldID = field::addToStorage<VelocityField_T>( blocks, "velocity field", Vector3<real_t>(real_t(0)), field::zyxf, uint_t(2) ); + BlockDataID velocityFieldID = field::addToStorage<VelocityField_T>( blocks, "velocity field", Vector3<real_t>(real_t(0)), field::fzyx, uint_t(2) ); using VelocityFieldWriter_T = lbm::VelocityFieldWriter<PdfField_T, VelocityField_T>; BlockSweepWrapper< VelocityFieldWriter_T > velocityFieldWriter( blocks, VelocityFieldWriter_T( pdfFieldID, velocityFieldID ) ); diff --git a/apps/benchmarks/AdaptiveMeshRefinementFluidParticleCoupling/WorkloadEvaluation.cpp b/apps/benchmarks/AdaptiveMeshRefinementFluidParticleCoupling/WorkloadEvaluation.cpp index 01f0b3f99..a12727e32 100644 --- a/apps/benchmarks/AdaptiveMeshRefinementFluidParticleCoupling/WorkloadEvaluation.cpp +++ b/apps/benchmarks/AdaptiveMeshRefinementFluidParticleCoupling/WorkloadEvaluation.cpp @@ -682,15 +682,15 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( lbm::collision_model::TRT::constructWithMagicNumber( omega ) ); // add PDF field - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_t(0) ), real_t(1), - uint_t(1), field::zyxf ); + uint_t(1), field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field" ); // add body field - BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::zyxf ); + BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::fzyx ); // add boundary handling & initialize outer domain boundaries BlockDataID boundaryHandlingID = blocks->addStructuredBlockData< BoundaryHandling_T >( diff --git a/apps/benchmarks/FluidParticleCouplingWithLoadBalancing/FluidParticleWorkloadDistribution.cpp b/apps/benchmarks/FluidParticleCouplingWithLoadBalancing/FluidParticleWorkloadDistribution.cpp index afba732e9..e902cd667 100644 --- a/apps/benchmarks/FluidParticleCouplingWithLoadBalancing/FluidParticleWorkloadDistribution.cpp +++ b/apps/benchmarks/FluidParticleCouplingWithLoadBalancing/FluidParticleWorkloadDistribution.cpp @@ -1051,14 +1051,14 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( lbm::collision_model::TRT::constructWithMagicNumber( omega, lbm::collision_model::TRT::threeSixteenth ) ); // add PDF field - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_t(0) ), real_t(1), - FieldGhostLayers, field::zyxf ); + FieldGhostLayers, field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field", FieldGhostLayers ); // add particle field - BlockDataID particleFieldID = field::addToStorage<lbm_mesapd_coupling::ParticleField_T>( blocks, "particle field", accessor->getInvalidUid(), field::zyxf, FieldGhostLayers ); + BlockDataID particleFieldID = field::addToStorage<lbm_mesapd_coupling::ParticleField_T>( blocks, "particle field", accessor->getInvalidUid(), field::fzyx, FieldGhostLayers ); // add boundary handling & initialize outer domain boundaries BlockDataID boundaryHandlingID = blocks->addBlockData( make_shared< MyBoundaryHandling >( blocks, flagFieldID, pdfFieldID, particleFieldID, accessor ), "boundary handling" ); diff --git a/apps/benchmarks/FluidParticleCouplingWithLoadBalancing/FluidParticleWorkloadEvaluation.cpp b/apps/benchmarks/FluidParticleCouplingWithLoadBalancing/FluidParticleWorkloadEvaluation.cpp index 423af69ce..61d8f4e7c 100644 --- a/apps/benchmarks/FluidParticleCouplingWithLoadBalancing/FluidParticleWorkloadEvaluation.cpp +++ b/apps/benchmarks/FluidParticleCouplingWithLoadBalancing/FluidParticleWorkloadEvaluation.cpp @@ -610,15 +610,15 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( lbm::collision_model::TRT::constructWithMagicNumber( omega ) ); // add PDF field - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_t(0) ), real_t(1), - uint_t(1), field::zyxf ); + uint_t(1), field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field" ); // add particle field - BlockDataID particleFieldID = field::addToStorage<lbm_mesapd_coupling::ParticleField_T>( blocks, "particle field", accessor->getInvalidUid(), field::zyxf, FieldGhostLayers ); + BlockDataID particleFieldID = field::addToStorage<lbm_mesapd_coupling::ParticleField_T>( blocks, "particle field", accessor->getInvalidUid(), field::fzyx, FieldGhostLayers ); // add boundary handling & initialize outer domain boundaries using BoundaryHandling_T = MyBoundaryHandling<ParticleAccessor_T>::Type; diff --git a/apps/benchmarks/ForcesOnSphereNearPlaneInShearFlow/ForcesOnSphereNearPlaneInShearFlow.cpp b/apps/benchmarks/ForcesOnSphereNearPlaneInShearFlow/ForcesOnSphereNearPlaneInShearFlow.cpp index 15ccbda0c..f504c4750 100644 --- a/apps/benchmarks/ForcesOnSphereNearPlaneInShearFlow/ForcesOnSphereNearPlaneInShearFlow.cpp +++ b/apps/benchmarks/ForcesOnSphereNearPlaneInShearFlow/ForcesOnSphereNearPlaneInShearFlow.cpp @@ -604,14 +604,14 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( lbm::collision_model::TRT::constructWithMagicNumber( omega, lbm::collision_model::TRT::threeSixteenth, finestLevel ) ); // add PDF field - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_t(0) ), real_t(1), - FieldGhostLayers, field::zyxf ); + FieldGhostLayers, field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field", FieldGhostLayers ); // add body field - BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::zyxf, FieldGhostLayers ); + BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::fzyx, FieldGhostLayers ); // add boundary handling BlockDataID boundaryHandlingID = blocks->addStructuredBlockData< BoundaryHandling_T >( MyBoundaryHandling( flagFieldID, pdfFieldID, bodyFieldID ), "boundary handling" ); diff --git a/apps/benchmarks/MotionSingleHeavySphere/MotionSingleHeavySphere.cpp b/apps/benchmarks/MotionSingleHeavySphere/MotionSingleHeavySphere.cpp index 11935abb7..2f911818b 100644 --- a/apps/benchmarks/MotionSingleHeavySphere/MotionSingleHeavySphere.cpp +++ b/apps/benchmarks/MotionSingleHeavySphere/MotionSingleHeavySphere.cpp @@ -902,20 +902,20 @@ int main( int argc, char **argv ) // add PDF field // initial velocity in domain = inflow velocity - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, uInfty, real_t(1), uint_t(1), field::zyxf ); + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, uInfty, real_t(1), uint_t(1), field::fzyx ); // add PDF field (needed to store pre collision values for MEM_MR scheme) - BlockDataID pdfFieldPreColID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "nqOdd field (zyxf)", latticeModel, uInfty, real_t(1), uint_t(1), field::zyxf ); + BlockDataID pdfFieldPreColID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "nqOdd field (fzyx)", latticeModel, uInfty, real_t(1), uint_t(1), field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage< FlagField_T >( blocks, "flag field" ); // add body field - BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::zyxf ); + BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::fzyx ); // add body and volume fraction field BlockDataID bodyAndVolumeFractionFieldID = field::addToStorage< BodyAndVolumeFractionField_T >( blocks, "body and volume fraction field", - std::vector<BodyAndVolumeFraction_T>(), field::zyxf, 0 ); + std::vector<BodyAndVolumeFraction_T>(), field::fzyx, 0 ); // add boundary handling & initialize outer domain boundaries BlockDataID boundaryHandlingID = blocks->addStructuredBlockData< BoundaryHandling_T >( diff --git a/apps/benchmarks/SchaeferTurek/SchaeferTurek.cpp b/apps/benchmarks/SchaeferTurek/SchaeferTurek.cpp index 87802191a..e3bc4299c 100644 --- a/apps/benchmarks/SchaeferTurek/SchaeferTurek.cpp +++ b/apps/benchmarks/SchaeferTurek/SchaeferTurek.cpp @@ -2363,7 +2363,7 @@ void run( const shared_ptr< Config > & config, const LatticeModel_T & latticeMod // add velocity field + initialize velocity field writer (only used for simulations with an adaptive block structure) using VelocityField_T = field::GhostLayerField<Vector3<real_t>, 1>; - BlockDataID velocityFieldId = field::addToStorage< VelocityField_T >( blocks, "velocity", Vector3<real_t>(0), field::zyxf, FieldGhostLayers, true, None, Empty ); + BlockDataID velocityFieldId = field::addToStorage< VelocityField_T >( blocks, "velocity", Vector3<real_t>(0), field::fzyx, FieldGhostLayers, true, None, Empty ); using VelocityFieldWriter_T = lbm::VelocityFieldWriter<typename Types<LatticeModel_T>::PdfField_T, VelocityField_T>; BlockSweepWrapper< VelocityFieldWriter_T > velocityFieldWriter( blocks, VelocityFieldWriter_T( pdfFieldId, velocityFieldId ), None, Empty ); diff --git a/apps/showcases/Antidunes/Antidunes.cpp b/apps/showcases/Antidunes/Antidunes.cpp index 5ddc9cfa1..dd6370354 100644 --- a/apps/showcases/Antidunes/Antidunes.cpp +++ b/apps/showcases/Antidunes/Antidunes.cpp @@ -655,7 +655,7 @@ int main(int argc, char** argv) } BlockDataID particleFieldID = field::addToStorage< lbm_mesapd_coupling::ParticleField_T >( - blockForest, "Particle field", particleAccessor->getInvalidUid(), field::zyxf, uint_c(2)); + blockForest, "Particle field", particleAccessor->getInvalidUid(), field::fzyx, uint_c(2)); auto densityReferenceHeight = absoluteLiquidHeight; auto hydrostaticDensityFct = [force, densityReferenceHeight](const Vector3< real_t >& position) { diff --git a/apps/showcases/BidisperseFluidizedBed/BidisperseFluidizedBedDPM.cpp b/apps/showcases/BidisperseFluidizedBed/BidisperseFluidizedBedDPM.cpp index 15a4580f4..549c41fd2 100644 --- a/apps/showcases/BidisperseFluidizedBed/BidisperseFluidizedBedDPM.cpp +++ b/apps/showcases/BidisperseFluidizedBed/BidisperseFluidizedBedDPM.cpp @@ -986,20 +986,20 @@ int main( int argc, char **argv ) { ////////////////////// // create force field - BlockDataID forceFieldID = field::addToStorage< Vec3Field_T >( blocks, "force field", Vector3<real_t>(real_t(0)), field::zyxf, FieldGhostLayers ); + BlockDataID forceFieldID = field::addToStorage< Vec3Field_T >( blocks, "force field", Vector3<real_t>(real_t(0)), field::fzyx, FieldGhostLayers ); - BlockDataID dragForceFieldID = field::addToStorage< Vec3Field_T >( blocks, "drag force field", Vector3<real_t>(real_t(0)), field::zyxf, FieldGhostLayers ); - BlockDataID amForceFieldID = field::addToStorage< Vec3Field_T >( blocks, "am force field", Vector3<real_t>(real_t(0)), field::zyxf, FieldGhostLayers ); - BlockDataID liftForceFieldID = field::addToStorage< Vec3Field_T >( blocks, "lift force field", Vector3<real_t>(real_t(0)), field::zyxf, FieldGhostLayers ); + BlockDataID dragForceFieldID = field::addToStorage< Vec3Field_T >( blocks, "drag force field", Vector3<real_t>(real_t(0)), field::fzyx, FieldGhostLayers ); + BlockDataID amForceFieldID = field::addToStorage< Vec3Field_T >( blocks, "am force field", Vector3<real_t>(real_t(0)), field::fzyx, FieldGhostLayers ); + BlockDataID liftForceFieldID = field::addToStorage< Vec3Field_T >( blocks, "lift force field", Vector3<real_t>(real_t(0)), field::fzyx, FieldGhostLayers ); // create omega field - BlockDataID omegaFieldID = field::addToStorage< ScalarField_T >( blocks, "omega field", omega, field::zyxf, FieldGhostLayers ); + BlockDataID omegaFieldID = field::addToStorage< ScalarField_T >( blocks, "omega field", omega, field::fzyx, FieldGhostLayers ); // create the lattice model LatticeModel_T latticeModel = LatticeModel_T( omegaFieldID, ForceModel_T( forceFieldID ) ); // add PDF field - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage( blocks, "pdf field (zyxf)", latticeModel, initialFluidVelocity, real_t(1), FieldGhostLayers, field::zyxf ); + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage( blocks, "pdf field (fzyx)", latticeModel, initialFluidVelocity, real_t(1), FieldGhostLayers, field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage< FlagField_T >( blocks, "flag field" ); @@ -1008,30 +1008,30 @@ int main( int argc, char **argv ) { BlockDataID boundaryHandlingID = blocks->addStructuredBlockData< BoundaryHandling_T >( MyBoundaryHandling( flagFieldID, pdfFieldID, uInflow ), "boundary handling" ); // field to store fluid velolcity - BlockDataID velocityFieldID = field::addToStorage< Vec3Field_T >( blocks, "velocity field", initialFluidVelocity, field::zyxf, FieldGhostLayers ); - BlockDataID oldVelocityFieldID = field::addToStorage< Vec3Field_T >( blocks, "old velocity field", initialFluidVelocity, field::zyxf, FieldGhostLayers ); - BlockDataID swappedOldVelocityFieldID = field::addToStorage< Vec3Field_T >( blocks, "swapped old velocity field", initialFluidVelocity, field::zyxf, FieldGhostLayers ); + BlockDataID velocityFieldID = field::addToStorage< Vec3Field_T >( blocks, "velocity field", initialFluidVelocity, field::fzyx, FieldGhostLayers ); + BlockDataID oldVelocityFieldID = field::addToStorage< Vec3Field_T >( blocks, "old velocity field", initialFluidVelocity, field::fzyx, FieldGhostLayers ); + BlockDataID swappedOldVelocityFieldID = field::addToStorage< Vec3Field_T >( blocks, "swapped old velocity field", initialFluidVelocity, field::fzyx, FieldGhostLayers ); // create pressure field - BlockDataID pressureFieldID = field::addToStorage< ScalarField_T >( blocks, "pressure field", real_t(0), field::zyxf, FieldGhostLayers ); + BlockDataID pressureFieldID = field::addToStorage< ScalarField_T >( blocks, "pressure field", real_t(0), field::fzyx, FieldGhostLayers ); // create solid volume fraction field - BlockDataID svfFieldID = field::addToStorage< ScalarField_T >( blocks, "svf field", real_t(0), field::zyxf, FieldGhostLayers ); + BlockDataID svfFieldID = field::addToStorage< ScalarField_T >( blocks, "svf field", real_t(0), field::fzyx, FieldGhostLayers ); // field to store pressure gradient - BlockDataID pressureGradientFieldID = field::addToStorage< Vec3Field_T >( blocks, "pressure gradient field", Vector3<real_t>(real_c(0)), field::zyxf, FieldGhostLayers ); + BlockDataID pressureGradientFieldID = field::addToStorage< Vec3Field_T >( blocks, "pressure gradient field", Vector3<real_t>(real_c(0)), field::fzyx, FieldGhostLayers ); // field to store curl of fluid velocity - BlockDataID velocityCurlFieldID = field::addToStorage< Vec3Field_T >( blocks, "velocity curl field", Vector3<real_t>(real_c(0)), field::zyxf, FieldGhostLayers ); + BlockDataID velocityCurlFieldID = field::addToStorage< Vec3Field_T >( blocks, "velocity curl field", Vector3<real_t>(real_c(0)), field::fzyx, FieldGhostLayers ); // field to store velocity gradient - BlockDataID velocityGradientFieldID = field::addToStorage< TensorField_T >( blocks, "velocity gradient field", Matrix3<real_t>(real_c(0)), field::zyxf, FieldGhostLayers ); + BlockDataID velocityGradientFieldID = field::addToStorage< TensorField_T >( blocks, "velocity gradient field", Matrix3<real_t>(real_c(0)), field::fzyx, FieldGhostLayers ); // field to store gradient of stress tensor - BlockDataID stressTensorGradientFieldID = field::addToStorage< Vec3Field_T >( blocks, "stress tensor gradient field", Vector3<real_t>(real_c(0)), field::zyxf, FieldGhostLayers ); + BlockDataID stressTensorGradientFieldID = field::addToStorage< Vec3Field_T >( blocks, "stress tensor gradient field", Vector3<real_t>(real_c(0)), field::fzyx, FieldGhostLayers ); // field to store time derivative of fluid velocity - BlockDataID timeDerivativeVelocityFieldID = field::addToStorage< Vec3Field_T >( blocks, "time derivative velocity field", Vector3<real_t>(real_c(0)), field::zyxf, FieldGhostLayers ); + BlockDataID timeDerivativeVelocityFieldID = field::addToStorage< Vec3Field_T >( blocks, "time derivative velocity field", Vector3<real_t>(real_c(0)), field::fzyx, FieldGhostLayers ); // communication schemes pe_coupling::discrete_particle_methods::CombinedReductionFieldCommunication<Vec3Field_T> forceComm( blocks, forceFieldID ); diff --git a/apps/showcases/CombinedResolvedUnresolved/CombinedResolvedUnresolved.cpp b/apps/showcases/CombinedResolvedUnresolved/CombinedResolvedUnresolved.cpp index 026171328..4277a912c 100644 --- a/apps/showcases/CombinedResolvedUnresolved/CombinedResolvedUnresolved.cpp +++ b/apps/showcases/CombinedResolvedUnresolved/CombinedResolvedUnresolved.cpp @@ -576,23 +576,23 @@ int main(int argc, char** argv) // create force field BlockDataID forceFieldID = field::addToStorage< Vec3Field_T >(blocks, "force field", Vector3< real_t >(real_t(0)), - field::zyxf, FieldGhostLayers); + field::fzyx, FieldGhostLayers); // create omega field BlockDataID omegaFieldID = - field::addToStorage< ScalarField_T >(blocks, "omega field", real_t(0), field::zyxf, FieldGhostLayers); + field::addToStorage< ScalarField_T >(blocks, "omega field", real_t(0), field::fzyx, FieldGhostLayers); // create the lattice model LatticeModel_T latticeModel = LatticeModel_T(omegaFieldID, ForceModel_T(forceFieldID)); // add PDF field BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( - blocks, "pdf field (zyxf)", latticeModel, Vector3< real_t >(real_t(0)), real_t(1), uint_t(1), field::zyxf); + blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >(real_t(0)), real_t(1), uint_t(1), field::fzyx); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage< FlagField_T >(blocks, "flag field"); // add body field - BlockDataID bodyFieldID = field::addToStorage< BodyField_T >(blocks, "body field", nullptr, field::zyxf); + BlockDataID bodyFieldID = field::addToStorage< BodyField_T >(blocks, "body field", nullptr, field::fzyx); // add boundary handling BlockDataID boundaryHandlingID = blocks->addStructuredBlockData< BoundaryHandling_T >( @@ -600,44 +600,44 @@ int main(int argc, char** argv) // field to store fluid velolcity BlockDataID velocityFieldID = - field::addToStorage< Vec3Field_T >(blocks, "velocity field", initialFluidVelocity, field::zyxf, FieldGhostLayers); + field::addToStorage< Vec3Field_T >(blocks, "velocity field", initialFluidVelocity, field::fzyx, FieldGhostLayers); BlockDataID oldVelocityFieldID = field::addToStorage< Vec3Field_T >( - blocks, "old velocity field", initialFluidVelocity, field::zyxf, FieldGhostLayers); + blocks, "old velocity field", initialFluidVelocity, field::fzyx, FieldGhostLayers); BlockDataID swappedOldVelocityFieldID = field::addToStorage< Vec3Field_T >( - blocks, "swapped old velocity field", initialFluidVelocity, field::zyxf, FieldGhostLayers); + blocks, "swapped old velocity field", initialFluidVelocity, field::fzyx, FieldGhostLayers); // field to store curl of fluid velocity BlockDataID velocityCurlFieldID = field::addToStorage< Vec3Field_T >( - blocks, "velocity curl field", Vector3< real_t >(real_c(0)), field::zyxf, FieldGhostLayers); + blocks, "velocity curl field", Vector3< real_t >(real_c(0)), field::fzyx, FieldGhostLayers); // field to store velocity gradient BlockDataID velocityGradientFieldID = field::addToStorage< TensorField_T >( - blocks, "velocity gradient field", Matrix3< real_t >(real_c(0)), field::zyxf, FieldGhostLayers); + blocks, "velocity gradient field", Matrix3< real_t >(real_c(0)), field::fzyx, FieldGhostLayers); // field to store time derivative of fluid velocity BlockDataID timeDerivativeVelocityFieldID = field::addToStorage< Vec3Field_T >( - blocks, "time derivative velocity field", Vector3< real_t >(real_c(0)), field::zyxf, FieldGhostLayers); + blocks, "time derivative velocity field", Vector3< real_t >(real_c(0)), field::fzyx, FieldGhostLayers); // create solid volume fraction field BlockDataID svfFieldID = - field::addToStorage< ScalarField_T >(blocks, "svf field", real_t(0), field::zyxf, FieldGhostLayers); + field::addToStorage< ScalarField_T >(blocks, "svf field", real_t(0), field::fzyx, FieldGhostLayers); // create pressure field BlockDataID pressureFieldID = - field::addToStorage< ScalarField_T >(blocks, "pressure field", real_t(0), field::zyxf, FieldGhostLayers); + field::addToStorage< ScalarField_T >(blocks, "pressure field", real_t(0), field::fzyx, FieldGhostLayers); // field to store pressure gradient BlockDataID pressureGradientFieldID = field::addToStorage< Vec3Field_T >( - blocks, "pressure gradient field", Vector3< real_t >(real_c(0)), field::zyxf, FieldGhostLayers); + blocks, "pressure gradient field", Vector3< real_t >(real_c(0)), field::fzyx, FieldGhostLayers); BlockDataID dragForceFieldID = field::addToStorage< Vec3Field_T >( - blocks, "drag force field", Vector3< real_t >(real_t(0)), field::zyxf, FieldGhostLayers); + blocks, "drag force field", Vector3< real_t >(real_t(0)), field::fzyx, FieldGhostLayers); BlockDataID amForceFieldID = field::addToStorage< Vec3Field_T >( - blocks, "am force field", Vector3< real_t >(real_t(0)), field::zyxf, FieldGhostLayers); + blocks, "am force field", Vector3< real_t >(real_t(0)), field::fzyx, FieldGhostLayers); BlockDataID liftForceFieldID = field::addToStorage< Vec3Field_T >( - blocks, "lift force field", Vector3< real_t >(real_t(0)), field::zyxf, FieldGhostLayers); + blocks, "lift force field", Vector3< real_t >(real_t(0)), field::fzyx, FieldGhostLayers); // map planes into the LBM simulation -> act as no-slip boundaries pe_coupling::mapBodies< BoundaryHandling_T >(*blocks, boundaryHandlingID, bodyStorageID, *globalBodyStorage, diff --git a/apps/showcases/FluidizedBed/FluidizedBedMEM.cpp b/apps/showcases/FluidizedBed/FluidizedBedMEM.cpp index d9d3bc20d..2eb0e481e 100644 --- a/apps/showcases/FluidizedBed/FluidizedBedMEM.cpp +++ b/apps/showcases/FluidizedBed/FluidizedBedMEM.cpp @@ -571,14 +571,14 @@ int main(int argc, char** argv) // add PDF field BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >(blocks, "pdf field", latticeModel, inflowVec, - densityFluid, uint_t(1), field::zyxf); + densityFluid, uint_t(1), field::fzyx); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage< FlagField_T >(blocks, "flag field"); // add particle field BlockDataID particleFieldID = field::addToStorage< lbm_mesapd_coupling::ParticleField_T >( - blocks, "particle field", accessor->getInvalidUid(), field::zyxf, FieldGhostLayers); + blocks, "particle field", accessor->getInvalidUid(), field::fzyx, FieldGhostLayers); // add boundary handling using BoundaryHandling_T = MyBoundaryHandling< ParticleAccessor_T >::Type; diff --git a/apps/showcases/LightRisingParticleInFluidAMR/LightRisingParticleInFluidAMR.cpp b/apps/showcases/LightRisingParticleInFluidAMR/LightRisingParticleInFluidAMR.cpp index 07df97e31..86d197867 100644 --- a/apps/showcases/LightRisingParticleInFluidAMR/LightRisingParticleInFluidAMR.cpp +++ b/apps/showcases/LightRisingParticleInFluidAMR/LightRisingParticleInFluidAMR.cpp @@ -896,15 +896,15 @@ int main(int argc, char** argv) { shared_ptr< lbm::internal::PdfFieldHandling< LatticeModel_T > > dataHandling = make_shared< lbm::internal::PdfFieldHandling< LatticeModel_T > >(blocks, latticeModel, false, Vector3<real_t>(real_t(0)), real_t(1), - FieldGhostLayers, field::zyxf ); + FieldGhostLayers, field::fzyx ); pdfFieldID = blocks->loadBlockData( readCheckPointFileName+"_lbm.txt", dataHandling, "pdf field" ); } else { // add PDF field - pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >(blocks, "pdf field (zyxf)", latticeModel, + pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >(blocks, "pdf field (fzyx)", latticeModel, Vector3<real_t>(real_t(0)), real_t(1), - FieldGhostLayers, field::zyxf); + FieldGhostLayers, field::fzyx); } // add flag field @@ -916,11 +916,11 @@ int main(int argc, char** argv) { // add particle field BlockDataID particleFieldID = field::addToStorage<ParticleField_T>(blocks, "particle field", accessor->getInvalidUid(), - field::zyxf, + field::fzyx, FieldGhostLayers); // add velocity field and utility - BlockDataID velocityFieldID = field::addToStorage<VelocityField_T>( blocks, "velocity field", Vector3<real_t>(real_t(0)), field::zyxf, uint_t(2) ); + BlockDataID velocityFieldID = field::addToStorage<VelocityField_T>( blocks, "velocity field", Vector3<real_t>(real_t(0)), field::fzyx, uint_t(2) ); typedef lbm::VelocityFieldWriter< PdfField_T, VelocityField_T > VelocityFieldWriter_T; BlockSweepWrapper< VelocityFieldWriter_T > velocityFieldWriter( blocks, VelocityFieldWriter_T( pdfFieldID, velocityFieldID ) ); @@ -929,7 +929,7 @@ int main(int argc, char** argv) { velocityCommunicationScheme->addPackInfo( make_shared< field::refinement::PackInfo<VelocityField_T, stencil::D3Q27> >( velocityFieldID ) ); // add q criterion field (only needed for mesh output) - BlockDataID qCriterionFieldID = field::addToStorage<QCriterionField_T>(blocks, "q criterion field", real_t(0), field::zyxf, uint_t(1)); + BlockDataID qCriterionFieldID = field::addToStorage<QCriterionField_T>(blocks, "q criterion field", real_t(0), field::fzyx, uint_t(1)); typedef lbm::QCriterionFieldWriter<VelocityField_T, QCriterionField_T, FluidFilter_T> QCriterionFieldWriter_T; BlockSweepWrapper<QCriterionFieldWriter_T> qCriterionFieldWriter(blocks, QCriterionFieldWriter_T(blocks, velocityFieldID, diff --git a/apps/showcases/PorousMedia/PorousMedia.cpp b/apps/showcases/PorousMedia/PorousMedia.cpp index bdd186f6e..eff881fcd 100644 --- a/apps/showcases/PorousMedia/PorousMedia.cpp +++ b/apps/showcases/PorousMedia/PorousMedia.cpp @@ -1371,7 +1371,7 @@ int main(int argc, char** argv) // add field for particle creation (bodies) BlockDataID bodyFieldID = - field::addToStorage< BodyField_T >(blocks, "body field", nullptr, field::zyxf, FieldGhostLayers, false); + field::addToStorage< BodyField_T >(blocks, "body field", nullptr, field::fzyx, FieldGhostLayers, false); // add boundary handling BlockDataID boundaryHandlingID = blocks->addStructuredBlockData< BoundaryHandling_T >( diff --git a/apps/tutorials/basics/03_GameOfLife.cpp b/apps/tutorials/basics/03_GameOfLife.cpp index 868e21bcd..780f053ba 100644 --- a/apps/tutorials/basics/03_GameOfLife.cpp +++ b/apps/tutorials/basics/03_GameOfLife.cpp @@ -190,7 +190,7 @@ int main( int argc, char ** argv ) BlockDataID fieldID = field::addToStorage<ScalarField>( blocks, // block storage "My Field", // name real_c(0), // initial value - field::zyxf, // layout (not relevant for scalar fields) + field::fzyx, // layout (not relevant for scalar fields) uint_c(1) // number of ghost layers ); diff --git a/apps/tutorials/pde/01_SolvingPDE.cpp b/apps/tutorials/pde/01_SolvingPDE.cpp index 766f4f7c3..f0f996817 100644 --- a/apps/tutorials/pde/01_SolvingPDE.cpp +++ b/apps/tutorials/pde/01_SolvingPDE.cpp @@ -252,10 +252,10 @@ int main( int argc, char ** argv ) // add fields with ghost layers to all blocks // source and destination fields for the unknowns u - BlockDataID srcID = field::addToStorage< ScalarField >( blocks, "src", real_c(0), field::zyxf, uint_c(1)); - BlockDataID dstID = field::addToStorage< ScalarField >( blocks, "dst", real_c(0), field::zyxf, uint_c(1)); + BlockDataID srcID = field::addToStorage< ScalarField >( blocks, "src", real_c(0), field::fzyx, uint_c(1)); + BlockDataID dstID = field::addToStorage< ScalarField >( blocks, "dst", real_c(0), field::fzyx, uint_c(1)); // field to store the function f - BlockDataID rhsID = field::addToStorage< ScalarField >( blocks, "rhs", real_c(0), field::zyxf, uint_c(1)); + BlockDataID rhsID = field::addToStorage< ScalarField >( blocks, "rhs", real_c(0), field::fzyx, uint_c(1)); // initialize the field initRHS( blocks, rhsID ); diff --git a/apps/tutorials/pde/02_HeatEquation.cpp b/apps/tutorials/pde/02_HeatEquation.cpp index 1ff9d3632..398b9a66c 100644 --- a/apps/tutorials/pde/02_HeatEquation.cpp +++ b/apps/tutorials/pde/02_HeatEquation.cpp @@ -213,10 +213,10 @@ int main( int argc, char ** argv ) // add fields with ghost layers to all blocks // source and destination fields for the unknowns u, required by the Jacobi method - BlockDataID srcID = field::addToStorage< ScalarField >( blocks, "src", real_c(0), field::zyxf, uint_c(1)); - BlockDataID dstID = field::addToStorage< ScalarField >( blocks, "dst", real_c(0), field::zyxf, uint_c(1)); + BlockDataID srcID = field::addToStorage< ScalarField >( blocks, "src", real_c(0), field::fzyx, uint_c(1)); + BlockDataID dstID = field::addToStorage< ScalarField >( blocks, "dst", real_c(0), field::fzyx, uint_c(1)); // field to store the right-hand side of the equation - BlockDataID rhsID = field::addToStorage< ScalarField >( blocks, "rhs", real_c(0), field::zyxf, uint_c(1)); + BlockDataID rhsID = field::addToStorage< ScalarField >( blocks, "rhs", real_c(0), field::fzyx, uint_c(1)); // set the field to the initial condition u(x,y,0) initU( blocks, srcID ); diff --git a/apps/tutorials/pde/03_HeatEquation_Extensions.cpp b/apps/tutorials/pde/03_HeatEquation_Extensions.cpp index 037b3351b..e3b521447 100644 --- a/apps/tutorials/pde/03_HeatEquation_Extensions.cpp +++ b/apps/tutorials/pde/03_HeatEquation_Extensions.cpp @@ -304,10 +304,10 @@ int main( int argc, char ** argv ) // add fields with ghost layers to all blocks // source and destination fields for the unknowns u, required by the Jacobi method - BlockDataID srcID = field::addToStorage< ScalarField >( blocks, "src", real_c(0), field::zyxf, uint_c(1)); - BlockDataID dstID = field::addToStorage< ScalarField >( blocks, "dst", real_c(0), field::zyxf, uint_c(1)); + BlockDataID srcID = field::addToStorage< ScalarField >( blocks, "src", real_c(0), field::fzyx, uint_c(1)); + BlockDataID dstID = field::addToStorage< ScalarField >( blocks, "dst", real_c(0), field::fzyx, uint_c(1)); // field to store the right-hand side of the equation - BlockDataID rhsID = field::addToStorage< ScalarField >( blocks, "rhs", real_c(0), field::zyxf, uint_c(1)); + BlockDataID rhsID = field::addToStorage< ScalarField >( blocks, "rhs", real_c(0), field::fzyx, uint_c(1)); // set the field to the initial condition u(x,y,0) initU( blocks, srcID ); diff --git a/src/cuda/GPUField.h b/src/cuda/GPUField.h index 431ce1526..9b11ef62c 100755 --- a/src/cuda/GPUField.h +++ b/src/cuda/GPUField.h @@ -63,7 +63,7 @@ namespace cuda { typedef T value_type; GPUField( uint_t _xSize, uint_t _ySize, uint_t _zSize, uint_t _fSize, - uint_t _nrOfGhostLayers, const Layout & _layout = zyxf, bool usePitchedMem = true ); + uint_t _nrOfGhostLayers, const Layout & _layout = fzyx, bool usePitchedMem = true ); ~GPUField(); diff --git a/src/field/AddToStorage.h b/src/field/AddToStorage.h index c60484bab..9477c4ff7 100644 --- a/src/field/AddToStorage.h +++ b/src/field/AddToStorage.h @@ -150,7 +150,7 @@ template< typename GhostLayerField_T, typename BlockStorage_T > BlockDataID addToStorage( const shared_ptr< BlockStorage_T > & blocks, const std::string & identifier, const typename GhostLayerField_T::value_type & initValue = typename GhostLayerField_T::value_type(), - const Layout layout = zyxf, + const Layout layout = fzyx, const uint_t nrOfGhostLayers = uint_t(1), const bool alwaysInitialize = false, const std::function< void ( GhostLayerField_T * field, IBlock * const block ) > & initFunction = @@ -185,7 +185,7 @@ BlockDataID addToStorage( const shared_ptr< BlockStorage_T > & blocks, const std::string & identifier, const std::function< Vector3< uint_t > ( const shared_ptr< StructuredBlockStorage > &, IBlock * const ) >& calculateSize, const typename GhostLayerField_T::value_type & initValue = typename GhostLayerField_T::value_type(), - const Layout layout = zyxf, + const Layout layout = fzyx, const uint_t nrOfGhostLayers = uint_t(1), const bool alwaysInitialize = false, const std::function< void ( GhostLayerField_T * field, IBlock * const block ) > & initFunction = @@ -297,7 +297,7 @@ struct Creator : public domain_decomposition::BlockDataCreator< GhostLayerField_ const Set<SUID> & requiredSelectors, const Set<SUID> & incompatibleSelectors, const typename GhostLayerField_T::value_type & initValue = typename GhostLayerField_T::value_type(), - const Layout layout = zyxf, + const Layout layout = fzyx, const uint_t nrOfGhostLayers = uint_t(1), const bool /*alwaysInitialize*/ = false, const std::function< void ( GhostLayerField_T * field, IBlock * const block ) > & initFunction = @@ -315,7 +315,7 @@ struct Creator : public domain_decomposition::BlockDataCreator< GhostLayerField_ const Set<SUID> & requiredSelectors = Set<SUID>::emptySet(), const Set<SUID> & incompatibleSelectors = Set<SUID>::emptySet(), const typename GhostLayerField_T::value_type & initValue = typename GhostLayerField_T::value_type(), - const Layout layout = zyxf, + const Layout layout = fzyx, const uint_t nrOfGhostLayers = uint_t(1) ) : domain_decomposition::BlockDataCreator< GhostLayerField_T >( shared_ptr< DefaultBlockDataHandling< GhostLayerField_T > >(), identifier, requiredSelectors, incompatibleSelectors ) @@ -336,7 +336,7 @@ struct Creator< GhostLayerField_T, const Set<SUID> & requiredSelectors, const Set<SUID> & incompatibleSelectors, const typename GhostLayerField_T::value_type & initValue = typename GhostLayerField_T::value_type(), - const Layout layout = zyxf, + const Layout layout = fzyx, const uint_t nrOfGhostLayers = uint_t(1), const bool alwaysInitialize = false, const std::function< void ( GhostLayerField_T * field, IBlock * const block ) > & initFunction = @@ -362,7 +362,7 @@ struct Creator< GhostLayerField_T, const Set<SUID> & requiredSelectors = Set<SUID>::emptySet(), const Set<SUID> & incompatibleSelectors = Set<SUID>::emptySet(), const typename GhostLayerField_T::value_type & initValue = typename GhostLayerField_T::value_type(), - const Layout layout = zyxf, + const Layout layout = fzyx, const uint_t nrOfGhostLayers = uint_t(1) ) : domain_decomposition::BlockDataCreator< GhostLayerField_T >( shared_ptr< DefaultBlockDataHandling< GhostLayerField_T > >(), identifier, requiredSelectors, incompatibleSelectors ) diff --git a/src/field/Field.h b/src/field/Field.h index a01fc76cd..9a8e33c3a 100644 --- a/src/field/Field.h +++ b/src/field/Field.h @@ -100,18 +100,18 @@ namespace field { Field( uint_t xSize, uint_t ySize, uint_t zSize, - const Layout & layout = zyxf, + const Layout & layout = fzyx, const shared_ptr<FieldAllocator<T> > &alloc = shared_ptr<FieldAllocator<T> >() ); Field( uint_t xSize, uint_t ySize, uint_t zSize, - const T & initValue, const Layout & layout = zyxf, + const T & initValue, const Layout & layout = fzyx, const shared_ptr<FieldAllocator<T> > &alloc = shared_ptr<FieldAllocator<T> >() ); Field( uint_t xSize, uint_t ySize, uint_t zSize, - const std::vector<T> & fValues, const Layout & layout = zyxf, + const std::vector<T> & fValues, const Layout & layout = fzyx, const shared_ptr<FieldAllocator<T> > &alloc = shared_ptr<FieldAllocator<T> >() ); virtual ~Field(); - void init( uint_t xSize, uint_t ySize, uint_t zSize, const Layout & layout = zyxf, + void init( uint_t xSize, uint_t ySize, uint_t zSize, const Layout & layout = fzyx, shared_ptr<FieldAllocator<T> > alloc = shared_ptr<FieldAllocator<T> >(), uint_t innerGhostLayerSizeForAlignedAlloc = 0 ); diff --git a/src/field/Field.impl.h b/src/field/Field.impl.h index 0a0fdb638..af93706e4 100644 --- a/src/field/Field.impl.h +++ b/src/field/Field.impl.h @@ -284,7 +284,7 @@ namespace field { zfact_ ( other.zfact_*cell_idx_t(fSize_/fSize2) ), allocator_ ( std::shared_ptr<FieldAllocator<T>>(other.allocator_, reinterpret_cast<FieldAllocator<T>*>(other.allocator_.get())) ) { - WALBERLA_CHECK_EQUAL(layout_, Layout::zyxf); + WALBERLA_CHECK_EQUAL(layout_, Layout::zyxf) static_assert(fSize_ % fSize2 == 0, "number of field components do not match"); static_assert(std::is_same<typename Field<T2,fSize2>::FlattenedField, Field<T,fSize_>>::value, "field types are incompatible for flattening"); allocator_->incrementReferenceCount ( values_ ); @@ -357,7 +357,7 @@ namespace field { layout_ = l; - WALBERLA_ASSERT(layout_ == zyxf || layout_ == fzyx); + WALBERLA_ASSERT(layout_ == zyxf || layout_ == fzyx) if (layout_ == fzyx ) { values_ = allocator_->allocate(fSize_, zSize_, ySize_, xSize_, zAllocSize_, yAllocSize_, xAllocSize_); diff --git a/src/field/GhostLayerField.h b/src/field/GhostLayerField.h index 381a06ccd..f5fe40fe5 100644 --- a/src/field/GhostLayerField.h +++ b/src/field/GhostLayerField.h @@ -78,13 +78,13 @@ namespace field { GhostLayerField( uint_t xSize, uint_t ySize, uint_t zSize, uint_t gl, - const Layout & layout = zyxf, + const Layout & layout = fzyx, const shared_ptr<FieldAllocator<T> > &alloc = shared_ptr<FieldAllocator<T> >() ); GhostLayerField( uint_t xSize, uint_t ySize, uint_t zSize, uint_t gl, - const T & initValue, const Layout & layout = zyxf, + const T & initValue, const Layout & layout = fzyx, const shared_ptr<FieldAllocator<T> > &alloc = shared_ptr<FieldAllocator<T> >() ); GhostLayerField( uint_t xSize, uint_t ySize, uint_t zSize, uint_t gl, - const std::vector<T> & fValues, const Layout & layout = zyxf, + const std::vector<T> & fValues, const Layout & layout = fzyx, const shared_ptr<FieldAllocator<T> > &alloc = shared_ptr<FieldAllocator<T> >() ); ~GhostLayerField() override = default; @@ -95,7 +95,7 @@ namespace field { uint_t ySizeWithoutGhostLayer, uint_t zSizeWithoutGhostLayer, uint_t nrGhostLayers, - const Layout & layout = zyxf, + const Layout & layout = fzyx, const shared_ptr<FieldAllocator<T> > &alloc = shared_ptr<FieldAllocator<T> >() ); diff --git a/src/field/blockforest/BlockDataHandling.h b/src/field/blockforest/BlockDataHandling.h index a156e08b7..c01306d40 100644 --- a/src/field/blockforest/BlockDataHandling.h +++ b/src/field/blockforest/BlockDataHandling.h @@ -413,17 +413,17 @@ public: DefaultBlockDataHandling( const weak_ptr< StructuredBlockStorage > & blocks, const std::function< Vector3< uint_t > ( const shared_ptr< StructuredBlockStorage > &, IBlock * const ) >& calculateSize = internal::defaultSize, const shared_ptr< field::FieldAllocator<Value_T> > alloc = nullptr) : - blocks_( blocks ), nrOfGhostLayers_( uint_t(1) ), initValue_(), layout_( zyxf ), calculateSize_( calculateSize ), alloc_(alloc) + blocks_( blocks ), nrOfGhostLayers_( uint_t(1) ), initValue_(), layout_( fzyx ), calculateSize_( calculateSize ), alloc_(alloc) {} DefaultBlockDataHandling( const weak_ptr< StructuredBlockStorage > & blocks, const uint_t nrOfGhostLayers, const std::function< Vector3< uint_t > ( const shared_ptr< StructuredBlockStorage > &, IBlock * const ) >& calculateSize = internal::defaultSize, const shared_ptr< field::FieldAllocator<Value_T> > alloc = nullptr) : - blocks_( blocks ), nrOfGhostLayers_( nrOfGhostLayers ), initValue_(), layout_( zyxf ), calculateSize_( calculateSize ), alloc_(alloc) + blocks_( blocks ), nrOfGhostLayers_( nrOfGhostLayers ), initValue_(), layout_( fzyx ), calculateSize_( calculateSize ), alloc_(alloc) {} DefaultBlockDataHandling( const weak_ptr< StructuredBlockStorage > & blocks, const uint_t nrOfGhostLayers, - const Value_T & initValue, const Layout layout = zyxf, + const Value_T & initValue, const Layout layout = fzyx, const std::function< Vector3< uint_t > ( const shared_ptr< StructuredBlockStorage > &, IBlock * const ) >& calculateSize = internal::defaultSize, const shared_ptr< field::FieldAllocator<Value_T> > alloc = nullptr) : blocks_( blocks ), nrOfGhostLayers_( nrOfGhostLayers ), initValue_( initValue ), layout_( layout ), calculateSize_( calculateSize ), alloc_(alloc) @@ -480,13 +480,13 @@ public: AlwaysInitializeBlockDataHandling( const weak_ptr< StructuredBlockStorage > & blocks, const std::function< Vector3< uint_t > ( const shared_ptr< StructuredBlockStorage > &, IBlock * const ) >& calculateSize = internal::defaultSize, const shared_ptr< field::FieldAllocator<Value_T> > alloc = nullptr) : - blocks_( blocks ), nrOfGhostLayers_( uint_t(1) ), initValue_(), layout_( zyxf ), calculateSize_( calculateSize ), alloc_(alloc) + blocks_( blocks ), nrOfGhostLayers_( uint_t(1) ), initValue_(), layout_( fzyx ), calculateSize_( calculateSize ), alloc_(alloc) {} AlwaysInitializeBlockDataHandling( const weak_ptr< StructuredBlockStorage > & blocks, const uint_t nrOfGhostLayers, const std::function< Vector3< uint_t > ( const shared_ptr< StructuredBlockStorage > &, IBlock * const ) >& calculateSize = internal::defaultSize, const shared_ptr< field::FieldAllocator<Value_T> > alloc = nullptr) : - blocks_( blocks ), nrOfGhostLayers_( nrOfGhostLayers ), initValue_(), layout_( zyxf ), calculateSize_( calculateSize ), alloc_(alloc) + blocks_( blocks ), nrOfGhostLayers_( nrOfGhostLayers ), initValue_(), layout_( fzyx ), calculateSize_( calculateSize ), alloc_(alloc) {} AlwaysInitializeBlockDataHandling( const weak_ptr< StructuredBlockStorage > & blocks, const uint_t nrOfGhostLayers, diff --git a/src/lbm/boundary/Curved.h b/src/lbm/boundary/Curved.h index 38e3d308c..e6c9659f6 100644 --- a/src/lbm/boundary/Curved.h +++ b/src/lbm/boundary/Curved.h @@ -145,7 +145,7 @@ inline Curved< LatticeModel_T, FlagField_T >::Curved( const BoundaryUID & bounda WALBERLA_ASSERT_NOT_NULLPTR( pdfField_ ); WALBERLA_ASSERT_NOT_NULLPTR( flagField_ ); WALBERLA_ASSERT( flagField_->isRegistered( domainMask_ ) ); - weights_ = make_shared<WeightField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), flagField_->nrOfGhostLayers(), field::zyxf ); + weights_ = make_shared<WeightField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), flagField_->nrOfGhostLayers(), field::fzyx ); } diff --git a/src/lbm/boundary/DiffusionDirichlet.h b/src/lbm/boundary/DiffusionDirichlet.h index 219732fc2..7ffa062a0 100644 --- a/src/lbm/boundary/DiffusionDirichlet.h +++ b/src/lbm/boundary/DiffusionDirichlet.h @@ -123,9 +123,9 @@ inline DiffusionDirichlet< LatticeModel_T, flag_t >::DiffusionDirichlet( const B { WALBERLA_ASSERT_NOT_NULLPTR( pdfField_ ); if (flagField != nullptr) - sclField_ = make_shared<ScalarField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), flagField->nrOfGhostLayers(), field::zyxf ); + sclField_ = make_shared<ScalarField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), flagField->nrOfGhostLayers(), field::fzyx ); else - sclField_ = make_shared<ScalarField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), pdfField->nrOfGhostLayers(), field::zyxf ); + sclField_ = make_shared<ScalarField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), pdfField->nrOfGhostLayers(), field::fzyx ); } diff --git a/src/lbm/boundary/DynamicUBB.h b/src/lbm/boundary/DynamicUBB.h index de6c9db27..65d6692c8 100644 --- a/src/lbm/boundary/DynamicUBB.h +++ b/src/lbm/boundary/DynamicUBB.h @@ -87,7 +87,7 @@ public: } if (StoreForce) - force_ = make_shared<ForceField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), pdfField_->nrOfGhostLayers(), field::zyxf ); + force_ = make_shared<ForceField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), pdfField_->nrOfGhostLayers(), field::fzyx ); } DynamicUBB( const BoundaryUID & boundaryUID, const FlagUID & uid, PDFField * const pdfField, const uint_t level, const VelocityFunctor_T & velocity, const AABB & aabb ) : diff --git a/src/lbm/boundary/NoSlip.h b/src/lbm/boundary/NoSlip.h index 3c52f5872..43b675e3a 100644 --- a/src/lbm/boundary/NoSlip.h +++ b/src/lbm/boundary/NoSlip.h @@ -67,7 +67,7 @@ public: WALBERLA_ASSERT_NOT_NULLPTR( pdfField_ ); if (StoreForce) - force_ = make_shared<ForceField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), pdfField_->nrOfGhostLayers(), field::zyxf ); + force_ = make_shared<ForceField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), pdfField_->nrOfGhostLayers(), field::fzyx ); } void pushFlags( std::vector< FlagUID >& uids ) const { uids.push_back( uid_ ); } diff --git a/src/lbm/boundary/ParserUBB.h b/src/lbm/boundary/ParserUBB.h index 847faeab7..309b44c47 100644 --- a/src/lbm/boundary/ParserUBB.h +++ b/src/lbm/boundary/ParserUBB.h @@ -299,17 +299,17 @@ inline ParserUBB<LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForc if(flagField != NULL) { - parserField_ = make_shared<ParserField> ( pdfField->xSize(), pdfField->ySize(), pdfField->zSize(), flagField->nrOfGhostLayers(), field::zyxf ); - velocityField_ = make_shared<VelocityField>( pdfField->xSize(), pdfField->ySize(), pdfField->zSize(), flagField->nrOfGhostLayers(), field::zyxf ); + parserField_ = make_shared<ParserField> ( pdfField->xSize(), pdfField->ySize(), pdfField->zSize(), flagField->nrOfGhostLayers(), field::fzyx ); + velocityField_ = make_shared<VelocityField>( pdfField->xSize(), pdfField->ySize(), pdfField->zSize(), flagField->nrOfGhostLayers(), field::fzyx ); } else { - parserField_ = make_shared<ParserField> ( pdfField->xSize(), pdfField->ySize(), pdfField->zSize(), pdfField->nrOfGhostLayers(), field::zyxf ); - velocityField_ = make_shared<VelocityField>( pdfField->xSize(), pdfField->ySize(), pdfField->zSize(), pdfField->nrOfGhostLayers(), field::zyxf ); + parserField_ = make_shared<ParserField> ( pdfField->xSize(), pdfField->ySize(), pdfField->zSize(), pdfField->nrOfGhostLayers(), field::fzyx ); + velocityField_ = make_shared<VelocityField>( pdfField->xSize(), pdfField->ySize(), pdfField->zSize(), pdfField->nrOfGhostLayers(), field::fzyx ); } if (StoreForce) - force_ = make_shared<ForceField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), pdfField_->nrOfGhostLayers(), field::zyxf ); + force_ = make_shared<ForceField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), pdfField_->nrOfGhostLayers(), field::fzyx ); } diff --git a/src/lbm/boundary/Pressure.h b/src/lbm/boundary/Pressure.h index bbb93f770..51dc64c2a 100644 --- a/src/lbm/boundary/Pressure.h +++ b/src/lbm/boundary/Pressure.h @@ -125,9 +125,9 @@ inline Pressure< LatticeModel_T, flag_t>::Pressure( const BoundaryUID & boundary WALBERLA_ASSERT_NOT_NULLPTR( pdfField_ ); if (flagField != NULL) - latticeDensityField_ = make_shared<LatticeDensityField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), flagField->nrOfGhostLayers(), field::zyxf ); + latticeDensityField_ = make_shared<LatticeDensityField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), flagField->nrOfGhostLayers(), field::fzyx ); else - latticeDensityField_ = make_shared<LatticeDensityField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), pdfField_->nrOfGhostLayers(), field::zyxf ); + latticeDensityField_ = make_shared<LatticeDensityField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), pdfField_->nrOfGhostLayers(), field::fzyx ); } diff --git a/src/lbm/boundary/SimpleUBB.h b/src/lbm/boundary/SimpleUBB.h index 8c1c93af0..114f0a092 100644 --- a/src/lbm/boundary/SimpleUBB.h +++ b/src/lbm/boundary/SimpleUBB.h @@ -68,7 +68,7 @@ public: WALBERLA_ASSERT_NOT_NULLPTR( pdfField_ ); if (StoreForce) - force_ = make_shared<ForceField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), pdfField_->nrOfGhostLayers(), field::zyxf ); + force_ = make_shared<ForceField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), pdfField_->nrOfGhostLayers(), field::fzyx ); } SimpleUBB( const BoundaryUID& boundaryUID, const FlagUID& uid, PDFField* const pdfField, const real_t x, const real_t y, const real_t z ) : @@ -77,7 +77,7 @@ public: WALBERLA_ASSERT_NOT_NULLPTR( pdfField_ ); if (StoreForce) - force_ = make_shared<ForceField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), pdfField_->nrOfGhostLayers(), field::zyxf ); + force_ = make_shared<ForceField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), pdfField_->nrOfGhostLayers(), field::fzyx ); } void pushFlags( std::vector< FlagUID >& uids ) const { uids.push_back( uid_ ); } diff --git a/src/lbm/boundary/UBB.h b/src/lbm/boundary/UBB.h index c866776d2..9b1e46fa7 100644 --- a/src/lbm/boundary/UBB.h +++ b/src/lbm/boundary/UBB.h @@ -147,12 +147,12 @@ inline UBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >:: { WALBERLA_ASSERT_NOT_NULLPTR( pdfField_ ); if (flagField != nullptr) - vel_ = make_shared<VelField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), flagField->nrOfGhostLayers(), field::zyxf ); + vel_ = make_shared<VelField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), flagField->nrOfGhostLayers(), field::fzyx ); else - vel_ = make_shared<VelField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), pdfField_->nrOfGhostLayers(), field::zyxf ); + vel_ = make_shared<VelField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), pdfField_->nrOfGhostLayers(), field::fzyx ); if (StoreForce) - force_ = make_shared<ForceField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), pdfField_->nrOfGhostLayers(), field::zyxf ); + force_ = make_shared<ForceField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), pdfField_->nrOfGhostLayers(), field::fzyx ); } diff --git a/src/lbm/boundary/VelocityBoundary.h b/src/lbm/boundary/VelocityBoundary.h index c5be0e0a6..72901642c 100644 --- a/src/lbm/boundary/VelocityBoundary.h +++ b/src/lbm/boundary/VelocityBoundary.h @@ -143,9 +143,9 @@ inline VelocityBoundary< LatticeModel_T, flag_t >::VelocityBoundary( const Bound { WALBERLA_ASSERT_NOT_NULLPTR( pdfField_ ); if (flagField != NULL) - vel_ = make_shared<VelField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), flagField->nrOfGhostLayers(), field::zyxf ); + vel_ = make_shared<VelField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), flagField->nrOfGhostLayers(), field::fzyx ); else - vel_ = make_shared<VelField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), pdfField_->nrOfGhostLayers(), field::zyxf ); + vel_ = make_shared<VelField>( pdfField_->xSize(), pdfField_->ySize(), pdfField_->zSize(), pdfField_->nrOfGhostLayers(), field::fzyx ); } diff --git a/src/lbm/field/AddToStorage.h b/src/lbm/field/AddToStorage.h index f36da19b1..fcf563c40 100644 --- a/src/lbm/field/AddToStorage.h +++ b/src/lbm/field/AddToStorage.h @@ -158,7 +158,7 @@ private: template< typename LatticeModel_T, typename BlockStorage_T > BlockDataID addPdfFieldToStorage( const shared_ptr< BlockStorage_T > & blocks, const std::string & identifier, const LatticeModel_T & latticeModel, - const field::Layout & layout = field::zyxf, + const field::Layout & layout = field::fzyx, const Set<SUID> & requiredSelectors = Set<SUID>::emptySet(), const Set<SUID> & incompatibleSelectors = Set<SUID>::emptySet(), const shared_ptr< field::FieldAllocator<real_t> > alloc = nullptr) @@ -173,7 +173,7 @@ template< typename LatticeModel_T, typename BlockStorage_T > BlockDataID addPdfFieldToStorage( const shared_ptr< BlockStorage_T > & blocks, const std::string & identifier, const LatticeModel_T & latticeModel, const uint_t ghostLayers, - const field::Layout & layout = field::zyxf, + const field::Layout & layout = field::fzyx, const Set<SUID> & requiredSelectors = Set<SUID>::emptySet(), const Set<SUID> & incompatibleSelectors = Set<SUID>::emptySet(), const shared_ptr< field::FieldAllocator<real_t> > alloc = nullptr) @@ -189,7 +189,7 @@ template< typename LatticeModel_T, typename BlockStorage_T > BlockDataID addPdfFieldToStorage( const shared_ptr< BlockStorage_T > & blocks, const std::string & identifier, const LatticeModel_T & latticeModel, const Vector3< real_t > & initialVelocity, const real_t initialDensity, - const field::Layout & layout = field::zyxf, + const field::Layout & layout = field::fzyx, const Set<SUID> & requiredSelectors = Set<SUID>::emptySet(), const Set<SUID> & incompatibleSelectors = Set<SUID>::emptySet(), const shared_ptr< field::FieldAllocator<real_t> > alloc = nullptr) @@ -206,7 +206,7 @@ BlockDataID addPdfFieldToStorage( const shared_ptr< BlockStorage_T > & blocks, c const LatticeModel_T & latticeModel, const Vector3< real_t > & initialVelocity, const real_t initialDensity, const uint_t ghostLayers, - const field::Layout & layout = field::zyxf, + const field::Layout & layout = field::fzyx, const Set<SUID> & requiredSelectors = Set<SUID>::emptySet(), const Set<SUID> & incompatibleSelectors = Set<SUID>::emptySet(), const shared_ptr< field::FieldAllocator<real_t> > alloc = nullptr) @@ -227,7 +227,7 @@ struct PdfFieldCreator : public domain_decomposition::BlockDataCreator< lbm::Pdf PdfFieldCreator( const shared_ptr< StructuredBlockStorage > & blocks, const std::string & identifier, const Set<SUID> & requiredSelectors, const Set<SUID> & incompatibleSelectors, const LatticeModel_T & latticeModel, - const field::Layout & layout = field::zyxf, + const field::Layout & layout = field::fzyx, const shared_ptr< field::FieldAllocator<real_t> > alloc = nullptr) : domain_decomposition::BlockDataCreator< lbm::PdfField< LatticeModel_T > >( make_shared< internal::PdfFieldHandling< LatticeModel_T > >( blocks, latticeModel, false, Vector3<real_t>(0), real_t(1), uint_t(1), layout, alloc ), @@ -237,7 +237,7 @@ struct PdfFieldCreator : public domain_decomposition::BlockDataCreator< lbm::Pdf PdfFieldCreator( const shared_ptr< StructuredBlockStorage > & blocks, const std::string & identifier, const Set<SUID> & requiredSelectors, const Set<SUID> & incompatibleSelectors, const LatticeModel_T & latticeModel, const uint_t ghostLayers, - const field::Layout & layout = field::zyxf, + const field::Layout & layout = field::fzyx, const shared_ptr< field::FieldAllocator<real_t> > alloc = nullptr) : domain_decomposition::BlockDataCreator< lbm::PdfField< LatticeModel_T > >( make_shared< internal::PdfFieldHandling< LatticeModel_T > >( blocks, latticeModel, false, Vector3<real_t>(0), real_t(1), ghostLayers, layout, alloc ), @@ -247,7 +247,7 @@ struct PdfFieldCreator : public domain_decomposition::BlockDataCreator< lbm::Pdf PdfFieldCreator( const shared_ptr< StructuredBlockStorage > & blocks, const std::string & identifier, const Set<SUID> & requiredSelectors, const Set<SUID> & incompatibleSelectors, const LatticeModel_T & latticeModel, const Vector3< real_t > & initialVelocity, const real_t initialDensity, - const field::Layout & layout = field::zyxf, + const field::Layout & layout = field::fzyx, const shared_ptr< field::FieldAllocator<real_t> > alloc = nullptr) : domain_decomposition::BlockDataCreator< lbm::PdfField< LatticeModel_T > >( make_shared< internal::PdfFieldHandling< LatticeModel_T > >( blocks, latticeModel, true, initialVelocity, initialDensity, uint_t(1), layout, alloc ), @@ -257,7 +257,7 @@ struct PdfFieldCreator : public domain_decomposition::BlockDataCreator< lbm::Pdf PdfFieldCreator( const shared_ptr< StructuredBlockStorage > & blocks, const std::string & identifier, const Set<SUID> & requiredSelectors, const Set<SUID> & incompatibleSelectors, const LatticeModel_T & latticeModel, const Vector3< real_t > & initialVelocity, const real_t initialDensity, const uint_t ghostLayers, - const field::Layout & layout = field::zyxf, + const field::Layout & layout = field::fzyx, const shared_ptr< field::FieldAllocator<real_t> > alloc = nullptr) : domain_decomposition::BlockDataCreator< lbm::PdfField< LatticeModel_T > >( make_shared< internal::PdfFieldHandling< LatticeModel_T > >( blocks, latticeModel, true, initialVelocity, initialDensity, ghostLayers, layout, alloc ), diff --git a/src/lbm/field/PdfField.h b/src/lbm/field/PdfField.h index 178804a88..73e90220e 100644 --- a/src/lbm/field/PdfField.h +++ b/src/lbm/field/PdfField.h @@ -101,7 +101,7 @@ public: const LatticeModel_T & _latticeModel, const bool initialize = true, const Vector3< real_t > & initialVelocity = Vector3< real_t >( real_t(0.0) ), const real_t initialDensity = real_t(1.0), - const uint_t ghostLayers = uint_t(1), const field::Layout & _layout = field::zyxf, + const uint_t ghostLayers = uint_t(1), const field::Layout & _layout = field::fzyx, const shared_ptr< field::FieldAllocator<real_t> > & alloc = shared_ptr< field::FieldAllocator<real_t> >() ); ~PdfField() override = default; diff --git a/src/mesh/boundary/BoundarySetup.cpp b/src/mesh/boundary/BoundarySetup.cpp index c0edcc1ed..e4d443b53 100644 --- a/src/mesh/boundary/BoundarySetup.cpp +++ b/src/mesh/boundary/BoundarySetup.cpp @@ -89,7 +89,7 @@ void BoundarySetup::allocateOrResetVoxelizationField() } else { - voxelizationFieldId_ = make_shared< BlockDataID >( field::addToStorage< VoxelizationField >( structuredBlockStorage_, "voxelization field", uint8_t(0), field::zyxf, numGhostLayers_ ) ); + voxelizationFieldId_ = make_shared< BlockDataID >( field::addToStorage< VoxelizationField >( structuredBlockStorage_, "voxelization field", uint8_t(0), field::fzyx, numGhostLayers_ ) ); } WALBERLA_ASSERT_NOT_NULLPTR( voxelizationFieldId_ ); diff --git a/src/pde/boundary/Dirichlet.h b/src/pde/boundary/Dirichlet.h index f5543fdbe..929d2b5ba 100644 --- a/src/pde/boundary/Dirichlet.h +++ b/src/pde/boundary/Dirichlet.h @@ -167,7 +167,7 @@ inline Dirichlet< Stencil_T, flag_t >::Dirichlet( const BoundaryUID & boundaryUI ) #endif - dirichletBC_ = make_shared< Field_T >( rhsField_->xSize(), rhsField_->ySize(), rhsField_->zSize(), uint_t(1), field::zyxf ); + dirichletBC_ = make_shared< Field_T >( rhsField_->xSize(), rhsField_->ySize(), rhsField_->zSize(), uint_t(1), field::fzyx ); } diff --git a/src/pde/boundary/Dirichlet_withDx.h b/src/pde/boundary/Dirichlet_withDx.h index c11920692..93d2dd42e 100644 --- a/src/pde/boundary/Dirichlet_withDx.h +++ b/src/pde/boundary/Dirichlet_withDx.h @@ -133,7 +133,7 @@ inline Dirichlet< Stencil_T, flag_t >::Dirichlet( const BoundaryUID & boundaryUI WALBERLA_ASSERT_EQUAL( rhsField_->xyzSize(), stencilField_->xyzSize() ); - dirichletBC_ = make_shared< Field_T >( rhsField_->xSize(), rhsField_->ySize(), rhsField_->zSize(), uint_t(1), field::zyxf ); + dirichletBC_ = make_shared< Field_T >( rhsField_->xSize(), rhsField_->ySize(), rhsField_->zSize(), uint_t(1), field::fzyx ); for(auto d = Stencil_T::beginNoCenter(); d != Stencil_T::end(); ++d ){ dx_[d.toIdx()] = Vector3<real_t>(stencil::cx[d.toIdx()]*blocks.dx(), stencil::cy[d.toIdx()]*blocks.dy(), stencil::cz[d.toIdx()]*blocks.dz() ).sqrLength(); diff --git a/src/pde/boundary/Neumann.h b/src/pde/boundary/Neumann.h index ba5fb0e8c..76988b2d4 100644 --- a/src/pde/boundary/Neumann.h +++ b/src/pde/boundary/Neumann.h @@ -350,7 +350,7 @@ inline Neumann< Stencil_T, flag_t >::Neumann( const BoundaryUID & boundaryUID, c ) #endif - neumannBC_ = make_shared< Field_T >( rhsField_->xSize(), rhsField_->ySize(), rhsField_->zSize(), uint_t(1), field::zyxf ); + neumannBC_ = make_shared< Field_T >( rhsField_->xSize(), rhsField_->ySize(), rhsField_->zSize(), uint_t(1), field::fzyx ); for(auto d = Stencil_T::beginNoCenter(); d != Stencil_T::end(); ++d ){ dx_[d.toIdx()] = Vector3<real_t>(real_c(stencil::cx[d.toIdx()])*blocks.dx(), real_c(stencil::cy[d.toIdx()])*blocks.dy(), real_c(stencil::cz[d.toIdx()])*blocks.dz() ).sqrLength(); diff --git a/src/pde/iterations/VCycles.impl.h b/src/pde/iterations/VCycles.impl.h index 8cf132a14..2555b7071 100644 --- a/src/pde/iterations/VCycles.impl.h +++ b/src/pde/iterations/VCycles.impl.h @@ -60,7 +60,7 @@ VCycles< Stencil_T, OperatorCoarsening_T, Restrict_T, ProlongateAndCorrect_T >:: // Set up fields for finest level uId_.push_back( uFieldId ); fId_.push_back( fFieldId ); - rId_.push_back( field::addToStorage< PdeField_T >( blocks, "r_0", real_t(0), field::zyxf, uint_t(1) ) ); + rId_.push_back( field::addToStorage< PdeField_T >( blocks, "r_0", real_t(0), field::fzyx, uint_t(1) ) ); // Check that coarsest grid has more than one cell per dimension auto block = blocks->begin(); @@ -91,9 +91,9 @@ VCycles< Stencil_T, OperatorCoarsening_T, Restrict_T, ProlongateAndCorrect_T >:: for ( uint_t lvl = 1; lvl < numLvl; ++lvl ) { auto getSize = std::bind(VCycles<Stencil_T, OperatorCoarsening_T, Restrict_T, ProlongateAndCorrect_T>::getSizeForLevel, lvl, std::placeholders::_1, std::placeholders::_2); - uId_.push_back( field::addToStorage< PdeField_T >( blocks, "u_"+std::to_string(lvl), getSize, real_t(0), field::zyxf, uint_t(1) ) ); - fId_.push_back( field::addToStorage< PdeField_T >( blocks, "f_"+std::to_string(lvl), getSize, real_t(0), field::zyxf, uint_t(1) ) ); - rId_.push_back( field::addToStorage< PdeField_T >( blocks, "r_"+std::to_string(lvl), getSize, real_t(0), field::zyxf, uint_t(1) ) ); + uId_.push_back( field::addToStorage< PdeField_T >( blocks, "u_"+std::to_string(lvl), getSize, real_t(0), field::fzyx, uint_t(1) ) ); + fId_.push_back( field::addToStorage< PdeField_T >( blocks, "f_"+std::to_string(lvl), getSize, real_t(0), field::fzyx, uint_t(1) ) ); + rId_.push_back( field::addToStorage< PdeField_T >( blocks, "r_"+std::to_string(lvl), getSize, real_t(0), field::fzyx, uint_t(1) ) ); for ( auto & w: weights_[lvl] ) { @@ -104,8 +104,8 @@ VCycles< Stencil_T, OperatorCoarsening_T, Restrict_T, ProlongateAndCorrect_T >:: // Set up fields for CG on coarsest level auto getFineSize = std::bind(VCycles<Stencil_T, OperatorCoarsening_T, Restrict_T, ProlongateAndCorrect_T>::getSizeForLevel, numLvl-1, std::placeholders::_1, std::placeholders::_2); - dId_ = field::addToStorage< PdeField_T >( blocks, "d", getFineSize, real_t(0), field::zyxf, uint_t(1) ); - zId_ = field::addToStorage< PdeField_T >( blocks, "z", getFineSize, real_t(0), field::zyxf, uint_t(1) ); + dId_ = field::addToStorage< PdeField_T >( blocks, "d", getFineSize, real_t(0), field::fzyx, uint_t(1) ); + zId_ = field::addToStorage< PdeField_T >( blocks, "z", getFineSize, real_t(0), field::fzyx, uint_t(1) ); // Set up communication for ( uint_t lvl = 0; lvl < numLvl-1; ++lvl ) @@ -167,7 +167,7 @@ VCycles< Stencil_T, OperatorCoarsening_T, Restrict_T, ProlongateAndCorrect_T >:: // Set up fields for finest level uId_.push_back( uFieldId ); fId_.push_back( fFieldId ); - rId_.push_back( field::addToStorage< PdeField_T >( blocks, "r_0", real_t(0), field::zyxf, uint_t(1) ) ); + rId_.push_back( field::addToStorage< PdeField_T >( blocks, "r_0", real_t(0), field::fzyx, uint_t(1) ) ); stencilId_.push_back( stencilFieldId ); // Check that coarsest grid has more than one cell per dimension @@ -197,10 +197,10 @@ VCycles< Stencil_T, OperatorCoarsening_T, Restrict_T, ProlongateAndCorrect_T >:: for ( uint_t lvl = 1; lvl < numLvl; ++lvl ) { auto getSize = std::bind(VCycles<Stencil_T, OperatorCoarsening_T, Restrict_T, ProlongateAndCorrect_T>::getSizeForLevel, lvl, std::placeholders::_1, std::placeholders::_2); - uId_.push_back( field::addToStorage< PdeField_T >( blocks, "u_"+std::to_string(lvl), getSize, real_t(0), field::zyxf, uint_t(1) ) ); - fId_.push_back( field::addToStorage< PdeField_T >( blocks, "f_"+std::to_string(lvl), getSize, real_t(0), field::zyxf, uint_t(1) ) ); - rId_.push_back( field::addToStorage< PdeField_T >( blocks, "r_"+std::to_string(lvl), getSize, real_t(0), field::zyxf, uint_t(1) ) ); - stencilId_.push_back( field::addToStorage< StencilField_T >( blocks, "w_"+std::to_string(lvl), getSize, real_t(0), field::zyxf, uint_t(1) ) ); + uId_.push_back( field::addToStorage< PdeField_T >( blocks, "u_"+std::to_string(lvl), getSize, real_t(0), field::fzyx, uint_t(1) ) ); + fId_.push_back( field::addToStorage< PdeField_T >( blocks, "f_"+std::to_string(lvl), getSize, real_t(0), field::fzyx, uint_t(1) ) ); + rId_.push_back( field::addToStorage< PdeField_T >( blocks, "r_"+std::to_string(lvl), getSize, real_t(0), field::fzyx, uint_t(1) ) ); + stencilId_.push_back( field::addToStorage< StencilField_T >( blocks, "w_"+std::to_string(lvl), getSize, real_t(0), field::fzyx, uint_t(1) ) ); } // CoarsenStencilFieldsDCA<Stencil_T>( blocks, stencilId_, numLvl, uint_t(2)) (); // scaling by ( 1/h^2 )^lvl @@ -209,8 +209,8 @@ VCycles< Stencil_T, OperatorCoarsening_T, Restrict_T, ProlongateAndCorrect_T >:: // Set up fields for CG on coarsest level auto getFineSize = std::bind(VCycles<Stencil_T, OperatorCoarsening_T, Restrict_T, ProlongateAndCorrect_T>::getSizeForLevel, numLvl-1, std::placeholders::_1, std::placeholders::_2); - dId_ = field::addToStorage< PdeField_T >( blocks, "d", getFineSize, real_t(0), field::zyxf, uint_t(1) ); - zId_ = field::addToStorage< PdeField_T >( blocks, "z", getFineSize, real_t(0), field::zyxf, uint_t(1) ); + dId_ = field::addToStorage< PdeField_T >( blocks, "d", getFineSize, real_t(0), field::fzyx, uint_t(1) ); + zId_ = field::addToStorage< PdeField_T >( blocks, "z", getFineSize, real_t(0), field::fzyx, uint_t(1) ); // Set up communication for ( uint_t lvl = 0; lvl < numLvl-1; ++lvl ) diff --git a/src/python_coupling/export/CUDAExport.impl.h b/src/python_coupling/export/CUDAExport.impl.h index eb60759cb..0e724cebe 100644 --- a/src/python_coupling/export/CUDAExport.impl.h +++ b/src/python_coupling/export/CUDAExport.impl.h @@ -345,7 +345,7 @@ void exportModuleToPython(py::module_ &m) bool usePitchedMem, uint_t ghostLayers, Layout layout) { return internal::addToStorage<GpuFields...>(blocks, name, dtype, fSize, ghostLayers, layout, usePitchedMem); }, - "blocks"_a, "name"_a, "dtype"_a, "fSize"_a=1, "usePitchedMem"_a=false, "ghostLayers"_a=uint(1), "layout"_a=zyxf); + "blocks"_a, "name"_a, "dtype"_a, "fSize"_a=1, "usePitchedMem"_a=false, "ghostLayers"_a=uint(1), "layout"_a=fzyx); m2.def( "createPackInfo", diff --git a/src/python_coupling/export/FieldExport.impl.h b/src/python_coupling/export/FieldExport.impl.h index 55d2e9394..60ba3fd10 100644 --- a/src/python_coupling/export/FieldExport.impl.h +++ b/src/python_coupling/export/FieldExport.impl.h @@ -631,7 +631,7 @@ void exportFields(py::module_& m) [](std::array< uint_t, 4 > size, py::object & dtype, uint_t ghostLayers, Layout layout, uint_t alignment) { return internal::createPythonField< FieldTypes... >(size, dtype, ghostLayers, layout, alignment); }, - "size"_a, "dtype"_a, "ghostLayers"_a = uint_t(1), "layout"_a = zyxf, "alignment"_a = 0); + "size"_a, "dtype"_a, "ghostLayers"_a = uint_t(1), "layout"_a = fzyx, "alignment"_a = 0); m2.def( "addToStorage", @@ -639,7 +639,7 @@ void exportFields(py::module_& m) Layout layout, uint_t ghostLayers, real_t initValue, uint_t alignment) { return internal::addToStorage< FieldTypes... >(blocks, name, dtype, fSize, ghostLayers, layout, initValue, alignment); }, - "blocks"_a, "name"_a, "dtype"_a, "fSize"_a = 1, "layout"_a = zyxf, "ghostLayers"_a = uint_t(1), "initValue"_a = 0.0, "alignment"_a = 0); + "blocks"_a, "name"_a, "dtype"_a, "fSize"_a = 1, "layout"_a = fzyx, "ghostLayers"_a = uint_t(1), "initValue"_a = 0.0, "alignment"_a = 0); m2.def( "createVTKWriter", [](const shared_ptr<StructuredBlockForest> & blocks, const std::string & name, diff --git a/tests/blockforest/BlockDataIOTest.cpp b/tests/blockforest/BlockDataIOTest.cpp index 90c436096..b72a9dded 100644 --- a/tests/blockforest/BlockDataIOTest.cpp +++ b/tests/blockforest/BlockDataIOTest.cpp @@ -79,9 +79,9 @@ void test() blockforest::BlockForestEvaluation evaluation(sbf->getBlockForest()); WALBERLA_LOG_INFO_ON_ROOT("BlockForest:\n" << evaluation.toString()) - // auto originalFieldId = field::addToStorage< FieldType >( sbf, "OriginalField", 0.0, field::zyxf, uint_t(3), false, + // auto originalFieldId = field::addToStorage< FieldType >( sbf, "OriginalField", 0.0, field::fzyx, uint_t(3), false, // None, Empty ); - auto dataHandling = make_shared< field::DefaultBlockDataHandling< FieldType > >(sbf, uint_t(3), 0.0, field::zyxf); + auto dataHandling = make_shared< field::DefaultBlockDataHandling< FieldType > >(sbf, uint_t(3), 0.0, field::fzyx); auto originalFieldId = sbf->addBlockData(dataHandling, "OriginalField", None, Empty); math::seedRandomGenerator(numeric_cast< std::mt19937::result_type >(MPIManager::instance()->rank())); diff --git a/tests/core/load_balancing/MetisTest.cpp b/tests/core/load_balancing/MetisTest.cpp index 98d13eeb6..d8f113f92 100644 --- a/tests/core/load_balancing/MetisTest.cpp +++ b/tests/core/load_balancing/MetisTest.cpp @@ -77,8 +77,8 @@ int main( int argc, char * argv[] ) typedef field::GhostLayerField< int64_t, 1 > FieldType; - auto domainId = field::addToStorage< FieldType >( blocks, "domain", int64_t(-1), field::zyxf, uint_t(1) ); - auto partFieldId = field::addToStorage< FieldType >( blocks, "partitions", int64_t(-1), field::zyxf, uint_t(1) ); + auto domainId = field::addToStorage< FieldType >( blocks, "domain", int64_t(-1), field::fzyx, uint_t(1) ); + auto partFieldId = field::addToStorage< FieldType >( blocks, "partitions", int64_t(-1), field::fzyx, uint_t(1) ); auto & domain = *( blocks->begin()->getData< FieldType >( domainId ) ); auto & partField = *( blocks->begin()->getData< FieldType >( partFieldId ) ); diff --git a/tests/core/load_balancing/ParMetisTest.cpp b/tests/core/load_balancing/ParMetisTest.cpp index a02634c83..b0d9f578e 100644 --- a/tests/core/load_balancing/ParMetisTest.cpp +++ b/tests/core/load_balancing/ParMetisTest.cpp @@ -82,8 +82,8 @@ int main( int argc, char * argv[] ) typedef field::GhostLayerField< int64_t, 1 > FieldType; - auto domainId = field::addToStorage< FieldType >( blocks, "domain", int64_t(-1), field::zyxf, uint_t(1) ); - auto partFieldId = field::addToStorage< FieldType >( blocks, "partitions", int64_t(-1), field::zyxf, uint_t(1) ); + auto domainId = field::addToStorage< FieldType >( blocks, "domain", int64_t(-1), field::fzyx, uint_t(1) ); + auto partFieldId = field::addToStorage< FieldType >( blocks, "partitions", int64_t(-1), field::fzyx, uint_t(1) ); auto & domain = *( blocks->begin()->getData< FieldType >( domainId ) ); auto & partField = *( blocks->begin()->getData< FieldType >( partFieldId ) ); diff --git a/tests/cuda/communication/GPUPackInfoCommunicationTest.cpp b/tests/cuda/communication/GPUPackInfoCommunicationTest.cpp index 27fdba33b..8e877874e 100644 --- a/tests/cuda/communication/GPUPackInfoCommunicationTest.cpp +++ b/tests/cuda/communication/GPUPackInfoCommunicationTest.cpp @@ -54,7 +54,7 @@ using GPUFieldType = cuda::GPUField< DataType >; using CommSchemeType = blockforest::communication::UniformBufferedScheme<StencilType>; using GPUPackInfoType = cuda::communication::GPUPackInfo< GPUFieldType >; -static std::vector< cuda::Layout > fieldLayouts = { cuda::fzyx, cuda::zyxf }; +static std::vector< cuda::Layout > fieldLayouts = { cuda::fzyx, cuda::fzyx }; static uint_t fieldLayoutIndex = 0; diff --git a/tests/fft/GreensTest.cpp b/tests/fft/GreensTest.cpp index cb8797f18..e8eeaa8b9 100644 --- a/tests/fft/GreensTest.cpp +++ b/tests/fft/GreensTest.cpp @@ -30,8 +30,8 @@ int main (int argc, char** argv) WALBERLA_ASSERT_EQUAL(cells_per_block*processes, L, "Number of processes per direction must evenly divide " << L); auto blocks = blockforest::createUniformBlockGrid(num_blocks,num_blocks,num_blocks, cells_per_block,cells_per_block,cells_per_block, 1.0, processes,processes,processes, true,true,true); - BlockDataID originalFieldId = field::addToStorage<Field_T>( blocks, "original", real_t(0), field::zyxf, 1 ); - BlockDataID fftFieldId = field::addToStorage<Field_T>( blocks, "result", real_t(0), field::zyxf, 1 ); + BlockDataID originalFieldId = field::addToStorage<Field_T>( blocks, "original", real_t(0), field::fzyx, 1 ); + BlockDataID fftFieldId = field::addToStorage<Field_T>( blocks, "result", real_t(0), field::fzyx, 1 ); auto comm = blockforest::communication::UniformBufferedScheme< stencil::D3Q7 >( blocks ); comm.addPackInfo(make_shared< field::communication::PackInfo< Field_T > >( fftFieldId )); diff --git a/tests/field/AddToStorageTest.cpp b/tests/field/AddToStorageTest.cpp index 270826cea..3f5a47f6e 100644 --- a/tests/field/AddToStorageTest.cpp +++ b/tests/field/AddToStorageTest.cpp @@ -42,7 +42,7 @@ int main( int argc, char ** argv ) ); typedef GhostLayerField<Vector3<uint_t>,1> VectorField; typedef GhostLayerField<uint_t, 3> FlattenedField; - BlockDataID fieldID = field::addToStorage<VectorField>( blocks, "Field" ); + BlockDataID fieldID = field::addToStorage<VectorField>( blocks, "Field", Vector3<uint_t>(uint_c(0)), field::zyxf ); BlockDataID flattenedID = field::addFlattenedShallowCopyToStorage<VectorField>( blocks, fieldID, "flattened Field"); for( auto blockIt = blocks->begin(); blockIt != blocks->end(); ++blockIt ) @@ -58,9 +58,9 @@ int main( int argc, char ** argv ) } } } - + BlockDataID copyID = field::addCloneToStorage<VectorField>( blocks, fieldID, "copied Field"); - + for( auto blockIt = blocks->begin(); blockIt != blocks->end(); ++blockIt ) { VectorField * field = blockIt->getData<VectorField>( fieldID ); diff --git a/tests/field/FieldTest.cpp b/tests/field/FieldTest.cpp index 2021554dd..3214a7749 100644 --- a/tests/field/FieldTest.cpp +++ b/tests/field/FieldTest.cpp @@ -580,7 +580,7 @@ void fieldPointerTest() template<uint_t fSize> void flattenTest() { - Field<Vector3<uint_t>, fSize> field ( 2,2,1 ); + Field<Vector3<uint_t>, fSize> field ( 2,2,1,field::zyxf ); for( cell_idx_t x = 0; x < cell_idx_c(field.xSize()); ++x ) for( cell_idx_t y = 0; y < cell_idx_c(field.ySize()); ++y ) @@ -594,7 +594,7 @@ void flattenTest() shared_ptr<Field<uint_t, 3*fSize>> flattened(field.flattenedShallowCopy()); - Field<uint_t, 3*fSize> cmp ( 2,2,1 ); + Field<uint_t, 3*fSize> cmp ( 2,2,1,field::zyxf ); WALBERLA_CHECK_EQUAL(cmp.xSize(), flattened->xSize()); WALBERLA_CHECK_EQUAL(cmp.ySize(), flattened->ySize()); WALBERLA_CHECK_EQUAL(cmp.zSize(), flattened->zSize()); @@ -626,7 +626,7 @@ void flattenTest() template<uint_t fSize> void ghostFlattenTest() { - GhostLayerField<Vector3<uint_t>, fSize> field ( 2,2,1, 1 ); + GhostLayerField<Vector3<uint_t>, fSize> field ( 2,2,1,1,field::zyxf ); for( cell_idx_t x = -cell_idx_c(field.nrOfGhostLayers()); x < cell_idx_c(field.xSize()+field.nrOfGhostLayers()); ++x ) for( cell_idx_t y = -cell_idx_c(field.nrOfGhostLayers()); y < cell_idx_c(field.ySize()+field.nrOfGhostLayers()); ++y ) @@ -640,7 +640,7 @@ void ghostFlattenTest() shared_ptr<GhostLayerField<uint_t, 3*fSize>> flattened(field.flattenedShallowCopy()); - GhostLayerField<uint_t, 3*fSize> cmp ( 2,2,1, 1 ); + GhostLayerField<uint_t, 3*fSize> cmp ( 2,2,1,1,field::zyxf ); WALBERLA_CHECK_EQUAL(cmp.xSize(), flattened->xSize()); WALBERLA_CHECK_EQUAL(cmp.ySize(), flattened->ySize()); WALBERLA_CHECK_EQUAL(cmp.zSize(), flattened->zSize()); diff --git a/tests/field/distributors/DistributionTest.cpp b/tests/field/distributors/DistributionTest.cpp index daf4784ba..a96429c32 100644 --- a/tests/field/distributors/DistributionTest.cpp +++ b/tests/field/distributors/DistributionTest.cpp @@ -511,9 +511,9 @@ int main(int argc, char **argv) { BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field", FieldGhostLayers, false, initFlagField ); // data fields - BlockDataID scalarFieldID = field::addToStorage< ScalarField_T >( blocks, "scalar field", real_t(0), field::zyxf, FieldGhostLayers ); - BlockDataID vectorFieldID = field::addToStorage< Vec3Field_T >( blocks, "vec3 field", Vector3<real_t>(real_t(0)), field::zyxf, FieldGhostLayers ); - BlockDataID multiComponentFieldID = field::addToStorage< MultiComponentField_T >( blocks, "multi component field", real_t(0), field::zyxf, FieldGhostLayers ); + BlockDataID scalarFieldID = field::addToStorage< ScalarField_T >( blocks, "scalar field", real_t(0), field::fzyx, FieldGhostLayers ); + BlockDataID vectorFieldID = field::addToStorage< Vec3Field_T >( blocks, "vec3 field", Vector3<real_t>(real_t(0)), field::fzyx, FieldGhostLayers ); + BlockDataID multiComponentFieldID = field::addToStorage< MultiComponentField_T >( blocks, "multi component field", real_t(0), field::fzyx, FieldGhostLayers ); // test all distributors with domain flags everywhere, i.e. without special boundary treatment necessary testNearestNeighborDistributor(blocks, flagFieldID, scalarFieldID, vectorFieldID, multiComponentFieldID); diff --git a/tests/field/interpolators/FieldInterpolationTest.cpp b/tests/field/interpolators/FieldInterpolationTest.cpp index 3571c3fd9..712f89de9 100644 --- a/tests/field/interpolators/FieldInterpolationTest.cpp +++ b/tests/field/interpolators/FieldInterpolationTest.cpp @@ -399,9 +399,9 @@ int main(int argc, char **argv) { BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field", FieldGhostLayers, false, initFlagField ); // data fields - BlockDataID scalarFieldID = field::addToStorage< ScalarField_T >( blocks, "scalar field", real_t(0), field::zyxf, FieldGhostLayers ); - BlockDataID vectorFieldID = field::addToStorage< Vec3Field_T >( blocks, "vec3 field", Vector3<real_t>(real_t(0)), field::zyxf, FieldGhostLayers ); - BlockDataID multiComponentFieldID = field::addToStorage< MultiComponentField_T >( blocks, "multi component field", real_t(0), field::zyxf, FieldGhostLayers ); + BlockDataID scalarFieldID = field::addToStorage< ScalarField_T >( blocks, "scalar field", real_t(0), field::fzyx, FieldGhostLayers ); + BlockDataID vectorFieldID = field::addToStorage< Vec3Field_T >( blocks, "vec3 field", Vector3<real_t>(real_t(0)), field::fzyx, FieldGhostLayers ); + BlockDataID multiComponentFieldID = field::addToStorage< MultiComponentField_T >( blocks, "multi component field", real_t(0), field::fzyx, FieldGhostLayers ); initScalarField(blocks, scalarFieldID); initVectorField(blocks, vectorFieldID ); diff --git a/tests/gui/SimpleGuiRun.cpp b/tests/gui/SimpleGuiRun.cpp index cb8d39af5..36ca045c4 100644 --- a/tests/gui/SimpleGuiRun.cpp +++ b/tests/gui/SimpleGuiRun.cpp @@ -73,8 +73,8 @@ int main(int argc, char **argv ) BlockDataID pdfField = lbm::addPdfFieldToStorage( blocks, "PdfField", latticeModel ); - BlockDataID scalarField1 = field::addToStorage<ScalarField>( blocks, "ScalarFieldOneGl", real_t(0), field::zyxf, 1 ); - BlockDataID scalarField2 = field::addToStorage<ScalarField>( blocks, "ScalarFieldTwoGl", real_t(0), field::zyxf, 2 ); + BlockDataID scalarField1 = field::addToStorage<ScalarField>( blocks, "ScalarFieldOneGl", real_t(0), field::fzyx, 1 ); + BlockDataID scalarField2 = field::addToStorage<ScalarField>( blocks, "ScalarFieldTwoGl", real_t(0), field::fzyx, 2 ); BlockDataID vectorField = field::addToStorage<VectorField>( blocks, "VectorField", Vector3<real_t>(0,0,0) ); BlockDataID flagField = field::addFlagFieldToStorage<FField>( blocks, "FlagField" ); diff --git a/tests/lbm/field/QCriterionTest.cpp b/tests/lbm/field/QCriterionTest.cpp index 0e5dc2dd0..966b0e678 100644 --- a/tests/lbm/field/QCriterionTest.cpp +++ b/tests/lbm/field/QCriterionTest.cpp @@ -54,7 +54,7 @@ int main( int argc, char ** argv ) auto numberOfCells = uint_t(40); - VelocityField_T velocityField(numberOfCells, numberOfCells, numberOfCells, uint_t(1)); + VelocityField_T velocityField(numberOfCells, numberOfCells, numberOfCells, uint_t(1), field::zyxf); FluidFilter_T filter(numberOfCells); diff --git a/tests/lbm/refinement/Uniformity.cpp b/tests/lbm/refinement/Uniformity.cpp index 7ff59cbbb..dbad16dcb 100644 --- a/tests/lbm/refinement/Uniformity.cpp +++ b/tests/lbm/refinement/Uniformity.cpp @@ -394,7 +394,7 @@ int main( int argc, char ** argv ) // check constant velocity //typedef GhostLayerField<real_t,1> ErrorField; - //BlockDataID errorFieldId = field::addToStorage< ErrorField >( blocks, "error field", real_t(0), field::zyxf, FieldGhostLayers ); + //BlockDataID errorFieldId = field::addToStorage< ErrorField >( blocks, "error field", real_t(0), field::fzyx, FieldGhostLayers ); for( auto block = blocks->begin(); block != blocks->end(); ++block ) { diff --git a/tests/lbm_mesapd_coupling/mapping/ParticleMapping.cpp b/tests/lbm_mesapd_coupling/mapping/ParticleMapping.cpp index b2ecf7107..c71ce6cf6 100644 --- a/tests/lbm_mesapd_coupling/mapping/ParticleMapping.cpp +++ b/tests/lbm_mesapd_coupling/mapping/ParticleMapping.cpp @@ -410,9 +410,9 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( omega ); // add PDF field - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3<real_t>(real_t(0)), real_t(1), - FieldGhostLayers, field::zyxf ); + FieldGhostLayers, field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field", FieldGhostLayers ); diff --git a/tests/lbm_mesapd_coupling/momentum_exchange_method/DragForceSphere.cpp b/tests/lbm_mesapd_coupling/momentum_exchange_method/DragForceSphere.cpp index d6c317521..ca976cfc7 100644 --- a/tests/lbm_mesapd_coupling/momentum_exchange_method/DragForceSphere.cpp +++ b/tests/lbm_mesapd_coupling/momentum_exchange_method/DragForceSphere.cpp @@ -479,15 +479,15 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( lbm::collision_model::TRT::constructWithMagicNumber( omega ), ForceModel_T( Vector3<real_t> ( setup.extForce, 0, 0 ) ) ); // add PDF field - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_t(0) ), real_t(1), - uint_t(1), field::zyxf ); + uint_t(1), field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field" ); // add particle field - BlockDataID particleFieldID = field::addToStorage<lbm_mesapd_coupling::ParticleField_T>( blocks, "particle field", accessor->getInvalidUid(), field::zyxf, FieldGhostLayers ); + BlockDataID particleFieldID = field::addToStorage<lbm_mesapd_coupling::ParticleField_T>( blocks, "particle field", accessor->getInvalidUid(), field::fzyx, FieldGhostLayers ); // add boundary handling using BoundaryHandling_T = MyBoundaryHandling<ParticleAccessor_T>::Type; diff --git a/tests/lbm_mesapd_coupling/momentum_exchange_method/ForceBetweenTwoStationaryObjects.cpp b/tests/lbm_mesapd_coupling/momentum_exchange_method/ForceBetweenTwoStationaryObjects.cpp index 6034afaef..8956b4988 100644 --- a/tests/lbm_mesapd_coupling/momentum_exchange_method/ForceBetweenTwoStationaryObjects.cpp +++ b/tests/lbm_mesapd_coupling/momentum_exchange_method/ForceBetweenTwoStationaryObjects.cpp @@ -216,13 +216,13 @@ void createSimulationSetup( shared_ptr< StructuredBlockForest > blocks, shared_p LM_T latticeModel = LM_T( lbm::collision_model::TRT::constructWithMagicNumber( omega ) ); // add PDF field - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LM_T >( blocks, "pdf field (zyxf)", latticeModel, velocity, real_t(1), uint_t(1), field::zyxf ); + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LM_T >( blocks, "pdf field (fzyx)", latticeModel, velocity, real_t(1), uint_t(1), field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field" ); // add particle field - BlockDataID particleFieldID = field::addToStorage<lbm_mesapd_coupling::ParticleField_T>( blocks, "particle field", accessor->getInvalidUid(), field::zyxf, FieldGhostLayers ); + BlockDataID particleFieldID = field::addToStorage<lbm_mesapd_coupling::ParticleField_T>( blocks, "particle field", accessor->getInvalidUid(), field::fzyx, FieldGhostLayers ); // add boundary handling using BoundaryHandling_T = typename MyBoundaryHandling<LM_T,ParticleAccessor_T>::Type; diff --git a/tests/lbm_mesapd_coupling/momentum_exchange_method/MovingParticleMapping.cpp b/tests/lbm_mesapd_coupling/momentum_exchange_method/MovingParticleMapping.cpp index a390f6feb..6a6093936 100644 --- a/tests/lbm_mesapd_coupling/momentum_exchange_method/MovingParticleMapping.cpp +++ b/tests/lbm_mesapd_coupling/momentum_exchange_method/MovingParticleMapping.cpp @@ -341,9 +341,9 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( omega ); // add PDF field - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3<real_t>(real_t(0)), real_t(1), - FieldGhostLayers, field::zyxf ); + FieldGhostLayers, field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field", FieldGhostLayers ); @@ -363,7 +363,7 @@ int main( int argc, char **argv ) const real_t overlap = real_t( 1.5 ) * dx; // add particle field - BlockDataID particleFieldID = field::addToStorage<lbm_mesapd_coupling::ParticleField_T>( blocks, "particle field", accessor->getInvalidUid(), field::zyxf, FieldGhostLayers ); + BlockDataID particleFieldID = field::addToStorage<lbm_mesapd_coupling::ParticleField_T>( blocks, "particle field", accessor->getInvalidUid(), field::fzyx, FieldGhostLayers ); // add boundary handling using BoundaryHandling_T = MyBoundaryHandling<ParticleAccessor_T>::Type; diff --git a/tests/lbm_mesapd_coupling/momentum_exchange_method/PdfReconstruction.cpp b/tests/lbm_mesapd_coupling/momentum_exchange_method/PdfReconstruction.cpp index 69a47439e..665ddb12f 100644 --- a/tests/lbm_mesapd_coupling/momentum_exchange_method/PdfReconstruction.cpp +++ b/tests/lbm_mesapd_coupling/momentum_exchange_method/PdfReconstruction.cpp @@ -557,9 +557,9 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( omega ); // add PDF field - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, velocity, density, - FieldGhostLayers, field::zyxf ); + FieldGhostLayers, field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field", FieldGhostLayers ); @@ -573,7 +573,7 @@ int main( int argc, char **argv ) auto accessor = make_shared<ParticleAccessor_T>(ps, ss); // add particle field - BlockDataID particleFieldID = field::addToStorage<lbm_mesapd_coupling::ParticleField_T>( blocks, "particle field", accessor->getInvalidUid(), field::zyxf, FieldGhostLayers ); + BlockDataID particleFieldID = field::addToStorage<lbm_mesapd_coupling::ParticleField_T>( blocks, "particle field", accessor->getInvalidUid(), field::fzyx, FieldGhostLayers ); // add boundary handling using BoundaryHandling_T = MyBoundaryHandling<ParticleAccessor_T>::Type; diff --git a/tests/lbm_mesapd_coupling/momentum_exchange_method/SettlingSphere.cpp b/tests/lbm_mesapd_coupling/momentum_exchange_method/SettlingSphere.cpp index 602011cef..769088479 100644 --- a/tests/lbm_mesapd_coupling/momentum_exchange_method/SettlingSphere.cpp +++ b/tests/lbm_mesapd_coupling/momentum_exchange_method/SettlingSphere.cpp @@ -564,14 +564,14 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( lbm::collision_model::TRT::constructWithMagicNumber( real_t(1) / relaxationTime ) ); // add PDF field - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_t(0) ), real_t(1), - uint_t(1), field::zyxf ); + uint_t(1), field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field" ); // add particle field - BlockDataID particleFieldID = field::addToStorage<lbm_mesapd_coupling::ParticleField_T>( blocks, "particle field", accessor->getInvalidUid(), field::zyxf, FieldGhostLayers ); + BlockDataID particleFieldID = field::addToStorage<lbm_mesapd_coupling::ParticleField_T>( blocks, "particle field", accessor->getInvalidUid(), field::fzyx, FieldGhostLayers ); // add boundary handling using BoundaryHandling_T = MyBoundaryHandling<ParticleAccessor_T>::Type; diff --git a/tests/lbm_mesapd_coupling/momentum_exchange_method/UpdateParticleMapping.cpp b/tests/lbm_mesapd_coupling/momentum_exchange_method/UpdateParticleMapping.cpp index 4ff4bc3d8..de677b8fd 100644 --- a/tests/lbm_mesapd_coupling/momentum_exchange_method/UpdateParticleMapping.cpp +++ b/tests/lbm_mesapd_coupling/momentum_exchange_method/UpdateParticleMapping.cpp @@ -288,9 +288,9 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( omega ); // add PDF field - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3<real_t>(real_t(0)), real_t(1), - FieldGhostLayers, field::zyxf ); + FieldGhostLayers, field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field", FieldGhostLayers ); @@ -304,7 +304,7 @@ int main( int argc, char **argv ) auto planeShape = ss->create<mesa_pd::data::HalfSpace>( Vector3<real_t>(real_t(1), real_t(0), real_t(0)) ); // add particle field - BlockDataID particleFieldID = field::addToStorage<lbm_mesapd_coupling::ParticleField_T>( blocks, "particle field", accessor->getInvalidUid(), field::zyxf, FieldGhostLayers ); + BlockDataID particleFieldID = field::addToStorage<lbm_mesapd_coupling::ParticleField_T>( blocks, "particle field", accessor->getInvalidUid(), field::fzyx, FieldGhostLayers ); // add boundary handling using BoundaryHandling_T = MyBoundaryHandling<ParticleAccessor_T>::Type; diff --git a/tests/lbm_mesapd_coupling/partially_saturated_cells_method/DragForceSphere.cpp b/tests/lbm_mesapd_coupling/partially_saturated_cells_method/DragForceSphere.cpp index fc7f56dd3..151b109c0 100644 --- a/tests/lbm_mesapd_coupling/partially_saturated_cells_method/DragForceSphere.cpp +++ b/tests/lbm_mesapd_coupling/partially_saturated_cells_method/DragForceSphere.cpp @@ -398,7 +398,7 @@ int main(int argc, char** argv) // add PDF field BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( - blocks, "pdf field (zyxf)", latticeModel, Vector3< real_t >(real_t(0)), real_t(1), uint_t(1), field::zyxf); + blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >(real_t(0)), real_t(1), uint_t(1), field::fzyx); /////////////// // TIME LOOP // @@ -416,7 +416,7 @@ int main(int argc, char** argv) BlockDataID particleAndVolumeFractionFieldID = field::addToStorage< lbm_mesapd_coupling::psm::ParticleAndVolumeFractionField_T >( blocks, "particle and volume fraction field", - std::vector< lbm_mesapd_coupling::psm::ParticleAndVolumeFraction_T >(), field::zyxf, 0); + std::vector< lbm_mesapd_coupling::psm::ParticleAndVolumeFraction_T >(), field::fzyx, 0); lbm_mesapd_coupling::psm::ParticleAndVolumeFractionMapping particleMapping( blocks, accessor, lbm_mesapd_coupling::GlobalParticlesSelector(), particleAndVolumeFractionFieldID, 4); particleMapping(); diff --git a/tests/lbm_mesapd_coupling/partially_saturated_cells_method/ParticleAndVolumeFractionMapping.cpp b/tests/lbm_mesapd_coupling/partially_saturated_cells_method/ParticleAndVolumeFractionMapping.cpp index eb03d3537..d1bd029a7 100644 --- a/tests/lbm_mesapd_coupling/partially_saturated_cells_method/ParticleAndVolumeFractionMapping.cpp +++ b/tests/lbm_mesapd_coupling/partially_saturated_cells_method/ParticleAndVolumeFractionMapping.cpp @@ -179,7 +179,7 @@ int main(int argc, char** argv) BlockDataID particleAndVolumeFractionFieldID = field::addToStorage< lbm_mesapd_coupling::psm::ParticleAndVolumeFractionField_T >( blocks, "particle and volume fraction field", - std::vector< lbm_mesapd_coupling::psm::ParticleAndVolumeFraction_T >(), field::zyxf, 0); + std::vector< lbm_mesapd_coupling::psm::ParticleAndVolumeFraction_T >(), field::fzyx, 0); // calculate fraction lbm_mesapd_coupling::psm::ParticleAndVolumeFractionMapping particleMapping( diff --git a/tests/lbm_mesapd_coupling/partially_saturated_cells_method/SettlingSphere.cpp b/tests/lbm_mesapd_coupling/partially_saturated_cells_method/SettlingSphere.cpp index 0964325f3..8144d2752 100644 --- a/tests/lbm_mesapd_coupling/partially_saturated_cells_method/SettlingSphere.cpp +++ b/tests/lbm_mesapd_coupling/partially_saturated_cells_method/SettlingSphere.cpp @@ -581,7 +581,7 @@ int main(int argc, char** argv) // add PDF field BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( - blocks, "pdf field (zyxf)", latticeModel, Vector3< real_t >(real_t(0)), real_t(1), uint_t(1), field::zyxf); + blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >(real_t(0)), real_t(1), uint_t(1), field::fzyx); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage< FlagField_T >(blocks, "flag field"); @@ -630,7 +630,7 @@ int main(int argc, char** argv) BlockDataID particleAndVolumeFractionFieldID = field::addToStorage< lbm_mesapd_coupling::psm::ParticleAndVolumeFractionField_T >( blocks, "particle and volume fraction field", - std::vector< lbm_mesapd_coupling::psm::ParticleAndVolumeFraction_T >(), field::zyxf, 0); + std::vector< lbm_mesapd_coupling::psm::ParticleAndVolumeFraction_T >(), field::fzyx, 0); lbm_mesapd_coupling::psm::ParticleAndVolumeFractionMapping particleMapping(blocks, accessor, sphereSelector, particleAndVolumeFractionFieldID, 4); particleMapping(); diff --git a/tests/lbm_mesapd_coupling/partially_saturated_cells_method/TorqueSphere.cpp b/tests/lbm_mesapd_coupling/partially_saturated_cells_method/TorqueSphere.cpp index 9b965c164..f0db14fe5 100644 --- a/tests/lbm_mesapd_coupling/partially_saturated_cells_method/TorqueSphere.cpp +++ b/tests/lbm_mesapd_coupling/partially_saturated_cells_method/TorqueSphere.cpp @@ -410,14 +410,14 @@ int main(int argc, char** argv) // add PDF field ( uInit = <0,0,0>, rhoInit = 1 ) BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( - blocks, "pdf field (zyxf)", latticeModel, Vector3< real_t >(real_c(0), real_c(0), real_c(0)), real_c(1), - uint_t(1), field::zyxf); + blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >(real_c(0), real_c(0), real_c(0)), real_c(1), + uint_t(1), field::fzyx); // add particle and volume fraction field BlockDataID particleAndVolumeFractionFieldID = field::addToStorage< lbm_mesapd_coupling::psm::ParticleAndVolumeFractionField_T >( blocks, "particle and volume fraction field", - std::vector< lbm_mesapd_coupling::psm::ParticleAndVolumeFraction_T >(), field::zyxf, 0); + std::vector< lbm_mesapd_coupling::psm::ParticleAndVolumeFraction_T >(), field::fzyx, 0); // map bodies and calculate solid volume fraction initially lbm_mesapd_coupling::psm::ParticleAndVolumeFractionMapping particleMapping( blocks, accessor, lbm_mesapd_coupling::RegularParticlesSelector(), particleAndVolumeFractionFieldID, 4); diff --git a/tests/lbm_mesapd_coupling/utility/InspectionProbe.cpp b/tests/lbm_mesapd_coupling/utility/InspectionProbe.cpp index c8c4d173e..d4602c46e 100644 --- a/tests/lbm_mesapd_coupling/utility/InspectionProbe.cpp +++ b/tests/lbm_mesapd_coupling/utility/InspectionProbe.cpp @@ -185,13 +185,13 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( lbm::collision_model::TRT::constructWithMagicNumber( real_t(1) ) ); - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_t(0) ), real_t(1), - uint_t(1), field::zyxf ); + uint_t(1), field::fzyx ); BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field" ); - BlockDataID particleFieldID = field::addToStorage<lbm_mesapd_coupling::ParticleField_T>( blocks, "particle field", accessor->getInvalidUid(), field::zyxf, FieldGhostLayers ); + BlockDataID particleFieldID = field::addToStorage<lbm_mesapd_coupling::ParticleField_T>( blocks, "particle field", accessor->getInvalidUid(), field::fzyx, FieldGhostLayers ); using BoundaryHandling_T = MyBoundaryHandling<ParticleAccessor_T>::Type; BlockDataID boundaryHandlingID = blocks->addStructuredBlockData< BoundaryHandling_T >(MyBoundaryHandling<ParticleAccessor_T>( flagFieldID, pdfFieldID, particleFieldID, accessor), "boundary handling" ); diff --git a/tests/pde/BoundaryTest.cpp b/tests/pde/BoundaryTest.cpp index df548787a..acc3c3963 100644 --- a/tests/pde/BoundaryTest.cpp +++ b/tests/pde/BoundaryTest.cpp @@ -295,12 +295,12 @@ int main( int argc, char** argv ) true, false, false, false ); - BlockDataID solId = field::addToStorage< Field_T >( blocks, "sol", real_t(0), field::zyxf, uint_t(1) ); - BlockDataID rId = field::addToStorage< Field_T >( blocks, "r", real_t(0), field::zyxf, uint_t(1) ); - BlockDataID dId = field::addToStorage< Field_T >( blocks, "d", real_t(0), field::zyxf, uint_t(1) ); - BlockDataID zId = field::addToStorage< Field_T >( blocks, "z", real_t(0), field::zyxf, uint_t(1) ); + BlockDataID solId = field::addToStorage< Field_T >( blocks, "sol", real_t(0), field::fzyx, uint_t(1) ); + BlockDataID rId = field::addToStorage< Field_T >( blocks, "r", real_t(0), field::fzyx, uint_t(1) ); + BlockDataID dId = field::addToStorage< Field_T >( blocks, "d", real_t(0), field::fzyx, uint_t(1) ); + BlockDataID zId = field::addToStorage< Field_T >( blocks, "z", real_t(0), field::fzyx, uint_t(1) ); - BlockDataID rhsId = field::addToStorage< Field_T >( blocks, "rhs", real_t(0), field::zyxf, uint_t(1) ); + BlockDataID rhsId = field::addToStorage< Field_T >( blocks, "rhs", real_t(0), field::fzyx, uint_t(1) ); initRHS( blocks, rhsId ); diff --git a/tests/pde/CGTest.cpp b/tests/pde/CGTest.cpp index a14832467..810811e69 100644 --- a/tests/pde/CGTest.cpp +++ b/tests/pde/CGTest.cpp @@ -148,14 +148,14 @@ int main( int argc, char** argv ) true, false, false, false ); - BlockDataID uId = field::addToStorage< PdeField_T >( blocks, "u", real_t(0), field::zyxf, uint_t(1) ); - BlockDataID rId = field::addToStorage< PdeField_T >( blocks, "r", real_t(0), field::zyxf, uint_t(1) ); - BlockDataID dId = field::addToStorage< PdeField_T >( blocks, "d", real_t(0), field::zyxf, uint_t(1) ); - BlockDataID zId = field::addToStorage< PdeField_T >( blocks, "z", real_t(0), field::zyxf, uint_t(1) ); + BlockDataID uId = field::addToStorage< PdeField_T >( blocks, "u", real_t(0), field::fzyx, uint_t(1) ); + BlockDataID rId = field::addToStorage< PdeField_T >( blocks, "r", real_t(0), field::fzyx, uint_t(1) ); + BlockDataID dId = field::addToStorage< PdeField_T >( blocks, "d", real_t(0), field::fzyx, uint_t(1) ); + BlockDataID zId = field::addToStorage< PdeField_T >( blocks, "z", real_t(0), field::fzyx, uint_t(1) ); initU( blocks, uId ); - BlockDataID fId = field::addToStorage< PdeField_T >( blocks, "f", real_t(0), field::zyxf, uint_t(1) ); + BlockDataID fId = field::addToStorage< PdeField_T >( blocks, "f", real_t(0), field::fzyx, uint_t(1) ); initF( blocks, fId ); diff --git a/tests/pde/JacobiTest.cpp b/tests/pde/JacobiTest.cpp index 2e65dc6ef..fda36b2f1 100644 --- a/tests/pde/JacobiTest.cpp +++ b/tests/pde/JacobiTest.cpp @@ -153,12 +153,12 @@ int main( int argc, char** argv ) true, false, false, false ); - BlockDataID srcId = field::addToStorage< PdeField_T >( blocks, "u (src)", real_t(0), field::zyxf, uint_t(1) ); - BlockDataID dstId = field::addToStorage< PdeField_T >( blocks, "u (dst)", real_t(0), field::zyxf, uint_t(1) ); + BlockDataID srcId = field::addToStorage< PdeField_T >( blocks, "u (src)", real_t(0), field::fzyx, uint_t(1) ); + BlockDataID dstId = field::addToStorage< PdeField_T >( blocks, "u (dst)", real_t(0), field::fzyx, uint_t(1) ); initU( blocks, srcId, dstId ); - BlockDataID fId = field::addToStorage< PdeField_T >( blocks, "f", real_t(0), field::zyxf, uint_t(1) ); + BlockDataID fId = field::addToStorage< PdeField_T >( blocks, "f", real_t(0), field::fzyx, uint_t(1) ); initF( blocks, fId ); diff --git a/tests/pde/MGConvergenceTest.cpp b/tests/pde/MGConvergenceTest.cpp index c5c66aae1..a7f3902d1 100644 --- a/tests/pde/MGConvergenceTest.cpp +++ b/tests/pde/MGConvergenceTest.cpp @@ -267,12 +267,12 @@ real_t runConvergenceConstStencil(const real_t xDomainSize, const real_t yDomain WALBERLA_LOG_RESULT_ON_ROOT("Discretization dx: " << dx << ", " << dy << ", " << dz); - BlockDataID uId = field::addToStorage< PdeField_T >( blocks, "u", real_t(0), field::zyxf, uint_t(1) ); + BlockDataID uId = field::addToStorage< PdeField_T >( blocks, "u", real_t(0), field::fzyx, uint_t(1) ); initU(blocks, uId); // initURect( blocks, uId ); - BlockDataID fId = field::addToStorage< PdeField_T >( blocks, "f", real_t(0), field::zyxf, uint_t(1) ); + BlockDataID fId = field::addToStorage< PdeField_T >( blocks, "f", real_t(0), field::fzyx, uint_t(1) ); SweepTimeloop timeloop( blocks, uint_t(1) ); diff --git a/tests/pde/MGTest.cpp b/tests/pde/MGTest.cpp index 9993de251..3ab49d9c2 100644 --- a/tests/pde/MGTest.cpp +++ b/tests/pde/MGTest.cpp @@ -187,11 +187,11 @@ int main( int argc, char** argv ) // run the main test - BlockDataID uId = field::addToStorage< PdeField_T >( blocks, "u", real_t(0), field::zyxf, uint_t(1) ); + BlockDataID uId = field::addToStorage< PdeField_T >( blocks, "u", real_t(0), field::fzyx, uint_t(1) ); initU( blocks, uId ); - BlockDataID fId = field::addToStorage< PdeField_T >( blocks, "f", real_t(0), field::zyxf, uint_t(1) ); + BlockDataID fId = field::addToStorage< PdeField_T >( blocks, "f", real_t(0), field::fzyx, uint_t(1) ); SweepTimeloop timeloop( blocks, uint_t(1) ); diff --git a/tests/pde/RBGSTest.cpp b/tests/pde/RBGSTest.cpp index 6417395db..a3d89f7c5 100644 --- a/tests/pde/RBGSTest.cpp +++ b/tests/pde/RBGSTest.cpp @@ -151,11 +151,11 @@ int main( int argc, char** argv ) true, false, false, false ); - BlockDataID uId = field::addToStorage< PdeField_T >( blocks, "u", real_t(0), field::zyxf, uint_t(1) ); + BlockDataID uId = field::addToStorage< PdeField_T >( blocks, "u", real_t(0), field::fzyx, uint_t(1) ); initU( blocks, uId ); - BlockDataID fId = field::addToStorage< PdeField_T >( blocks, "f", real_t(0), field::zyxf, uint_t(1) ); + BlockDataID fId = field::addToStorage< PdeField_T >( blocks, "f", real_t(0), field::fzyx, uint_t(1) ); initF( blocks, fId ); diff --git a/tests/pde/SORTest.cpp b/tests/pde/SORTest.cpp index 374aa0b7c..df1eedf6c 100644 --- a/tests/pde/SORTest.cpp +++ b/tests/pde/SORTest.cpp @@ -151,11 +151,11 @@ int main( int argc, char** argv ) true, false, false, false ); - BlockDataID uId = field::addToStorage< PdeField_T >( blocks, "u", real_t(0), field::zyxf, uint_t(1) ); + BlockDataID uId = field::addToStorage< PdeField_T >( blocks, "u", real_t(0), field::fzyx, uint_t(1) ); initU( blocks, uId ); - BlockDataID fId = field::addToStorage< PdeField_T >( blocks, "f", real_t(0), field::zyxf, uint_t(1) ); + BlockDataID fId = field::addToStorage< PdeField_T >( blocks, "f", real_t(0), field::fzyx, uint_t(1) ); initF( blocks, fId ); diff --git a/tests/pe_coupling/discrete_particle_methods/HinderedSettlingDynamicsDPM.cpp b/tests/pe_coupling/discrete_particle_methods/HinderedSettlingDynamicsDPM.cpp index 539cf5ed9..69a9220c9 100644 --- a/tests/pe_coupling/discrete_particle_methods/HinderedSettlingDynamicsDPM.cpp +++ b/tests/pe_coupling/discrete_particle_methods/HinderedSettlingDynamicsDPM.cpp @@ -935,20 +935,20 @@ int main( int argc, char **argv ) ////////////////////// // create force field - BlockDataID forceFieldID = field::addToStorage< Vec3Field_T >( blocks, "force field", Vector3<real_t>(real_t(0)), field::zyxf, FieldGhostLayers ); + BlockDataID forceFieldID = field::addToStorage< Vec3Field_T >( blocks, "force field", Vector3<real_t>(real_t(0)), field::fzyx, FieldGhostLayers ); - BlockDataID dragForceFieldID = field::addToStorage< Vec3Field_T >( blocks, "drag force field", Vector3<real_t>(real_t(0)), field::zyxf, FieldGhostLayers ); - BlockDataID amForceFieldID = field::addToStorage< Vec3Field_T >( blocks, "am force field", Vector3<real_t>(real_t(0)), field::zyxf, FieldGhostLayers ); - BlockDataID liftForceFieldID = field::addToStorage< Vec3Field_T >( blocks, "lift force field", Vector3<real_t>(real_t(0)), field::zyxf, FieldGhostLayers ); + BlockDataID dragForceFieldID = field::addToStorage< Vec3Field_T >( blocks, "drag force field", Vector3<real_t>(real_t(0)), field::fzyx, FieldGhostLayers ); + BlockDataID amForceFieldID = field::addToStorage< Vec3Field_T >( blocks, "am force field", Vector3<real_t>(real_t(0)), field::fzyx, FieldGhostLayers ); + BlockDataID liftForceFieldID = field::addToStorage< Vec3Field_T >( blocks, "lift force field", Vector3<real_t>(real_t(0)), field::fzyx, FieldGhostLayers ); // create omega field - BlockDataID omegaFieldID = field::addToStorage< ScalarField_T >( blocks, "omega field", real_t(0), field::zyxf, FieldGhostLayers ); + BlockDataID omegaFieldID = field::addToStorage< ScalarField_T >( blocks, "omega field", real_t(0), field::fzyx, FieldGhostLayers ); // create the lattice model LatticeModel_T latticeModel = LatticeModel_T( omegaFieldID, ForceModel_T( forceFieldID ) ); // add PDF field - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage( blocks, "pdf field (zyxf)", latticeModel, initialFluidVelocity, real_t(1), FieldGhostLayers, field::zyxf ); + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage( blocks, "pdf field (fzyx)", latticeModel, initialFluidVelocity, real_t(1), FieldGhostLayers, field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage< FlagField_T >( blocks, "flag field" ); @@ -957,30 +957,30 @@ int main( int argc, char **argv ) BlockDataID boundaryHandlingID = blocks->addStructuredBlockData< BoundaryHandling_T >( MyBoundaryHandling( flagFieldID, pdfFieldID ), "boundary handling" ); // field to store fluid velocity - BlockDataID velocityFieldID = field::addToStorage< Vec3Field_T >( blocks, "velocity field", initialFluidVelocity, field::zyxf, FieldGhostLayers ); - BlockDataID oldVelocityFieldID = field::addToStorage< Vec3Field_T >( blocks, "old velocity field", initialFluidVelocity, field::zyxf, FieldGhostLayers ); - BlockDataID swappedOldVelocityFieldID = field::addToStorage< Vec3Field_T >( blocks, "swapped old velocity field", initialFluidVelocity, field::zyxf, FieldGhostLayers ); + BlockDataID velocityFieldID = field::addToStorage< Vec3Field_T >( blocks, "velocity field", initialFluidVelocity, field::fzyx, FieldGhostLayers ); + BlockDataID oldVelocityFieldID = field::addToStorage< Vec3Field_T >( blocks, "old velocity field", initialFluidVelocity, field::fzyx, FieldGhostLayers ); + BlockDataID swappedOldVelocityFieldID = field::addToStorage< Vec3Field_T >( blocks, "swapped old velocity field", initialFluidVelocity, field::fzyx, FieldGhostLayers ); // create pressure field - BlockDataID pressureFieldID = field::addToStorage< ScalarField_T >( blocks, "pressure field", real_t(0), field::zyxf, FieldGhostLayers ); + BlockDataID pressureFieldID = field::addToStorage< ScalarField_T >( blocks, "pressure field", real_t(0), field::fzyx, FieldGhostLayers ); // create solid volume fraction field - BlockDataID svfFieldID = field::addToStorage< ScalarField_T >( blocks, "svf field", real_t(0), field::zyxf, FieldGhostLayers ); + BlockDataID svfFieldID = field::addToStorage< ScalarField_T >( blocks, "svf field", real_t(0), field::fzyx, FieldGhostLayers ); // field to store pressure gradient - BlockDataID pressureGradientFieldID = field::addToStorage< Vec3Field_T >( blocks, "pressure gradient field", Vector3<real_t>(real_c(0)), field::zyxf, FieldGhostLayers ); + BlockDataID pressureGradientFieldID = field::addToStorage< Vec3Field_T >( blocks, "pressure gradient field", Vector3<real_t>(real_c(0)), field::fzyx, FieldGhostLayers ); // field to store curl of fluid velocity - BlockDataID velocityCurlFieldID = field::addToStorage< Vec3Field_T >( blocks, "velocity curl field", Vector3<real_t>(real_c(0)), field::zyxf, FieldGhostLayers ); + BlockDataID velocityCurlFieldID = field::addToStorage< Vec3Field_T >( blocks, "velocity curl field", Vector3<real_t>(real_c(0)), field::fzyx, FieldGhostLayers ); // field to store velocity gradient - BlockDataID velocityGradientFieldID = field::addToStorage< TensorField_T >( blocks, "velocity gradient field", Matrix3<real_t>(real_c(0)), field::zyxf, FieldGhostLayers ); + BlockDataID velocityGradientFieldID = field::addToStorage< TensorField_T >( blocks, "velocity gradient field", Matrix3<real_t>(real_c(0)), field::fzyx, FieldGhostLayers ); // field to store gradient of stress tensor - BlockDataID stressTensorGradientFieldID = field::addToStorage< Vec3Field_T >( blocks, "stress tensor gradient field", Vector3<real_t>(real_c(0)), field::zyxf, FieldGhostLayers ); + BlockDataID stressTensorGradientFieldID = field::addToStorage< Vec3Field_T >( blocks, "stress tensor gradient field", Vector3<real_t>(real_c(0)), field::fzyx, FieldGhostLayers ); // field to store time derivative of fluid velocity - BlockDataID timeDerivativeVelocityFieldID = field::addToStorage< Vec3Field_T >( blocks, "time derivative velocity field", Vector3<real_t>(real_c(0)), field::zyxf, FieldGhostLayers ); + BlockDataID timeDerivativeVelocityFieldID = field::addToStorage< Vec3Field_T >( blocks, "time derivative velocity field", Vector3<real_t>(real_c(0)), field::fzyx, FieldGhostLayers ); // communication schemes pe_coupling::discrete_particle_methods::CombinedReductionFieldCommunication<Vec3Field_T> forceComm( blocks, forceFieldID ); diff --git a/tests/pe_coupling/discrete_particle_methods/SphereWallCollisionBehaviorDPM.cpp b/tests/pe_coupling/discrete_particle_methods/SphereWallCollisionBehaviorDPM.cpp index c86d7f1b8..97515a3e3 100644 --- a/tests/pe_coupling/discrete_particle_methods/SphereWallCollisionBehaviorDPM.cpp +++ b/tests/pe_coupling/discrete_particle_methods/SphereWallCollisionBehaviorDPM.cpp @@ -738,20 +738,20 @@ int main( int argc, char **argv ) ////////////////////// // create force field - BlockDataID forceFieldID = field::addToStorage< Vec3Field_T >( blocks, "force field", Vector3<real_t>(real_t(0)), field::zyxf, FieldGhostLayers ); + BlockDataID forceFieldID = field::addToStorage< Vec3Field_T >( blocks, "force field", Vector3<real_t>(real_t(0)), field::fzyx, FieldGhostLayers ); - BlockDataID dragForceFieldID = field::addToStorage< Vec3Field_T >( blocks, "drag force field", Vector3<real_t>(real_t(0)), field::zyxf, FieldGhostLayers ); - BlockDataID amForceFieldID = field::addToStorage< Vec3Field_T >( blocks, "am force field", Vector3<real_t>(real_t(0)), field::zyxf, FieldGhostLayers ); - BlockDataID liftForceFieldID = field::addToStorage< Vec3Field_T >( blocks, "lift force field", Vector3<real_t>(real_t(0)), field::zyxf, FieldGhostLayers ); + BlockDataID dragForceFieldID = field::addToStorage< Vec3Field_T >( blocks, "drag force field", Vector3<real_t>(real_t(0)), field::fzyx, FieldGhostLayers ); + BlockDataID amForceFieldID = field::addToStorage< Vec3Field_T >( blocks, "am force field", Vector3<real_t>(real_t(0)), field::fzyx, FieldGhostLayers ); + BlockDataID liftForceFieldID = field::addToStorage< Vec3Field_T >( blocks, "lift force field", Vector3<real_t>(real_t(0)), field::fzyx, FieldGhostLayers ); // create omega field - BlockDataID omegaFieldID = field::addToStorage< ScalarField_T >( blocks, "omega field", real_t(0), field::zyxf, FieldGhostLayers ); + BlockDataID omegaFieldID = field::addToStorage< ScalarField_T >( blocks, "omega field", real_t(0), field::fzyx, FieldGhostLayers ); // create the lattice model LatticeModel_T latticeModel = LatticeModel_T( omegaFieldID, ForceModel_T( forceFieldID ) ); // add PDF field - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage( blocks, "pdf field (zyxf)", latticeModel, Vector3<real_t>(0), real_t(1), FieldGhostLayers, field::zyxf ); + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage( blocks, "pdf field (fzyx)", latticeModel, Vector3<real_t>(0), real_t(1), FieldGhostLayers, field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage< FlagField_T >( blocks, "flag field" ); @@ -760,29 +760,29 @@ int main( int argc, char **argv ) BlockDataID boundaryHandlingID = blocks->addStructuredBlockData< BoundaryHandling_T >( MyBoundaryHandling( flagFieldID, pdfFieldID ), "boundary handling" ); // field to store fluid velocity - BlockDataID velocityFieldID = field::addToStorage< Vec3Field_T >( blocks, "velocity field", Vector3<real_t>(0), field::zyxf, FieldGhostLayers ); - BlockDataID swappedOldVelocityFieldID = field::addToStorage< Vec3Field_T >( blocks, "swapped old velocity field", Vector3<real_t>(0), field::zyxf, FieldGhostLayers ); + BlockDataID velocityFieldID = field::addToStorage< Vec3Field_T >( blocks, "velocity field", Vector3<real_t>(0), field::fzyx, FieldGhostLayers ); + BlockDataID swappedOldVelocityFieldID = field::addToStorage< Vec3Field_T >( blocks, "swapped old velocity field", Vector3<real_t>(0), field::fzyx, FieldGhostLayers ); // create pressure field - BlockDataID pressureFieldID = field::addToStorage< ScalarField_T >( blocks, "pressure field", real_t(0), field::zyxf, FieldGhostLayers ); + BlockDataID pressureFieldID = field::addToStorage< ScalarField_T >( blocks, "pressure field", real_t(0), field::fzyx, FieldGhostLayers ); // create solid volume fraction field - BlockDataID svfFieldID = field::addToStorage< ScalarField_T >( blocks, "svf field", real_t(0), field::zyxf, FieldGhostLayers ); + BlockDataID svfFieldID = field::addToStorage< ScalarField_T >( blocks, "svf field", real_t(0), field::fzyx, FieldGhostLayers ); // field to store pressure gradient - BlockDataID pressureGradientFieldID = field::addToStorage< Vec3Field_T >( blocks, "pressure gradient field", Vector3<real_t>(real_c(0)), field::zyxf, FieldGhostLayers ); + BlockDataID pressureGradientFieldID = field::addToStorage< Vec3Field_T >( blocks, "pressure gradient field", Vector3<real_t>(real_c(0)), field::fzyx, FieldGhostLayers ); // field to store curl of fluid velocity - BlockDataID velocityCurlFieldID = field::addToStorage< Vec3Field_T >( blocks, "velocity curl field", Vector3<real_t>(real_c(0)), field::zyxf, FieldGhostLayers ); + BlockDataID velocityCurlFieldID = field::addToStorage< Vec3Field_T >( blocks, "velocity curl field", Vector3<real_t>(real_c(0)), field::fzyx, FieldGhostLayers ); // field to store velocity gradient - BlockDataID velocityGradientFieldID = field::addToStorage< TensorField_T >( blocks, "velocity gradient field", Matrix3<real_t>(real_c(0)), field::zyxf, FieldGhostLayers ); + BlockDataID velocityGradientFieldID = field::addToStorage< TensorField_T >( blocks, "velocity gradient field", Matrix3<real_t>(real_c(0)), field::fzyx, FieldGhostLayers ); // field to store gradient of stress tensor - BlockDataID stressTensorGradientFieldID = field::addToStorage< Vec3Field_T >( blocks, "stress tensor gradient field", Vector3<real_t>(real_c(0)), field::zyxf, FieldGhostLayers ); + BlockDataID stressTensorGradientFieldID = field::addToStorage< Vec3Field_T >( blocks, "stress tensor gradient field", Vector3<real_t>(real_c(0)), field::fzyx, FieldGhostLayers ); // field to store time derivative of fluid velocity - BlockDataID timeDerivativeVelocityFieldID = field::addToStorage< Vec3Field_T >( blocks, "time derivative velocity field", Vector3<real_t>(real_c(0)), field::zyxf, FieldGhostLayers ); + BlockDataID timeDerivativeVelocityFieldID = field::addToStorage< Vec3Field_T >( blocks, "time derivative velocity field", Vector3<real_t>(real_c(0)), field::fzyx, FieldGhostLayers ); // communication schemes pe_coupling::discrete_particle_methods::CombinedReductionFieldCommunication<Vec3Field_T> forceComm( blocks, forceFieldID ); diff --git a/tests/pe_coupling/momentum_exchange_method/BodyAtBlockBoarderCheck.cpp b/tests/pe_coupling/momentum_exchange_method/BodyAtBlockBoarderCheck.cpp index 5b07af01c..397983b41 100644 --- a/tests/pe_coupling/momentum_exchange_method/BodyAtBlockBoarderCheck.cpp +++ b/tests/pe_coupling/momentum_exchange_method/BodyAtBlockBoarderCheck.cpp @@ -308,15 +308,15 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( lbm::collision_model::TRT::constructWithMagicNumber( omega ) ); // add PDF field ( uInit = <0.1,0,0>, rhoInit = 1 ) - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, referenceVelocity, real_c(1), - FieldGhostLayers, field::zyxf ); + FieldGhostLayers, field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field", FieldGhostLayers ); // add body field - BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::zyxf, FieldGhostLayers ); + BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::fzyx, FieldGhostLayers ); // add boundary handling & initialize outer domain boundaries BlockDataID boundaryHandlingID = blocks->addStructuredBlockData< BoundaryHandling_T >( diff --git a/tests/pe_coupling/momentum_exchange_method/BodyMappingTest.cpp b/tests/pe_coupling/momentum_exchange_method/BodyMappingTest.cpp index b86a57b5f..175f657d7 100644 --- a/tests/pe_coupling/momentum_exchange_method/BodyMappingTest.cpp +++ b/tests/pe_coupling/momentum_exchange_method/BodyMappingTest.cpp @@ -448,15 +448,15 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( omega ); // add PDF field ( uInit = <0.1,0,0>, rhoInit = 1 ) - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3<real_t>(real_t(0)), real_t(1), - FieldGhostLayers, field::zyxf ); + FieldGhostLayers, field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field", FieldGhostLayers ); // add body field - BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::zyxf, FieldGhostLayers ); + BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::fzyx, FieldGhostLayers ); // add boundary handling BlockDataID boundaryHandlingID = blocks->addStructuredBlockData< BoundaryHandling_T >(MyBoundaryHandling( flagFieldID, pdfFieldID, bodyFieldID ), "boundary handling" ); diff --git a/tests/pe_coupling/momentum_exchange_method/DragForceSphereMEM.cpp b/tests/pe_coupling/momentum_exchange_method/DragForceSphereMEM.cpp index 0320375a4..a3ab539d7 100644 --- a/tests/pe_coupling/momentum_exchange_method/DragForceSphereMEM.cpp +++ b/tests/pe_coupling/momentum_exchange_method/DragForceSphereMEM.cpp @@ -491,19 +491,19 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( lbm::collision_model::TRT::constructWithMagicNumber( omega ), ForceModel_T( Vector3<real_t> ( setup.extForce, 0, 0 ) ) ); // add PDF field ( uInit = <0,0,0>, rhoInit = 1 ) - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_c(0), real_c(0), real_c(0) ), real_c(1), - uint_t(1), field::zyxf ); + uint_t(1), field::fzyx ); // add PDF field, for MR boundary condition only, has to be same layout as pdfField BlockDataID pdfFieldPreColID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, " pre collision pdf field", latticeModel, Vector3< real_t >( real_c(0), real_c(0), real_c(0) ), real_c(1), - uint_t(1), field::zyxf ); + uint_t(1), field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field" ); // add body field - BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::zyxf ); + BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::fzyx ); // add boundary handling & initialize outer domain boundaries BlockDataID boundaryHandlingID = blocks->addStructuredBlockData< BoundaryHandling_T >( diff --git a/tests/pe_coupling/momentum_exchange_method/DragForceSphereMEMRefinement.cpp b/tests/pe_coupling/momentum_exchange_method/DragForceSphereMEMRefinement.cpp index 9184f1f11..226127466 100644 --- a/tests/pe_coupling/momentum_exchange_method/DragForceSphereMEMRefinement.cpp +++ b/tests/pe_coupling/momentum_exchange_method/DragForceSphereMEMRefinement.cpp @@ -536,15 +536,15 @@ int main( int argc, char **argv ) lbm::force_model::SimpleConstant( Vector3<real_t> ( setup.extForce, 0, 0 ) ) ); // add PDF field ( uInit = <0,0,0>, rhoInit = 1 ) - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_c(0), real_c(0), real_c(0) ), real_c(1), - FieldGhostLayers, field::zyxf ); + FieldGhostLayers, field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field", FieldGhostLayers ); // add body field - BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::zyxf, FieldGhostLayers ); + BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::fzyx, FieldGhostLayers ); // add boundary handling & initialize outer domain boundaries BlockDataID boundaryHandlingID = blocks->addStructuredBlockData< BoundaryHandling_T >( diff --git a/tests/pe_coupling/momentum_exchange_method/GlobalBodyAsBoundaryMEMStaticRefinement.cpp b/tests/pe_coupling/momentum_exchange_method/GlobalBodyAsBoundaryMEMStaticRefinement.cpp index 5cf642886..67a3ce68c 100644 --- a/tests/pe_coupling/momentum_exchange_method/GlobalBodyAsBoundaryMEMStaticRefinement.cpp +++ b/tests/pe_coupling/momentum_exchange_method/GlobalBodyAsBoundaryMEMStaticRefinement.cpp @@ -372,15 +372,15 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( lbm::collision_model::TRT::constructWithMagicNumber( real_t(1) / relaxationTime, lbm::collision_model::TRT::threeSixteenth, finestLevel ) ); // add PDF field - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_t(0) ), real_t(1), - FieldGhostLayers, field::zyxf ); + FieldGhostLayers, field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field", FieldGhostLayers ); // add body field - BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::zyxf, FieldGhostLayers ); + BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::fzyx, FieldGhostLayers ); // add boundary handling BlockDataID boundaryHandlingID = blocks->addStructuredBlockData< BoundaryHandling_T >( MyBoundaryHandling( flagFieldID, pdfFieldID, bodyFieldID ), "boundary handling" ); diff --git a/tests/pe_coupling/momentum_exchange_method/LubricationCorrectionMEM.cpp b/tests/pe_coupling/momentum_exchange_method/LubricationCorrectionMEM.cpp index 657eae0b7..4b0569bce 100644 --- a/tests/pe_coupling/momentum_exchange_method/LubricationCorrectionMEM.cpp +++ b/tests/pe_coupling/momentum_exchange_method/LubricationCorrectionMEM.cpp @@ -891,15 +891,15 @@ int main( int argc, char **argv ) BlockDataID pdfFieldID = useFZYX ? lbm::addPdfFieldToStorage( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_t(0), real_t(0), real_t(0) ), real_t(1), uint_t(1), field::fzyx ) : - lbm::addPdfFieldToStorage( blocks, "pdf field (zyxf)", latticeModel, + lbm::addPdfFieldToStorage( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_t(0), real_t(0), real_t(0) ), real_t(1), - uint_t(1), field::zyxf ); + uint_t(1), field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field" ); // add body field - BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::zyxf ); + BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::fzyx ); // add boundary handling & initialize outer domain boundaries (moving walls on the front, back, top, and bottom plane) BlockDataID boundaryHandlingID; diff --git a/tests/pe_coupling/momentum_exchange_method/PeriodicParticleChannelMEM.cpp b/tests/pe_coupling/momentum_exchange_method/PeriodicParticleChannelMEM.cpp index 41ebf9d9d..3243b83eb 100644 --- a/tests/pe_coupling/momentum_exchange_method/PeriodicParticleChannelMEM.cpp +++ b/tests/pe_coupling/momentum_exchange_method/PeriodicParticleChannelMEM.cpp @@ -475,15 +475,15 @@ int main( int argc, char **argv ) BlockDataID pdfFieldID = useFZYX ? lbm::addPdfFieldToStorage( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( velocity, real_t(0), real_t(0) ), real_t(1), uint_t(1), field::fzyx ) : - lbm::addPdfFieldToStorage( blocks, "pdf field (zyxf)", latticeModel, + lbm::addPdfFieldToStorage( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( velocity, real_t(0), real_t(0) ), real_t(1), - uint_t(1), field::zyxf ); + uint_t(1), field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field" ); // add body field - BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::zyxf ); + BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::fzyx ); // add boundary handling & initialize outer domain boundaries (moving walls on the front, back, top, and bottom plane) BlockDataID boundaryHandlingID = blocks->addStructuredBlockData< BoundaryHandling_T >( diff --git a/tests/pe_coupling/momentum_exchange_method/SegreSilberbergMEM.cpp b/tests/pe_coupling/momentum_exchange_method/SegreSilberbergMEM.cpp index 91d0dbc01..9e207e2b0 100644 --- a/tests/pe_coupling/momentum_exchange_method/SegreSilberbergMEM.cpp +++ b/tests/pe_coupling/momentum_exchange_method/SegreSilberbergMEM.cpp @@ -582,14 +582,14 @@ int main( int argc, char **argv ) lbm::force_model::SimpleConstant( Vector3<real_t> ( setup.forcing, real_t(0), real_t(0) ) ) ); // add PDF field - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_t(0) ), real_t(1), - uint_t(1), field::zyxf ); + uint_t(1), field::fzyx ); // add PDF field, for MR boundary condition only BlockDataID pdfFieldPreColID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, " pre collision pdf field", latticeModel, Vector3< real_t >( real_t(0) ), real_t(1), - uint_t(1), field::zyxf ); + uint_t(1), field::fzyx ); // initialize already with the Poiseuille flow profile initPDF( blocks, pdfFieldID, setup); @@ -598,7 +598,7 @@ int main( int argc, char **argv ) BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field" ); // add body field - BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::zyxf ); + BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::fzyx ); // add boundary handling & initialize outer domain boundaries BlockDataID boundaryHandlingID = blocks->addStructuredBlockData< BoundaryHandling_T >( diff --git a/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEM.cpp b/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEM.cpp index 706422bc5..75e53c1b5 100644 --- a/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEM.cpp +++ b/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEM.cpp @@ -504,14 +504,14 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( lbm::collision_model::TRT::constructWithMagicNumber( real_t(1) / relaxationTime ) ); // add PDF field - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_t(0) ), real_t(1), - uint_t(1), field::zyxf ); + uint_t(1), field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field" ); // add body field - BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::zyxf ); + BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::fzyx ); // add boundary handling BlockDataID boundaryHandlingID = blocks->addStructuredBlockData< BoundaryHandling_T >( MyBoundaryHandling( flagFieldID, pdfFieldID, bodyFieldID ), "boundary handling" ); diff --git a/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEMDynamicRefinement.cpp b/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEMDynamicRefinement.cpp index 47ccab583..ffe4a0436 100644 --- a/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEMDynamicRefinement.cpp +++ b/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEMDynamicRefinement.cpp @@ -631,14 +631,14 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( lbm::collision_model::TRT::constructWithMagicNumber( real_t(1) / relaxationTime, lbm::collision_model::TRT::threeSixteenth, finestLevel ) ); // add PDF field - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_t(0) ), real_t(1), - FieldGhostLayers, field::zyxf ); + FieldGhostLayers, field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field", FieldGhostLayers ); // add body field - BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::zyxf, FieldGhostLayers ); + BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::fzyx, FieldGhostLayers ); // add boundary handling & initialize outer domain boundaries BlockDataID boundaryHandlingID = blocks->addBlockData( make_shared< MyBoundaryHandling >( blocks, flagFieldID, pdfFieldID, bodyFieldID ), diff --git a/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEMStaticRefinement.cpp b/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEMStaticRefinement.cpp index d3952bab9..926e9003d 100644 --- a/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEMStaticRefinement.cpp +++ b/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEMStaticRefinement.cpp @@ -573,14 +573,14 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( lbm::collision_model::TRT::constructWithMagicNumber( real_t(1) / relaxationTime, lbm::collision_model::TRT::threeSixteenth, finestLevel ) ); // add PDF field - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_t(0) ), real_t(1), - FieldGhostLayers, field::zyxf ); + FieldGhostLayers, field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field", FieldGhostLayers ); // add body field - BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::zyxf, FieldGhostLayers ); + BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::fzyx, FieldGhostLayers ); // add boundary handling BlockDataID boundaryHandlingID = blocks->addStructuredBlockData< BoundaryHandling_T >( MyBoundaryHandling( flagFieldID, pdfFieldID, bodyFieldID ), "boundary handling" ); diff --git a/tests/pe_coupling/momentum_exchange_method/SquirmerTest.cpp b/tests/pe_coupling/momentum_exchange_method/SquirmerTest.cpp index 1fca0831a..7c02a1f60 100644 --- a/tests/pe_coupling/momentum_exchange_method/SquirmerTest.cpp +++ b/tests/pe_coupling/momentum_exchange_method/SquirmerTest.cpp @@ -314,14 +314,14 @@ int main(int argc, char **argv) { LatticeModel_T latticeModel = LatticeModel_T(lbm::collision_model::TRT::constructWithMagicNumber(omega)); // add PDF field ( uInit = <0,0,0>, rhoInit = 1 ) - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage<LatticeModel_T>(blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage<LatticeModel_T>(blocks, "pdf field (fzyx)", latticeModel, FieldGhostLayers); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>(blocks, "flag field"); // add body field - BlockDataID bodyFieldID = field::addToStorage<PeBodyField_T>(blocks, "body field", nullptr, field::zyxf); + BlockDataID bodyFieldID = field::addToStorage<PeBodyField_T>(blocks, "body field", nullptr, field::fzyx); // add boundary handling & initialize outer domain boundaries BlockDataID boundaryHandlingID = blocks->addStructuredBlockData<BoundaryHandling_T>( diff --git a/tests/pe_coupling/momentum_exchange_method/TaylorCouetteFlowMEM.cpp b/tests/pe_coupling/momentum_exchange_method/TaylorCouetteFlowMEM.cpp index 2fad6814a..ec22f4445 100644 --- a/tests/pe_coupling/momentum_exchange_method/TaylorCouetteFlowMEM.cpp +++ b/tests/pe_coupling/momentum_exchange_method/TaylorCouetteFlowMEM.cpp @@ -324,13 +324,13 @@ int main( int argc, char **argv ) // add pdf field LatticeModel_T latticeModel = LatticeModel_T( lbm::collision_model::TRT::constructWithMagicNumber( omega ) ); - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage( blocks, "pdf field (zyxf)", latticeModel, Vector3< real_t >( real_t(0) ), real_t(1), uint_t(1), field::zyxf ); + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_t(0) ), real_t(1), uint_t(1), field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field" ); // add body field - BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::zyxf ); + BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::fzyx ); // add boundary handling & initialize outer domain boundaries (moving walls on the front, back, top, and bottom plane) BlockDataID boundaryHandlingID = blocks->addStructuredBlockData< BoundaryHandling_T >( diff --git a/tests/pe_coupling/momentum_exchange_method/TorqueSphereMEM.cpp b/tests/pe_coupling/momentum_exchange_method/TorqueSphereMEM.cpp index 0dc2dba16..5807b2ca7 100644 --- a/tests/pe_coupling/momentum_exchange_method/TorqueSphereMEM.cpp +++ b/tests/pe_coupling/momentum_exchange_method/TorqueSphereMEM.cpp @@ -441,20 +441,20 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( lbm::collision_model::TRT::constructWithMagicNumber( omega ) ); // add PDF field ( uInit = <0,0,0>, rhoInit = 1 ) - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_c(0), real_c(0), real_c(0) ), real_c(1), - uint_t(1), field::zyxf ); + uint_t(1), field::fzyx ); // add PDF field, for MR boundary condition only BlockDataID pdfFieldPreColID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, " pre collision pdf field", latticeModel, Vector3< real_t >( real_c(0), real_c(0), real_c(0) ), real_c(1), - uint_t(1), field::zyxf ); + uint_t(1), field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field" ); // add body field - BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::zyxf ); + BlockDataID bodyFieldID = field::addToStorage<BodyField_T>( blocks, "body field", nullptr, field::fzyx ); // add boundary handling & initialize outer domain boundaries BlockDataID boundaryHandlingID = blocks->addStructuredBlockData< BoundaryHandling_T >( diff --git a/tests/pe_coupling/partially_saturated_cells_method/DragForceSpherePSM.cpp b/tests/pe_coupling/partially_saturated_cells_method/DragForceSpherePSM.cpp index 24902900f..b1b8d3bd6 100644 --- a/tests/pe_coupling/partially_saturated_cells_method/DragForceSpherePSM.cpp +++ b/tests/pe_coupling/partially_saturated_cells_method/DragForceSpherePSM.cpp @@ -427,13 +427,13 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( omega, ForceModel_T( Vector3<real_t> ( setup.extForce, 0, 0 ) ) ); // add PDF field ( uInit = <0,0,0>, rhoInit = 1 ) - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_c(0), real_c(0), real_c(0) ), real_c(1), - uint_t(1), field::zyxf ); + uint_t(1), field::fzyx ); // add body and volume fraction field BlockDataID bodyAndVolumeFractionFieldID = field::addToStorage< BodyAndVolumeFractionField_T >( blocks, "body and volume fraction field", - std::vector<BodyAndVolumeFraction_T>(), field::zyxf, 0 ); + std::vector<BodyAndVolumeFraction_T>(), field::fzyx, 0 ); // map bodies and calculate solid volume fraction initially pe_coupling::BodyAndVolumeFractionMapping bodyMapping( blocks, globalBodyStorage, bodyStorageID, bodyAndVolumeFractionFieldID ); diff --git a/tests/pe_coupling/partially_saturated_cells_method/DragForceSpherePSMRefinement.cpp b/tests/pe_coupling/partially_saturated_cells_method/DragForceSpherePSMRefinement.cpp index d5444ab41..4793ca275 100644 --- a/tests/pe_coupling/partially_saturated_cells_method/DragForceSpherePSMRefinement.cpp +++ b/tests/pe_coupling/partially_saturated_cells_method/DragForceSpherePSMRefinement.cpp @@ -540,16 +540,16 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( omega, lbm::force_model::SimpleConstant( Vector3<real_t> ( setup.extForce, 0, 0 ) ) ); // add PDF field ( uInit = <0,0,0>, rhoInit = 1 ) - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_c(0), real_c(0), real_c(0) ), real_c(1), - FieldGhostLayers, field::zyxf ); + FieldGhostLayers, field::fzyx ); // add flag field BlockDataID flagFieldID = field::addFlagFieldToStorage<FlagField_T>( blocks, "flag field", FieldGhostLayers ); // add body and volume fraction field BlockDataID bodyAndVolumeFractionFieldID = field::addToStorage< BodyAndVolumeFractionField_T >( blocks, "body and volume fraction field", - std::vector<BodyAndVolumeFraction_T>(), field::zyxf, FieldGhostLayers ); + std::vector<BodyAndVolumeFraction_T>(), field::fzyx, FieldGhostLayers ); // add boundary handling & initialize outer domain boundaries BlockDataID boundaryHandlingID = blocks->addStructuredBlockData< BoundaryHandling_T >( diff --git a/tests/pe_coupling/partially_saturated_cells_method/SegreSilberbergPSM.cpp b/tests/pe_coupling/partially_saturated_cells_method/SegreSilberbergPSM.cpp index 5b256da44..48a499195 100644 --- a/tests/pe_coupling/partially_saturated_cells_method/SegreSilberbergPSM.cpp +++ b/tests/pe_coupling/partially_saturated_cells_method/SegreSilberbergPSM.cpp @@ -531,9 +531,9 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( omega, lbm::force_model::SimpleConstant( Vector3<real_t> ( setup.forcing, real_c(0), real_c(0) ) ) ); // add PDF field - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_c(0), real_c(0), real_c(0) ), real_c(1), - uint_t(1), field::zyxf ); + uint_t(1), field::fzyx ); // initialize already with the Poiseuille flow profile initPDF( blocks, pdfFieldID, setup); @@ -547,7 +547,7 @@ int main( int argc, char **argv ) // add body and volume fraction field BlockDataID bodyAndVolumeFractionFieldID = field::addToStorage< BodyAndVolumeFractionField_T >( blocks, "body and volume fraction field", - std::vector<BodyAndVolumeFraction_T>(), field::zyxf, 0 ); + std::vector<BodyAndVolumeFraction_T>(), field::fzyx, 0 ); // map bodies and calculate solid volume fraction initially pe_coupling::BodyAndVolumeFractionMapping bodyMapping( blocks, globalBodyStorage, bodyStorageID, bodyAndVolumeFractionFieldID, pe_coupling::selectRegularBodies ); bodyMapping(); diff --git a/tests/pe_coupling/partially_saturated_cells_method/TorqueSpherePSM.cpp b/tests/pe_coupling/partially_saturated_cells_method/TorqueSpherePSM.cpp index cd72e01bd..1065fce50 100644 --- a/tests/pe_coupling/partially_saturated_cells_method/TorqueSpherePSM.cpp +++ b/tests/pe_coupling/partially_saturated_cells_method/TorqueSpherePSM.cpp @@ -376,13 +376,13 @@ int main( int argc, char **argv ) LatticeModel_T latticeModel = LatticeModel_T( omega ); // add PDF field ( uInit = <0,0,0>, rhoInit = 1 ) - BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, + BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (fzyx)", latticeModel, Vector3< real_t >( real_c(0), real_c(0), real_c(0) ), real_c(1), - uint_t(1), field::zyxf ); + uint_t(1), field::fzyx ); // add body and volume fraction field BlockDataID bodyAndVolumeFractionFieldID = field::addToStorage< BodyAndVolumeFractionField_T >( blocks, "body and volume fraction field", - std::vector<BodyAndVolumeFraction_T>(), field::zyxf, 0 ); + std::vector<BodyAndVolumeFraction_T>(), field::fzyx, 0 ); // map bodies and calculate solid volume fraction initially pe_coupling::BodyAndVolumeFractionMapping bodyMapping( blocks, globalBodyStorage, bodyStorageID, bodyAndVolumeFractionFieldID ); bodyMapping(); -- GitLab