|
flow 1.3.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
#include <mpi.h>#include <cmath>#include <cstdio>#include <cstring>#include <Kokkos_Core.hpp>#include <stdexcept>#include <string>#include <vector>#include "flow_ibm.hpp"#include "peclet/core/common/types.hpp"#include "peclet/core/decomp/block_decomposer.hpp"Go to the source code of this file.
Functions | |
| static std::vector< double > | blobs () |
| static std::vector< double > | slice (const std::vector< double > &g, int ox, int oy, int oz, int lnx, int lny, int lnz) |
| static void | build (IbmSolver &s, std::size_t cells) |
| static void | configure (IbmSolver &s, const std::vector< double > &forceLocal) |
| static std::vector< double > | gatherGlobal (const std::vector< double > &local, int ox, int oy, int oz, int lnx, int lny, int lnz, int rank, int size) |
| static double | maxAbsDiff (const std::vector< double > &a, const std::vector< double > &b) |
| static double | maxAbs (const std::vector< double > &a) |
| static double | mean (const std::vector< double > &a) |
| int | main (int argc, char **argv) |
Variables | |
| static constexpr int | N = 32 |
| static constexpr int | STEPS = 3 |
| static constexpr std::size_t | GCELLS = (std::size_t)N * N * N |
| static constexpr double | U_SUP = 0.02 |
Definition at line 46 of file test_superficial_velocity_mpi.cpp.
Referenced by main().
|
static |
Definition at line 61 of file test_superficial_velocity_mpi.cpp.
References N.
Referenced by main().
Definition at line 73 of file test_superficial_velocity_mpi.cpp.
References build(), peclet::flow::Solver< Grid >::setDomainBc(), and peclet::flow::Solver< Grid >::setPressureGeometry().
Definition at line 78 of file test_superficial_velocity_mpi.cpp.
References peclet::flow::Solver< Grid >::enableCellForce(), peclet::flow::Solver< Grid >::setBodyForce(), peclet::flow::Solver< Grid >::setDt(), peclet::flow::Solver< Grid >::setField(), peclet::flow::Solver< Grid >::setMu(), peclet::flow::Solver< Grid >::setPressurePcg(), and peclet::flow::Solver< Grid >::setRho().
Referenced by main().
|
static |
Definition at line 88 of file test_superficial_velocity_mpi.cpp.
Referenced by main().
|
static |
Definition at line 125 of file test_superficial_velocity_mpi.cpp.
Referenced by main().
Definition at line 135 of file test_superficial_velocity_mpi.cpp.
Referenced by main().
Definition at line 141 of file test_superficial_velocity_mpi.cpp.
Referenced by vof_scriven::_mdot_scene(), study_avg_velocity_spheres::amr_worker(), mg_coarse_wall::bicgstab_its(), mg_coarse_wall::build_hierarchy(), vof_scriven::carry_probe(), precision_ab::case_contrast(), precision_ab::case_perm(), precision_ab::case_porous(), precision_ab::case_zh(), dvd_cavity::cavity(), anderson_rev1_probes::cmd_certify(), anderson_rev1_probes::cmd_phase_a(), pocket_mask_probe::cmd_run(), anderson_rev1_probes::cmd_slowmode(), mg_advection::contraction(), mg_coarse_wall::contraction(), vof_scriven::cylinder_colour_chunked(), vof_profile::cylinder_fractions(), vof_surface_tension::cylinder_fractions(), collocated_neutral_probe::diag(), staggered_zh_ghostproj::drag(), collocated_zh_ghostproj::drag(), zh_collocated_gap::drag(), collocated_zh_embed::drag(), collocated_zh_embed6::drag(), collocated_zh_ab::drag(), collocated_zh_hybrid::drag(), staggered_zh_ghostproj_modes::drag(), collocated_zh_schemes::drag(), tracers::est_fpt(), staggered_zh_exact_norms::exact_openness(), fv_operator_truncation::face_open(), fv_wallflux_apriori::face_openness(), micromodel_2d::front_stats(), vof_cutcell::g5(), wall_transform_gate::gate_b(), vof_surface_tension::gate_lamb(), mg_advection::hierarchy(), vof_scriven::initial_temperature(), mg_advection::krylov_its(), anderson_oracle::main(), pocket_pressure_probe::main(), imbibition_packing::main(), micromodel_2d::main(), vof_channel_18::main(), main(), collocated_s1_reconciliation::march(), moving_step_bench::march(), collocated_neutral_probe::march(), flatwall_displacement::march(), peclet::flow::meanSubtractCell(), anderson_synthetic_maps.LinearMapSolver::monitor(), anderson_synthetic_maps.LinearMapSolver::monitor_exact(), staggered_zh_exact_norms::norms(), pocket_pressure_probe::outputs(), verify_velocity_mg_staircase_packing_sdflow::packing_sdf(), rcp_permeability_ab::permeability(), vof_scriven::plane_colour(), vof_scriven::plane_colour_periodic(), micromodel_2d::posts(), mg_advection::precond(), Reduce::removeMean(), peclet::flow::FlowReference::removeMean(), peclet::flow::ScalarMG::removeMean(), peclet::flow::CutcellMG::removeMean(), DistMG::removeMean(), peclet::flow::MgPoisson::removeMean(), peclet::flow::ScalarMG::removeMeanTwo(), galilean_gate::run(), three_solver_study::run(), verify_chebyshev_sdflow::run(), duct_re_gate::run(), flatwall_displacement::run(), galilean_re_gate::run(), verify_velocity_mg_staircase_zh_sdflow::run(), fresh_cell_gate::run(), force_gate::run(), staggered_zh_exact_norms::run(), disc_bc::run(), verify_anisotropic_spheres::run(), verify_velocity_mg_staircase_packing_sdflow::run(), verify_colocated_spheres::run(), collocated_checkerboard_tail::run(), micromodel_2d::run(), sdflow_regression::run_case(), ghost_collocated_apriori::run_chain(), study_avg_velocity_spheres::run_flow(), staggered_vs_colocated::run_one(), validate_zick_homsy_sdflow::run_sdflow(), run_channel_18::sample(), vof_momentum_consistency::scene_droplet(), settling_gate::settle(), setupAndSolve(), zh_wallband_diff::solve(), vof_scriven::sphere_colour_chunked(), run_channel_18::sphere_frac(), vof_channel_18::sphere_frac(), vof_profile::sphere_fractions(), vof_surface_tension::sphere_fractions(), collocated_s1_reconciliation::stats(), collocated_checkerboard_tail::structure(), vof_orb_weights::swarm_colour(), ghost_projection_apriori::test_solve(), cutwall_newton_audit::tow(), cutwall_tow_drag::tow(), test_march_to_steady::umean(), steady_acceleration_gates::umean(), mg_coarse_wall::vcycle(), mg_advection::vcycle(), and worstPlane().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 148 of file test_superficial_velocity_mpi.cpp.
References blobs(), build(), configure(), gatherGlobal(), GCELLS, peclet::flow::Solver< Grid >::getVelocity(), peclet::flow::Solver< Grid >::lastSuperficialVelocityShift(), maxAbs(), maxAbsDiff(), mean(), N, peclet::flow::Solver< Grid >::setSuperficialVelocity(), slice(), peclet::flow::Solver< Grid >::step(), STEPS, and U_SUP.
|
staticconstexpr |
Definition at line 41 of file test_superficial_velocity_mpi.cpp.
Referenced by blobs(), gatherGlobal(), main(), and slice().
|
static |
Definition at line 41 of file test_superficial_velocity_mpi.cpp.
Referenced by main().
Definition at line 42 of file test_superficial_velocity_mpi.cpp.
Referenced by blobs(), gatherGlobal(), and main().
Definition at line 43 of file test_superficial_velocity_mpi.cpp.
Referenced by main().