|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
Namespaces | |
| erf_detail_SBMAMRTransfer | |
| erf_detail_SBMTransport | |
| qualification | |
| remap_detail | |
Functions | |
| constexpr AMREX_GPU_HOST_DEVICE AdvectionFacePolicy | make_advection_face_policy (const AdvectionFacePolicyInput &input) noexcept |
| bool | semantic_time_matches (const double lhs, const double rhs, const double dt_min) noexcept |
| bool | semantic_time_matches_exact (const double lhs, const double rhs) noexcept |
| bool | level_time_matches (const double state_time, const double level_time, const double level_dt) noexcept |
| bool | ApplyMappedRefluxCorrectionChunk (MultiFab &private_candidate, const MultiFab &mapped_correction, const MultiFab &mapped_measure, const MultiFab &covered_parent_mask, const std::vector< int > &global_components, MultiFab &invalid_mask, std::string &diagnostic) |
| bool | MappedRefluxCorrectionMaskIsValid (const MultiFab &invalid_mask, std::string &diagnostic) |
| static bool | restrict_mapped_spectrum_impl (const SBMLayout &layout, const SBMAMRStateView &fine, const SBMAMRStateView &coarse, const amrex::IntVect &ratio, const int coarse_level, MultiFab &coarse_candidate, const bool candidate_is_private, const int max_groups_per_chunk, const bool reverse_chunk_order, const SBMStateAdmission *admission, SBMTransferAllocationCensus *allocation_census, const std::optional< double > cross_level_dt_min, const MultiFab *covered_parent_mask, std::string &diagnostic) |
| bool | RestrictMappedSpectrum (const SBMLayout &layout, const SBMAMRStateView &fine, const SBMAMRStateView &coarse, const amrex::IntVect &ratio, const int coarse_level, MultiFab &coarse_candidate, std::string &diagnostic, const int max_groups_per_chunk, const bool reverse_chunk_order, const SBMStateAdmission *admission, SBMTransferAllocationCensus *allocation_census, const std::optional< double > cross_level_dt_min) |
| bool | RestrictMappedSpectrumPrivate (const SBMLayout &layout, const SBMAMRStateView &fine, const SBMAMRStateView &coarse, const amrex::IntVect &ratio, const int coarse_level, MultiFab &private_candidate, std::string &diagnostic, const int max_groups_per_chunk, const bool reverse_chunk_order, const SBMStateAdmission *admission, SBMTransferAllocationCensus *allocation_census, const std::optional< double > cross_level_dt_min, const MultiFab *covered_parent_mask) |
| static bool | prolong_carrier_relative_chunks (const SBMLayout &layout, const SBMAMRStateView &coarse, const SBMAMRStateView &fine_target, const amrex::Geometry &coarse_geometry, const amrex::Geometry &fine_geometry, const amrex::IntVect &ratio, MultiFab &work, const int max_groups_per_chunk, const bool reverse_chunk_order, SBMTransferAllocationCensus *allocation_census, std::string &diagnostic, const MultiFab *prolonged_mask=nullptr) |
| static bool | prolong_carrier_relative_spectrum_impl (const SBMLayout &layout, const SBMAMRStateView &coarse, const SBMAMRStateView &fine_target, const amrex::Geometry &coarse_geometry, const amrex::Geometry &fine_geometry, const amrex::IntVect &ratio, const int fine_level, MultiFab &fine_candidate, const bool candidate_is_private, const int max_groups_per_chunk, const bool reverse_chunk_order, const SBMStateAdmission *admission, SBMTransferAllocationCensus *allocation_census, std::string &diagnostic) |
| bool | ProlongCarrierRelativeSpectrum (const SBMLayout &layout, const SBMAMRStateView &coarse, const SBMAMRStateView &fine_target, const amrex::Geometry &coarse_geometry, const amrex::Geometry &fine_geometry, const amrex::IntVect &ratio, const int fine_level, MultiFab &fine_candidate, std::string &diagnostic, const int max_groups_per_chunk, const bool reverse_chunk_order, const SBMStateAdmission *admission, SBMTransferAllocationCensus *allocation_census) |
| bool | ProlongCarrierRelativeSpectrumPrivate (const SBMLayout &layout, const SBMAMRStateView &coarse, const SBMAMRStateView &fine_target, const amrex::Geometry &coarse_geometry, const amrex::Geometry &fine_geometry, const amrex::IntVect &ratio, const int fine_level, MultiFab &private_candidate, std::string &diagnostic, const int max_groups_per_chunk, const bool reverse_chunk_order, const SBMStateAdmission *admission, SBMTransferAllocationCensus *allocation_census) |
| SBMRegridCellCounts | CountRegridCells (const amrex::BoxArray &old_grids, const amrex::BoxArray &new_grids) |
| bool | RemapRegriddedSpectrumPrivate (const SBMLayout &layout, const SBMAMRStateView &coarse, const MultiFab &retained_spectrum, const MultiFab &fine_density, const int density_component, const MultiFab &fine_measure, const int measure_component, const double semantic_time, const amrex::Geometry &coarse_geometry, const amrex::Geometry &fine_geometry, const amrex::IntVect &ratio, const int fine_level, MultiFab &private_candidate, std::string &diagnostic, const int max_groups_per_chunk, const SBMStateAdmission *coarse_admission, const SBMStateAdmission *fine_admission, SBMTransferAllocationCensus *allocation_census) |
| bool | RestrictMappedSpectrum (const SBMLayout &layout, const SBMAMRStateView &fine, const SBMAMRStateView &coarse, const amrex::IntVect &ratio, int coarse_level, amrex::MultiFab &coarse_candidate, std::string &diagnostic, int max_groups_per_chunk=16, bool reverse_chunk_order=false, const SBMStateAdmission *admission=nullptr, SBMTransferAllocationCensus *allocation_census=nullptr, std::optional< double > cross_level_dt_min=std::nullopt) |
| bool | RestrictMappedSpectrumPrivate (const SBMLayout &layout, const SBMAMRStateView &fine, const SBMAMRStateView &coarse, const amrex::IntVect &ratio, int coarse_level, amrex::MultiFab &private_candidate, std::string &diagnostic, int max_groups_per_chunk=16, bool reverse_chunk_order=false, const SBMStateAdmission *admission=nullptr, SBMTransferAllocationCensus *allocation_census=nullptr, std::optional< double > cross_level_dt_min=std::nullopt, const amrex::MultiFab *covered_parent_mask=nullptr) |
| bool | ProlongCarrierRelativeSpectrum (const SBMLayout &layout, const SBMAMRStateView &coarse, const SBMAMRStateView &fine_target, const amrex::Geometry &coarse_geometry, const amrex::Geometry &fine_geometry, const amrex::IntVect &ratio, int fine_level, amrex::MultiFab &fine_candidate, std::string &diagnostic, int max_groups_per_chunk=16, bool reverse_chunk_order=false, const SBMStateAdmission *admission=nullptr, SBMTransferAllocationCensus *allocation_census=nullptr) |
| bool | ProlongCarrierRelativeSpectrumPrivate (const SBMLayout &layout, const SBMAMRStateView &coarse, const SBMAMRStateView &fine_target, const amrex::Geometry &coarse_geometry, const amrex::Geometry &fine_geometry, const amrex::IntVect &ratio, int fine_level, amrex::MultiFab &private_candidate, std::string &diagnostic, int max_groups_per_chunk=16, bool reverse_chunk_order=false, const SBMStateAdmission *admission=nullptr, SBMTransferAllocationCensus *allocation_census=nullptr) |
| bool | RemapRegriddedSpectrumPrivate (const SBMLayout &layout, const SBMAMRStateView &coarse, const amrex::MultiFab &retained_spectrum, const amrex::MultiFab &fine_density, int density_component, const amrex::MultiFab &fine_measure, int measure_component, double semantic_time, const amrex::Geometry &coarse_geometry, const amrex::Geometry &fine_geometry, const amrex::IntVect &ratio, int fine_level, amrex::MultiFab &private_candidate, std::string &diagnostic, int max_groups_per_chunk=16, const SBMStateAdmission *coarse_admission=nullptr, const SBMStateAdmission *fine_admission=nullptr, SBMTransferAllocationCensus *allocation_census=nullptr) |
| bool | ApplyMappedRefluxCorrectionChunk (amrex::MultiFab &private_candidate, const amrex::MultiFab &mapped_correction, const amrex::MultiFab &mapped_measure, const amrex::MultiFab &covered_parent_mask, const std::vector< int > &global_components, amrex::MultiFab &invalid_mask, std::string &diagnostic) |
| bool | MappedRefluxCorrectionMaskIsValid (const amrex::MultiFab &invalid_mask, std::string &diagnostic) |
| template<typename T > | |
| std::string | canonical_decimal (const T value) |
| std::string | canonical_real (const amrex::Real value, const bool allow_unbounded_nan=false) |
| std::vector< ConstraintGroup > | make_constraint_groups (const SBMLayout &layout) |
| FlattenedConstraintSet | flatten_constraint_groups (const std::vector< ConstraintGroup > &groups, const int state_components) |
| FlattenedConstraintSet | make_constraint_descriptors (const SBMLayout &layout) |
| std::vector< AttachedPropertySupportDescriptor > | make_attached_property_support_descriptors (const SBMLayout &layout) |
| std::vector< ConstraintClosureChunk > | make_constraint_closure_chunks (const SBMLayout &layout, const int max_groups) |
| EndpointTransform | transform_two_moment (const amrex::Real C, const amrex::Real M, const amrex::Real lower, const amrex::Real upper) |
| std::pair< amrex::Real, amrex::Real > | inverse_two_moment (const amrex::Real L, const amrex::Real H, const amrex::Real lower, const amrex::Real upper) |
| bool | property_support_is_admissible (const amrex::Real property, const amrex::Real carrier_number, const amrex::Real lower, const amrex::Real upper, const amrex::Real tolerance) noexcept |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | evaluate_constraint_descriptor (const ConstraintDescriptor &constraint, const ConstraintTerm *terms, const amrex::Real *state) noexcept |
| FixtureInitialStateCanonicality | validate_fixture_initial_state_canonicality (const SBMLayout &layout, const std::vector< amrex::Real > &state) noexcept |
| InventoryRoundoff | composite_inventory_roundoff (const std::uint64_t coarse_cells, const std::uint64_t fine_cells, const amrex::IntVect &ratio, const bool with_prolongation, const std::uint64_t leaf_updates=0, const std::uint64_t boundary_face_terms=0) |
| const char * | host_write_path_name (const HostWritePath path) noexcept |
| bool | host_write_allowed (const bool sbm_active, const int component) noexcept |
| bool | host_write_range_allowed (const bool sbm_active, const int start_component, const int num_components) noexcept |
| void | require_host_write_allowed (const bool sbm_active, const int component, const HostWritePath path) |
| void | require_host_write_range_allowed (const bool sbm_active, const int start_component, const int num_components, const HostWritePath path) |
| const char * | particle_mixing_name (const ParticleMixingPolicy policy) noexcept |
| bool | parse_particle_mixing_policy (const std::string &name, ParticleMixingPolicy &policy) |
| bool | validate_particle_mixing_config (const ParticleMixingConfig &config, std::string &reason) |
| bool | make_particle_mixing_config (const std::string &name, const amrex::Real reference_kh, const amrex::Real reference_kv, ParticleMixingConfig &config, std::string &reason) |
| bool | validate_particle_mixing_host (const ParticleMixingConfig &config, const std::vector< TurbChoice > &turbulence, const MolecDiffType molecular, const MeshType mesh, std::string &reason) |
| bool | validate_particle_mixing_host (const ParticleMixingConfig &config, const std::vector< TurbChoice > &turbulence, const MolecDiffType molecular, const MeshType mesh, const bool terrain_qualification, std::string &reason) |
| bool | validate_particle_mixing_boundaries (const ParticleMixingConfig &config, const SBMPhysicalBoundaryConfig &boundaries, std::string &reason) |
| std::string | particle_mixing_schema (const ParticleMixingConfig &config) |
| std::string | particle_mixing_schema (const ParticleMixingConfig &config, const SBMPhysicalBoundaryConfig &boundaries) |
| std::string | particle_mixing_schema (const ParticleMixingConfig &config, const SBMPhysicalBoundaryConfig &boundaries, const erf_auxiliary::DiffusionMesh mesh) |
| bool | particle_mixing_coefficients (const ParticleMixingConfig &config, erf_auxiliary::MappedDiffusionCoefficients &coefficients, std::string &reason) |
| bool | particle_mixing_mesh (const MeshType mesh_type, erf_auxiliary::DiffusionMesh &mesh, std::string &reason, const bool terrain_qualification) |
| bool | build_particle_mixing_transmissibility (const ParticleMixingConfig &config, const amrex::Geometry &geom, const erf_auxiliary::MappedDiffusionMetrics &metrics, const amrex::MultiFab &density, const int density_component, const amrex::MultiFab *eddy_diffusivity, erf_auxiliary::MappedFaceTransmissibility &transmissibility, std::string &diagnostic) |
| bool | build_particle_mixing_transmissibility (const ParticleMixingConfig &config, const amrex::Geometry &geom, const erf_auxiliary::MappedDiffusionMetrics &metrics, const amrex::MultiFab &density, const int density_component, const amrex::MultiFab *eddy_diffusivity, const erf_auxiliary::MappedDiffusionBoundary &boundary, erf_auxiliary::MappedFaceTransmissibility &transmissibility, std::string &diagnostic) |
| bool | admit_terrain_mixing_geometry (const amrex::MultiFab &z_nd, const amrex::BoxArray &cells, const amrex::Real max_drop, std::string &reason) |
| erf_auxiliary::MappedDiffusionBoundary | particle_mixing_boundary (const SBMPhysicalBoundaryConfig &boundaries, const std::array< const amrex::MultiFab *, AMREX_SPACEDIM > &carrier) |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | matched_diffusion_fraction (const amrex::Real high, const amrex::Real low) noexcept |
| const char * | face_name (const int face) noexcept |
| const char * | face_kind_name (const AdvectionFaceKind kind) noexcept |
| const char * | diffusion_face_kind_name (const erf_auxiliary::DiffusionFaceKind kind) noexcept |
| erf_auxiliary::DiffusionFaceKind | map_erf_diffusion (const ERF_BC bc) noexcept |
| bool | map_erf_boundary (const ERF_BC bc, AdvectionFaceKind &kind, std::string &reason) |
| bool | validate_inflow_state (const SBMLayout &layout, const std::vector< amrex::Real > &z, std::string &reason) |
| PopulationRemapView | population_remap_view (const SBMLayout &layout, const int population_id) noexcept |
| PacketApplicationResult | apply_packet_routing (const SBMLayout &layout, const PacketRoutingPlan &plan, const std::vector< amrex::Real > &property_packet_amounts, std::vector< amrex::Real > &candidate_state) |
| ReconstructionStatus | reconstruct_bin (const SBMLayout &layout, const int population_id, const int bin, const std::vector< amrex::Real > &persisted_state, ReconstructionDelta &reconstruction) |
| bool | integrate_interval (const ReconstructionDelta &reconstruction, const amrex::Real lower, const amrex::Real upper, const bool include_upper, IntegratedMoments &integral) |
| bool | project_reconstruction_bin (const SBMLayout &layout, const ReconstructionDelta &reconstruction, std::vector< amrex::Real > &candidate_state) |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool | valid_population_remap_context (const PopulationRemapView &population) noexcept |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool | valid_population_remap_view (const PopulationRemapView &population) noexcept |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool | same_population_context (const PopulationRemapView &left, const PopulationRemapView &right) noexcept |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE PacketRoutingPlan | plan_packet_routing (const PopulationRemapView population, const amrex::Real packet_number, const amrex::Real particle_mass) noexcept |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE PacketApplicationCoreResult | apply_packet_routing_core (const PopulationRemapView population, const PacketRoutingPlan plan, const amrex::Real *property_packet_amounts, const int property_count, amrex::Real *residual_properties, const int residual_capacity, amrex::Real *candidate_state, const int state_count) noexcept |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE ReconstructionStatus | reconstruct_bin_core (const PopulationRemapView population, const int bin, const amrex::Real *persisted_state, const int state_count, amrex::Real *property_per_particle, const int property_capacity, ReconstructionDeltaView &reconstruction) noexcept |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool | integrate_interval_core (const ReconstructionDeltaView reconstruction, const amrex::Real lower, const amrex::Real upper, const bool include_upper, amrex::Real *attached_properties, const int property_capacity, IntegratedMomentsCoreResult &integral) noexcept |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool | project_reconstruction_bin_core (const PopulationRemapView population, const ReconstructionDeltaView reconstruction, amrex::Real *candidate_state, const int state_count) noexcept |
| constexpr RepresentationIdentity | representation_identity (const MomentMode mode) noexcept |
| std::string | restart_schema (const SBMLayout &layout, const std::string &boundary_identity, const std::string &mixing_identity) |
| bool | restart_schema_matches (const SBMLayout &layout, const std::string &persisted, const std::string &boundary_identity, const std::string &mixing_identity) |
| bool | authoritative_state_admissible (const amrex::MultiFab &spectrum, const SBMLayout &layout, const int level, std::string *diagnostic) |
| bool | restart_projection_matches (const amrex::MultiFab &spectrum, const amrex::MultiFab &persisted_core, const SBMBulkProjection &projection, const int qc_component, const int qr_component, const amrex::Real tolerance_scale) |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | copy_host_slow_component (const amrex::Array4< amrex::Real > ¤t, const amrex::Array4< const amrex::Real > &predictor, const int i, const int j, const int k, const int component, const bool sbm_active, const int qc_component, const int qr_component) noexcept |
| SBMStageMixingInputs | make_stage_mixing_inputs (const SBMTransport &transport, const MultiFab *eddy_diffusivity, const amrex::Vector< std::unique_ptr< MultiFab >> &mapfac, const MultiFab *ax, const MultiFab *ay, const Real *stretched_dz, const MultiFab *z_nd, const MultiFab *z_cc) |
| SBMStageMixingInputs | make_stage_mixing_inputs (const SBMTransport &transport, const amrex::MultiFab *eddy_diffusivity, const amrex::Vector< std::unique_ptr< amrex::MultiFab >> &mapfac, const amrex::MultiFab *ax, const amrex::MultiFab *ay, const amrex::Real *stretched_dz, const amrex::MultiFab *z_nd=nullptr, const amrex::MultiFab *z_cc=nullptr) |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool | try_two_moment_to_endpoints (const amrex::Real C, const amrex::Real M, const amrex::Real lower, const amrex::Real upper, EndpointTransform &result) noexcept |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool | try_endpoints_to_two_moment (const amrex::Real L, const amrex::Real H, const amrex::Real lower, const amrex::Real upper, amrex::Real &C, amrex::Real &M) noexcept |
Variables | |
| constexpr int | physical_face_count = 2 * AMREX_SPACEDIM |
|
strong |
Result of applying the M3 spectral state policy at one oriented face.
| Enumerator | |
|---|---|
| PeriodicSharedFace | |
| ZeroNormalFlux | |
| InteriorDonor | |
| ExplicitSpectralInflow | |
| RejectInwardOutflow | |
| RejectMissingInflowState | |
| RejectIncompleteInflowState | |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
Turbulent gradient mixing of spectral particles. One coefficient acts on every member of every bin group, and particle molecular (Brownian) diffusion is zero under every policy.
HostPassiveScalar consumes ERF's Scalar_h/Scalar_v eddy channels, which are already density weighted and Schmidt scaled. Under ERF's LES closures they equal the Q channels that diffuse moisture, but the PBL schemes other than SHOC fill Q_v and not Scalar_v, so this policy is for LES closures only and enabling it must reject a PBL scheme. ConstantReference multiplies kinematic reference diffusivities by the face-averaged dry-air density.
| Enumerator | |
|---|---|
| None | |
| ConstantReference | |
| HostPassiveScalar | |
|
strong |
|
strong |
Semantic class of an attached carrier-bin extensive quantity.
ExtensiveMass is nonnegative additional mass and is not part of the water projection. NumberCarried is a nonnegative count-like quantity. A MassBoundedSubset is nonnegative and may be constrained by its carrier mass when that future physics is implemented.
| Enumerator | |
|---|---|
| ExtensiveMass | |
| NumberCarried | |
| MassBoundedSubset | |
|
strong |
|
strong |
|
strong |
|
strong |
| bool erf_sbm::admit_terrain_mixing_geometry | ( | const amrex::MultiFab & | z_nd, |
| const amrex::BoxArray & | cells, | ||
| amrex::Real | max_drop, | ||
| std::string & | reason | ||
| ) |
The terrain geometry terrain mixing is qualified on: in every valid cell, the drop sqrt(dx_drop^2 + dy_drop^2) of ComputeTerrainCellDrops, unclamped, at most max_drop cell thicknesses, and a finite, positive thickness. Fails with the worst cell and its drop otherwise. An engineering envelope, not a stability bound.
Referenced by erf_sbm::SBMTransport::admit_terrain_geometry().

| PacketApplicationResult erf_sbm::apply_packet_routing | ( | const SBMLayout & | layout, |
| const PacketRoutingPlan & | plan, | ||
| const std::vector< amrex::Real > & | property_packet_amounts, | ||
| std::vector< amrex::Real > & | candidate_state | ||
| ) |

|
noexcept |
Allocation-free packet application. The first pass validates the complete plan, residual outputs, and every candidate increment. The second pass commits only after all failure paths have been ruled out. Input/output and property/state storage supplied by the caller must not overlap.
Referenced by apply_packet_routing().


| bool erf_sbm::ApplyMappedRefluxCorrectionChunk | ( | amrex::MultiFab & | private_candidate, |
| const amrex::MultiFab & | mapped_correction, | ||
| const amrex::MultiFab & | mapped_measure, | ||
| const amrex::MultiFab & | covered_parent_mask, | ||
| const std::vector< int > & | global_components, | ||
| amrex::MultiFab & | invalid_mask, | ||
| std::string & | diagnostic | ||
| ) |
Add one bounded YA correction chunk in mapped H coordinates only where the scalar covered-parent mask proves a coarse/fine face interface. The candidate and invalid mask are private scratch; invalid is accumulated across chunks and checked collectively after the final chunk.
| bool erf_sbm::ApplyMappedRefluxCorrectionChunk | ( | MultiFab & | private_candidate, |
| const MultiFab & | mapped_correction, | ||
| const MultiFab & | mapped_measure, | ||
| const MultiFab & | covered_parent_mask, | ||
| const std::vector< int > & | global_components, | ||
| MultiFab & | invalid_mask, | ||
| std::string & | diagnostic | ||
| ) |
Referenced by ERF::sbm_synchronize_levels().


| bool erf_sbm::authoritative_state_admissible | ( | const amrex::MultiFab & | spectrum, |
| const SBMLayout & | layout, | ||
| int | level, | ||
| std::string * | diagnostic = nullptr |
||
| ) |
Validate every valid-cell value against the layout's runtime constraints.
Referenced by erf_sbm::SBMStateAdmission::admissible(), prolong_carrier_relative_spectrum_impl(), ERF::ReadCheckpointFile(), RemapRegriddedSpectrumPrivate(), restrict_mapped_spectrum_impl(), and erf_sbm::erf_detail_SBMAMRTransfer::validate_view_spectrum().


| bool erf_sbm::build_particle_mixing_transmissibility | ( | const ParticleMixingConfig & | config, |
| const amrex::Geometry & | geom, | ||
| const erf_auxiliary::MappedDiffusionMetrics & | metrics, | ||
| const amrex::MultiFab & | density, | ||
| int | density_component, | ||
| const amrex::MultiFab * | eddy_diffusivity, | ||
| const erf_auxiliary::MappedDiffusionBoundary & | boundary, | ||
| erf_auxiliary::MappedFaceTransmissibility & | transmissibility, | ||
| std::string & | diagnostic | ||
| ) |
As above, with the diffusive faces of boundary open.

| bool erf_sbm::build_particle_mixing_transmissibility | ( | const ParticleMixingConfig & | config, |
| const amrex::Geometry & | geom, | ||
| const erf_auxiliary::MappedDiffusionMetrics & | metrics, | ||
| const amrex::MultiFab & | density, | ||
| int | density_component, | ||
| const amrex::MultiFab * | eddy_diffusivity, | ||
| erf_auxiliary::MappedFaceTransmissibility & | transmissibility, | ||
| std::string & | diagnostic | ||
| ) |
The face transmissibility of a policy; None gives zero on every face. density must be the dry-air density (ERF's Rho_comp), which ConstantReference multiplies by.
Referenced by erf_sbm::SBMTransport::advance_stage(), and ERF::estTimeStep().

| std::string erf_sbm::canonical_decimal | ( | const T | value | ) |
Referenced by canonical_real(), and erf_sbm::SBMBoundaryLedger::serialize().

|
inline |
Referenced by erf_sbm::ParticleMixingConfig::identity(), erf_sbm::SBMPhysicalBoundaryConfig::identity(), erf_sbm::SpectralGrid::identity(), and erf_sbm::SBMLayout::SBMLayout().


|
inline |
Operation-count bound on the difference of two composite leaf inventories, shared by the per-step, regrid and boundary-budget conservation checks. Each positive leaf term uses up to three multiplies and one local accumulation; bound both inventories, the final subtraction, and a pairwise MPI reduction with eight operations per leaf plus two reduction-tree levels per depth. A regrid adds the prolongation of a new fine cell from its parent, every leaf update between the two inventories re-forms each leaf, and each physical-face term of the boundary ledger takes a product, a mask and two sums.
Referenced by ERF::sbm_check_budget(), ERF::sbm_qualification_check_regrid(), and ERF::sbm_qualification_check_step().


|
noexcept |
Perform ERF's predictor-to-current copy for one slow state component.
Referenced by erf_slow_rhs_post().

| SBMRegridCellCounts erf_sbm::CountRegridCells | ( | const amrex::BoxArray & | old_grids, |
| const amrex::BoxArray & | new_grids | ||
| ) |
|
noexcept |
Referenced by particle_mixing_schema().

|
noexcept |
Evaluate a validated flattened constraint in host or device code.
|
noexcept |
Referenced by erf_sbm::SBMPhysicalBoundaryConfig::identity(), and validate_particle_mixing_boundaries().

|
noexcept |
Referenced by erf_sbm::SBMTransport::advance_stage(), erf_sbm::erf_detail_SBMTransport::check_physical_face_carriers(), ERF::configure_sbm_physical_boundaries(), erf_sbm::SBMPhysicalBoundaryConfig::identity(), erf_sbm::SBMBoundaryLedger::parse(), particle_mixing_schema(), ERF::ReadVelsOnlyFromCheckpointFile(), erf_sbm::SBMBoundaryLedger::serialize(), erf_sbm::SBMTransport::set_physical_boundaries(), and validate_particle_mixing_boundaries().

| FlattenedConstraintSet erf_sbm::flatten_constraint_groups | ( | const std::vector< ConstraintGroup > & | groups, |
| int | state_components | ||
| ) |
Flatten arbitrary semantic groups through the production sparse format.
Referenced by make_constraint_descriptors().


|
noexcept |
The native host retains qv; SBM exclusively owns the compact liquid lanes.

|
noexcept |
|
noexcept |
Check every component in a native writer's complete, non-empty write range.
Referenced by host_write_allowed(), and require_host_write_range_allowed().

| bool erf_sbm::integrate_interval | ( | const ReconstructionDelta & | reconstruction, |
| const amrex::Real | lower, | ||
| const amrex::Real | upper, | ||
| const bool | include_upper, | ||
| IntegratedMoments & | integral | ||
| ) |

|
noexcept |
Integrate one reconstructed delta over [lower, upper), optionally including upper.
Referenced by integrate_interval().


| std::pair< amrex::Real, amrex::Real > erf_sbm::inverse_two_moment | ( | amrex::Real | L, |
| amrex::Real | H, | ||
| amrex::Real | lower, | ||
| amrex::Real | upper | ||
| ) |
|
inlinenoexcept |
Whether a level's accepted state is at the host level time: to roundoff of the level's step, or exactly before any step has been taken.
Referenced by ERF::remake_sbm_level(), and ERF::WriteCheckpointFile().


|
constexprnoexcept |
Decide the face-level spectral advection semantics; the transport fills the physical ghosts. At a physical face whose high-order stencil is not qualified, the admissible donor proposal remains available and high-order transport falls back to it.
Referenced by erf_sbm::erf_detail_SBMTransport::check_physical_face_carriers().

| std::vector< AttachedPropertySupportDescriptor > erf_sbm::make_attached_property_support_descriptors | ( | const SBMLayout & | layout | ) |

| std::vector< ConstraintClosureChunk > erf_sbm::make_constraint_closure_chunks | ( | const SBMLayout & | layout, |
| const int | max_groups | ||
| ) |
Referenced by prolong_carrier_relative_chunks(), and restrict_mapped_spectrum_impl().


| FlattenedConstraintSet erf_sbm::make_constraint_descriptors | ( | const SBMLayout & | layout | ) |
Flatten complete semantic groups into bounded device descriptors.

| std::vector< ConstraintGroup > erf_sbm::make_constraint_groups | ( | const SBMLayout & | layout | ) |
Build deterministic groups from the immutable runtime layout.
Referenced by authoritative_state_admissible(), make_attached_property_support_descriptors(), make_constraint_closure_chunks(), make_constraint_descriptors(), and validate_inflow_state().


| bool erf_sbm::make_particle_mixing_config | ( | const std::string & | name, |
| amrex::Real | reference_kh, | ||
| amrex::Real | reference_kv, | ||
| ParticleMixingConfig & | config, | ||
| std::string & | reason | ||
| ) |
The policy named by erf.sbm_particle_mixing and its reference diffusivities.

| SBMStageMixingInputs erf_sbm::make_stage_mixing_inputs | ( | const SBMTransport & | transport, |
| const amrex::MultiFab * | eddy_diffusivity, | ||
| const amrex::Vector< std::unique_ptr< amrex::MultiFab >> & | mapfac, | ||
| const amrex::MultiFab * | ax, | ||
| const amrex::MultiFab * | ay, | ||
| const amrex::Real * | stretched_dz, | ||
| const amrex::MultiFab * | z_nd = nullptr, |
||
| const amrex::MultiFab * | z_cc = nullptr |
||
| ) |
Stage mixing inputs from ERF's level fields: map factors indexed by MapFacType, the face areas of a stretched or terrain-fitted mesh, the vertical spacing of a stretched one, the nodal and cell-centre heights of a terrain-fitted one, and the eddy diffusivity, which only HostPassiveScalar reads.
| SBMStageMixingInputs erf_sbm::make_stage_mixing_inputs | ( | const SBMTransport & | transport, |
| const MultiFab * | eddy_diffusivity, | ||
| const amrex::Vector< std::unique_ptr< MultiFab >> & | mapfac, | ||
| const MultiFab * | ax, | ||
| const MultiFab * | ay, | ||
| const Real * | stretched_dz, | ||
| const MultiFab * | z_nd, | ||
| const MultiFab * | z_cc | ||
| ) |
Referenced by erf_slow_rhs_post(), and ERF::estTimeStep().


| bool erf_sbm::map_erf_boundary | ( | ERF_BC | bc, |
| AdvectionFaceKind & | kind, | ||
| std::string & | reason | ||
| ) |
Map one ERF physical boundary type, or explain why SBM rejects it.
Referenced by ERF::configure_sbm_physical_boundaries().

|
noexcept |
The particle-mixing semantics of one ERF physical boundary type.
Referenced by ERF::configure_sbm_physical_boundaries().

| bool erf_sbm::MappedRefluxCorrectionMaskIsValid | ( | const amrex::MultiFab & | invalid_mask, |
| std::string & | diagnostic | ||
| ) |
| bool erf_sbm::MappedRefluxCorrectionMaskIsValid | ( | const MultiFab & | invalid_mask, |
| std::string & | diagnostic | ||
| ) |
Referenced by ERF::sbm_synchronize_levels().


|
noexcept |
Terrain-fitted mixing only: the fraction theta in [0, 1] of one matched coordinate's nominal low-order diffusive rate low that a face carries, given that coordinate's native rate high: 1 for low = 0, 0 where high is zero or opposes low, |high| / |low| where it is smaller, and 1 otherwise, so theta low lies between zero and high. A nonfinite rate gives NaN, which the caller rejects. A face's group takes the least fraction of its coordinates.
Referenced by erf_sbm::erf_detail_SBMTransport::add_matched_terrain_mixing().

| bool erf_sbm::parse_particle_mixing_policy | ( | const std::string & | name, |
| ParticleMixingPolicy & | policy | ||
| ) |
Referenced by make_particle_mixing_config().


| erf_auxiliary::MappedDiffusionBoundary erf_sbm::particle_mixing_boundary | ( | const SBMPhysicalBoundaryConfig & | boundaries, |
| const std::array< const amrex::MultiFab *, AMREX_SPACEDIM > & | carrier | ||
| ) |
The diffusive faces of a boundary configuration, with the dry-air carrier of each direction.
Referenced by erf_sbm::SBMTransport::advance_stage(), and ERF::estTimeStep().

| bool erf_sbm::particle_mixing_coefficients | ( | const ParticleMixingConfig & | config, |
| erf_auxiliary::MappedDiffusionCoefficients & | coefficients, | ||
| std::string & | reason | ||
| ) |
The host coefficient semantics of a mixing policy other than None.
Referenced by erf_sbm::erf_detail_SBMTransport::add_high_order_mixing(), build_particle_mixing_transmissibility(), and erf_sbm::erf_detail_SBMTransport::build_terrain_high_order_mixing().


| bool erf_sbm::particle_mixing_mesh | ( | MeshType | mesh_type, |
| erf_auxiliary::DiffusionMesh & | mesh, | ||
| std::string & | reason, | ||
| bool | terrain_qualification = false |
||
| ) |
The low-order operator mesh; terrain-fitted (VariableDz) meshes are rejected unless terrain_qualification is set, for qualification only.
Referenced by ERF::ERF_shared(), and validate_particle_mixing_host().

|
noexcept |
Referenced by erf_sbm::SBMTransport::advance_stage(), build_particle_mixing_transmissibility(), parse_particle_mixing_policy(), validate_particle_mixing_boundaries(), validate_particle_mixing_config(), and validate_particle_mixing_host().

| std::string erf_sbm::particle_mixing_schema | ( | const ParticleMixingConfig & | config | ) |
Restart-schema lines of a mixing policy; empty for None.
Referenced by particle_mixing_schema(), ERF::ReadCheckpointFile(), and ERF::WriteCheckpointFile().

| std::string erf_sbm::particle_mixing_schema | ( | const ParticleMixingConfig & | config, |
| const SBMPhysicalBoundaryConfig & | boundaries | ||
| ) |
As above, followed with a line of the diffusive semantics of every face that is neither periodic nor a wall, when there is one.

| std::string erf_sbm::particle_mixing_schema | ( | const ParticleMixingConfig & | config, |
| const SBMPhysicalBoundaryConfig & | boundaries, | ||
| erf_auxiliary::DiffusionMesh | mesh | ||
| ) |
As particle_mixing_schema with boundaries, for the mixing mesh: a terrain-fitted (VariableDz) mesh adds a line naming its operator and boundary policy; every other mesh leaves the schema unchanged.

|
noexcept |
Classify one packet without allocation or state mutation. Two-moment routing uses half-open intervals, includes the global top edge, and admits only four representable steps of outer-boundary roundoff. The plan keeps the original packet mass while its destination records the exact boundary mass. The immutable metadata must have been fully qualified once before this call; the per-packet path performs only constant-time context checks and a logarithmic interval search.

|
noexcept |
Host adapter building a stable view into the immutable SBMLayout.
Referenced by apply_packet_routing(), authoritative_state_admissible(), erf_sbm::SBMStateAdmission::Impl::Impl(), project_reconstruction_bin(), reconstruct_bin(), erf_sbm::SBMTransport::SBMTransport(), and validate_fixture_initial_state_canonicality().


| bool erf_sbm::project_reconstruction_bin | ( | const SBMLayout & | layout, |
| const ReconstructionDelta & | reconstruction, | ||
| std::vector< amrex::Real > & | candidate_state | ||
| ) |

|
noexcept |
Project one reconstructed bin into caller-owned state after full validation.
Referenced by project_reconstruction_bin().


|
static |
Referenced by prolong_carrier_relative_spectrum_impl(), and RemapRegriddedSpectrumPrivate().


|
static |
Referenced by ProlongCarrierRelativeSpectrum(), and ProlongCarrierRelativeSpectrumPrivate().


| bool erf_sbm::ProlongCarrierRelativeSpectrum | ( | const SBMLayout & | layout, |
| const SBMAMRStateView & | coarse, | ||
| const SBMAMRStateView & | fine_target, | ||
| const amrex::Geometry & | coarse_geometry, | ||
| const amrex::Geometry & | fine_geometry, | ||
| const amrex::IntVect & | ratio, | ||
| const int | fine_level, | ||
| MultiFab & | fine_candidate, | ||
| std::string & | diagnostic, | ||
| const int | max_groups_per_chunk, | ||
| const bool | reverse_chunk_order, | ||
| const SBMStateAdmission * | admission, | ||
| SBMTransferAllocationCensus * | allocation_census | ||
| ) |

| bool erf_sbm::ProlongCarrierRelativeSpectrum | ( | const SBMLayout & | layout, |
| const SBMAMRStateView & | coarse, | ||
| const SBMAMRStateView & | fine_target, | ||
| const amrex::Geometry & | coarse_geometry, | ||
| const amrex::Geometry & | fine_geometry, | ||
| const amrex::IntVect & | ratio, | ||
| int | fine_level, | ||
| amrex::MultiFab & | fine_candidate, | ||
| std::string & | diagnostic, | ||
| int | max_groups_per_chunk = 16, |
||
| bool | reverse_chunk_order = false, |
||
| const SBMStateAdmission * | admission = nullptr, |
||
| SBMTransferAllocationCensus * | allocation_census = nullptr |
||
| ) |
Form a same-time piecewise-constant carrier-relative fine candidate. On success, overwrite the destination's valid cells with the complete, admitted result. On failure (including a rejection on another MPI rank), leave every destination valid cell and all source views unchanged. This operator does not itself commit authoritative SBM state.
| bool erf_sbm::ProlongCarrierRelativeSpectrumPrivate | ( | const SBMLayout & | layout, |
| const SBMAMRStateView & | coarse, | ||
| const SBMAMRStateView & | fine_target, | ||
| const amrex::Geometry & | coarse_geometry, | ||
| const amrex::Geometry & | fine_geometry, | ||
| const amrex::IntVect & | ratio, | ||
| const int | fine_level, | ||
| MultiFab & | private_candidate, | ||
| std::string & | diagnostic, | ||
| const int | max_groups_per_chunk, | ||
| const bool | reverse_chunk_order, | ||
| const SBMStateAdmission * | admission, | ||
| SBMTransferAllocationCensus * | allocation_census | ||
| ) |
Referenced by ERF::init_sbm_level_from_coarse().


| bool erf_sbm::ProlongCarrierRelativeSpectrumPrivate | ( | const SBMLayout & | layout, |
| const SBMAMRStateView & | coarse, | ||
| const SBMAMRStateView & | fine_target, | ||
| const amrex::Geometry & | coarse_geometry, | ||
| const amrex::Geometry & | fine_geometry, | ||
| const amrex::IntVect & | ratio, | ||
| int | fine_level, | ||
| amrex::MultiFab & | private_candidate, | ||
| std::string & | diagnostic, | ||
| int | max_groups_per_chunk = 16, |
||
| bool | reverse_chunk_order = false, |
||
| const SBMStateAdmission * | admission = nullptr, |
||
| SBMTransferAllocationCensus * | allocation_census = nullptr |
||
| ) |
Private-candidate prolongation for a new level. The caller supplies the one unpublished full fine spectrum; it may be overwritten on failure. Intensive interpolation scratch remains bounded by complete constraint-group chunks.
|
noexcept |
Host reference for the finite property-support constraints.

| ReconstructionStatus erf_sbm::reconstruct_bin | ( | const SBMLayout & | layout, |
| const int | population_id, | ||
| const int | bin, | ||
| const std::vector< amrex::Real > & | persisted_state, | ||
| ReconstructionDelta & | reconstruction | ||
| ) |

|
noexcept |
Referenced by reconstruct_bin().


| bool erf_sbm::RemapRegriddedSpectrumPrivate | ( | const SBMLayout & | layout, |
| const SBMAMRStateView & | coarse, | ||
| const amrex::MultiFab & | retained_spectrum, | ||
| const amrex::MultiFab & | fine_density, | ||
| int | density_component, | ||
| const amrex::MultiFab & | fine_measure, | ||
| int | measure_component, | ||
| double | semantic_time, | ||
| const amrex::Geometry & | coarse_geometry, | ||
| const amrex::Geometry & | fine_geometry, | ||
| const amrex::IntVect & | ratio, | ||
| int | fine_level, | ||
| amrex::MultiFab & | private_candidate, | ||
| std::string & | diagnostic, | ||
| int | max_groups_per_chunk = 16, |
||
| const SBMStateAdmission * | coarse_admission = nullptr, |
||
| const SBMStateAdmission * | fine_admission = nullptr, |
||
| SBMTransferAllocationCensus * | allocation_census = nullptr |
||
| ) |
Private candidate for a fine level remade on new grids at a synchronized instant. Cells the retained old-grid spectrum covers keep its values bitwise; every other cell takes the same-time carrier-relative prolongation of its parent. The new-grid density and measure, the retained spectrum, and the coarse tuple must all carry semantic_time. Every parent of the new grids must satisfy the mapped carrier identity and the complete candidate must be admissible. Inputs are never modified; the candidate may be overwritten on failure.
| bool erf_sbm::RemapRegriddedSpectrumPrivate | ( | const SBMLayout & | layout, |
| const SBMAMRStateView & | coarse, | ||
| const MultiFab & | retained_spectrum, | ||
| const MultiFab & | fine_density, | ||
| const int | density_component, | ||
| const MultiFab & | fine_measure, | ||
| const int | measure_component, | ||
| const double | semantic_time, | ||
| const amrex::Geometry & | coarse_geometry, | ||
| const amrex::Geometry & | fine_geometry, | ||
| const amrex::IntVect & | ratio, | ||
| const int | fine_level, | ||
| MultiFab & | private_candidate, | ||
| std::string & | diagnostic, | ||
| const int | max_groups_per_chunk, | ||
| const SBMStateAdmission * | coarse_admission, | ||
| const SBMStateAdmission * | fine_admission, | ||
| SBMTransferAllocationCensus * | allocation_census | ||
| ) |
Referenced by ERF::remake_sbm_level().


|
constexprnoexcept |
Referenced by erf_sbm::SBMLayout::inspection(), and erf_sbm::SBMLayout::SBMLayout().

| void erf_sbm::require_host_write_allowed | ( | bool | sbm_active, |
| int | component, | ||
| HostWritePath | path | ||
| ) |
Fail closed when a native host writer reaches a component owned by SBM.

| void erf_sbm::require_host_write_range_allowed | ( | bool | sbm_active, |
| int | start_component, | ||
| int | num_components, | ||
| HostWritePath | path | ||
| ) |
Fail closed when any component in a native writer's range is owned by SBM.
Referenced by erf_slow_rhs_post(), if(), and require_host_write_allowed().


| bool erf_sbm::restart_projection_matches | ( | const amrex::MultiFab & | spectrum, |
| const amrex::MultiFab & | persisted_core, | ||
| const SBMBulkProjection & | projection, | ||
| int | qc_component, | ||
| int | qr_component, | ||
| amrex::Real | tolerance_scale = amrex::Real(128.0) |
||
| ) |
Compare the projected spectrum to checkpointed qc/qr without mutating core.
Referenced by ERF::ReadCheckpointFile().


| std::string erf_sbm::restart_schema | ( | const SBMLayout & | layout, |
| const std::string & | boundary_identity = "boundary=triply-periodic-v1", |
||
| const std::string & | mixing_identity = "" |
||
| ) |
Exact semantic restart schema; no implicit checkpoint migration is performed. An empty mixing identity (no particle mixing) keeps the earlier schema.
Referenced by restart_schema_matches(), and ERF::WriteCheckpointFile().


| bool erf_sbm::restart_schema_matches | ( | const SBMLayout & | layout, |
| const std::string & | persisted, | ||
| const std::string & | boundary_identity = "boundary=triply-periodic-v1", |
||
| const std::string & | mixing_identity = "" |
||
| ) |
Compare persisted and expected schemas byte-for-byte.
Referenced by ERF::ReadCheckpointFile().


|
static |
Referenced by RestrictMappedSpectrum(), and RestrictMappedSpectrumPrivate().


| bool erf_sbm::RestrictMappedSpectrum | ( | const SBMLayout & | layout, |
| const SBMAMRStateView & | fine, | ||
| const SBMAMRStateView & | coarse, | ||
| const amrex::IntVect & | ratio, | ||
| const int | coarse_level, | ||
| MultiFab & | coarse_candidate, | ||
| std::string & | diagnostic, | ||
| const int | max_groups_per_chunk, | ||
| const bool | reverse_chunk_order, | ||
| const SBMStateAdmission * | admission, | ||
| SBMTransferAllocationCensus * | allocation_census, | ||
| const std::optional< double > | cross_level_dt_min | ||
| ) |

| bool erf_sbm::RestrictMappedSpectrum | ( | const SBMLayout & | layout, |
| const SBMAMRStateView & | fine, | ||
| const SBMAMRStateView & | coarse, | ||
| const amrex::IntVect & | ratio, | ||
| int | coarse_level, | ||
| amrex::MultiFab & | coarse_candidate, | ||
| std::string & | diagnostic, | ||
| int | max_groups_per_chunk = 16, |
||
| bool | reverse_chunk_order = false, |
||
| const SBMStateAdmission * | admission = nullptr, |
||
| SBMTransferAllocationCensus * | allocation_census = nullptr, |
||
| std::optional< double > | cross_level_dt_min = std::nullopt |
||
| ) |
Form an H-conservative coarse candidate from matching-time spectral views. Cross-level endpoint labels may use a timestep-bounded comparison when the caller supplies the interval's actual minimum physical timestep; each input tuple's spectrum/density/measure labels remain exactly identical. On success, overwrite the destination's valid cells with the complete, admitted result. On failure (including a rejection on another MPI rank), leave every destination valid cell and all source views unchanged. This operator does not itself commit authoritative SBM state.
| bool erf_sbm::RestrictMappedSpectrumPrivate | ( | const SBMLayout & | layout, |
| const SBMAMRStateView & | fine, | ||
| const SBMAMRStateView & | coarse, | ||
| const amrex::IntVect & | ratio, | ||
| const int | coarse_level, | ||
| MultiFab & | private_candidate, | ||
| std::string & | diagnostic, | ||
| const int | max_groups_per_chunk, | ||
| const bool | reverse_chunk_order, | ||
| const SBMStateAdmission * | admission, | ||
| SBMTransferAllocationCensus * | allocation_census, | ||
| const std::optional< double > | cross_level_dt_min, | ||
| const MultiFab * | covered_parent_mask | ||
| ) |
Referenced by ERF::sbm_synchronize_levels().


| bool erf_sbm::RestrictMappedSpectrumPrivate | ( | const SBMLayout & | layout, |
| const SBMAMRStateView & | fine, | ||
| const SBMAMRStateView & | coarse, | ||
| const amrex::IntVect & | ratio, | ||
| int | coarse_level, | ||
| amrex::MultiFab & | private_candidate, | ||
| std::string & | diagnostic, | ||
| int | max_groups_per_chunk = 16, |
||
| bool | reverse_chunk_order = false, |
||
| const SBMStateAdmission * | admission = nullptr, |
||
| SBMTransferAllocationCensus * | allocation_census = nullptr, |
||
| std::optional< double > | cross_level_dt_min = std::nullopt, |
||
| const amrex::MultiFab * | covered_parent_mask = nullptr |
||
| ) |
Private-candidate variant for coarse synchronization. The caller supplies an unpublished full-spectrum buffer; it may be overwritten on failure. The routine reuses it for the restricted mapped amount and final spectrum.
|
noexcept |
Referenced by apply_packet_routing_core(), project_reconstruction_bin_core(), and erf_sbm::remap_detail::route_plan_is_consistent().

|
inlinenoexcept |
Compare values carrying one semantic time identity without admitting a neighboring physical substep. Callers must provide the smallest physical step represented by the comparison.
Referenced by erf_sbm::SBMAMRFluxRegister::accept_level_step(), erf_sbm::SBMAMRFluxRegister::begin_level_step(), erf_sbm::SBMAMRFluxRegister::begin_stage(), erf_sbm::SBMStateManager::begin_step(), erf_sbm::erf_detail_SBMTransport::coarse_stage_theta(), erf_sbm::erf_detail_SBMTransport::fill_coarse_parent_ghosts(), ERF::init_sbm_level_from_coarse(), level_time_matches(), restrict_mapped_spectrum_impl(), and ERF::sbm_synchronize_levels().

|
inlinenoexcept |
Transfer tuples without a physical-step scale must share the exact finite timestamp supplied by their owner.
Referenced by erf_sbm::SBMStateManager::begin_step(), level_time_matches(), prolong_carrier_relative_spectrum_impl(), RemapRegriddedSpectrumPrivate(), restrict_mapped_spectrum_impl(), and erf_sbm::erf_detail_SBMAMRTransfer::validate_view_structure().

| EndpointTransform erf_sbm::transform_two_moment | ( | amrex::Real | C, |
| amrex::Real | M, | ||
| amrex::Real | lower, | ||
| amrex::Real | upper | ||
| ) |
|
noexcept |
Allocation-free canonical inverse transform for host and device callers.
Referenced by erf_sbm::SpectralGrid::endpoints_to_two_moment().

|
noexcept |
Allocation-free canonical forward transform used by host and device code. Returns false instead of throwing when the state is invalid or materially unrealizable. The throwing host API below delegates to this function.
Referenced by erf_sbm::SBMTransport::advance_stage(), reconstruct_bin_core(), erf_sbm::SpectralGrid::two_moment_realizable(), and erf_sbm::SpectralGrid::two_moment_to_endpoints().

|
noexcept |
Constant-time structural/context checks for already qualified immutable metadata. Callers must derive views from a validated SBMLayout or call the full validator below once before using a raw view in the remapping cores.
Referenced by apply_packet_routing_core(), erf_sbm::remap_detail::canonical_one_moment_bin_state_view(), erf_sbm::remap_detail::canonical_two_moment_bin_state_view(), erf_sbm::remap_detail::canonical_two_moment_moments(), plan_packet_routing(), population_remap_view(), project_reconstruction_bin_core(), reconstruct_bin_core(), erf_sbm::remap_detail::route_plan_is_consistent(), and valid_population_remap_view().

|
noexcept |
Full O(nbins + properties^2) validator for untrusted/arbitrary views.

|
inlinenoexcept |
Apply the persisted-state admission rule to each bin before ERF accepts a user/fixture initial spectrum. Kept as the constructor's shared validation seam so unit tests can exercise the exact candidate-layout check.
Referenced by validate_inflow_state().


| bool erf_sbm::validate_inflow_state | ( | const SBMLayout & | layout, |
| const std::vector< amrex::Real > & | z, | ||
| std::string & | reason | ||
| ) |
Require a complete, canonical, group-admissible inflow spectrum.
Referenced by ERF::configure_sbm_physical_boundaries(), and erf_sbm::SBMTransport::set_physical_boundaries().


| bool erf_sbm::validate_particle_mixing_boundaries | ( | const ParticleMixingConfig & | config, |
| const SBMPhysicalBoundaryConfig & | boundaries, | ||
| std::string & | reason | ||
| ) |
Mixing accepts periodic, wall, outflow and inflow faces. An inflow_outflow z face is rejected: ERF's own vertical scalar diffusion has no inward-only rule there to follow, and ERF accepts inflow_outflow on x and y faces only.
Referenced by ERF::configure_sbm_physical_boundaries(), erf_sbm::SBMTransport::set_particle_mixing(), and erf_sbm::SBMTransport::set_physical_boundaries().


| bool erf_sbm::validate_particle_mixing_config | ( | const ParticleMixingConfig & | config, |
| std::string & | reason | ||
| ) |
Referenced by build_particle_mixing_transmissibility(), make_particle_mixing_config(), particle_mixing_coefficients(), erf_sbm::SBMTransport::set_particle_mixing(), and validate_particle_mixing_host().


| bool erf_sbm::validate_particle_mixing_host | ( | const ParticleMixingConfig & | config, |
| const std::vector< TurbChoice > & | turbulence, | ||
| MolecDiffType | molecular, | ||
| MeshType | mesh, | ||
| bool | terrain_qualification, | ||
| std::string & | reason | ||
| ) |
As above. With terrain_qualification, for qualification only, a policy other than None also accepts a terrain-fitted (VariableDz) mesh on one level; the stage still checks the geometry admission below.

| bool erf_sbm::validate_particle_mixing_host | ( | const ParticleMixingConfig & | config, |
| const std::vector< TurbChoice > & | turbulence, | ||
| MolecDiffType | molecular, | ||
| MeshType | mesh, | ||
| std::string & | reason | ||
| ) |
The ERF configuration a policy is qualified with: no molecular, PBL or RANS diffusion; ERF turbulence only as the same Smagorinsky or Deardorff LES on every level, and only with HostPassiveScalar, which requires it; and a constant- or stretched-dz mesh. SBM's own AMR envelope (two levels, a constant-dz mesh) bounds the levels.
|
inlineconstexpr |
Referenced by erf_sbm::erf_detail_SBMTransport::accumulate_boundary_rates(), erf_sbm::SBMTransport::advance_stage(), erf_sbm::erf_detail_SBMTransport::check_physical_face_carriers(), erf_sbm::SBMTransport::define(), face_name(), erf_sbm::SBMBoundaryLedger::parse(), erf_sbm::SBMBoundaryLedger::reset(), erf_sbm::SBMBoundaryLedger::serialize(), erf_sbm::SBMTransport::set_physical_boundaries(), erf_sbm::SBMBoundaryLedger::total_gross(), erf_sbm::SBMBoundaryLedger::total_outward(), and validate_particle_mixing_boundaries().