Go to the source code of this file.
Macros | |
| #define | EDGE_FILL(tk, tj, ti, ak, aj, ai, bk, bj, bi) FillEdgeCell(f, dof, free_slip, metric, tk, tj, ti, ak, aj, ai, bk, bj, bi) |
Functions | |
| PetscBool | BoundaryFaceHasWallShear (const BoundaryFaceConfig *face) |
| Implementation of BoundaryFaceHasWallShear(). | |
| PetscErrorCode | CanRankServiceFace (const DMDALocalInfo *info, PetscInt IM_nodes_global, PetscInt JM_nodes_global, PetscInt KM_nodes_global, BCFace face_id, PetscBool *can_service_out) |
| Implementation of CanRankServiceFace(). | |
| PetscErrorCode | GetBoundaryFaceElements (UserCtx *user, BCFace face_id, BoundaryFaceElements *elements) |
| Implementation of GetBoundaryFaceElements(). | |
| MomentumRowType | ClassifyMomentumRow (UserCtx *user, PetscInt i, PetscInt j, PetscInt k, PetscInt component, PetscInt *ri, PetscInt *rj, PetscInt *rk) |
| Implementation of ClassifyMomentumRow(). | |
| PetscBool | MomentumRowIsSolidMasked (const PetscReal ***nvert, PetscInt i, PetscInt j, PetscInt k, PetscInt component) |
| Implementation of MomentumRowIsSolidMasked(). | |
| PetscErrorCode | EnforceRHSBoundaryConditions (UserCtx *user) |
| Implementation of EnforceRHSBoundaryConditions(). | |
| PetscErrorCode | BoundaryCondition_Create (BCHandlerType handler_type, BoundaryCondition **new_bc_ptr) |
| Implementation of BoundaryCondition_Create(). | |
| PetscErrorCode | BoundarySystem_Validate (UserCtx *user) |
| Implementation of BoundarySystem_Validate(). | |
| PetscErrorCode | BoundarySystem_Initialize (UserCtx *user, const char *bcs_filename) |
| Implementation of BoundarySystem_Initialize(). | |
| PetscErrorCode | PropagateBoundaryConfigToCoarserLevels (SimCtx *simCtx) |
| Implementation of PropagateBoundaryConfigToCoarserLevels(). | |
| PetscErrorCode | BoundarySystem_ExecuteStep (UserCtx *user) |
| Implementation of BoundarySystem_ExecuteStep(). | |
| PetscErrorCode | BoundarySystem_RefreshUbcs (UserCtx *user) |
| Implementation of BoundarySystem_RefreshUbcs(). | |
| PetscErrorCode | BoundarySystem_Destroy (UserCtx *user) |
| Implementation of BoundarySystem_Destroy(). | |
| static PetscErrorCode | TransferPeriodicFieldByDirection (UserCtx *user, FieldId field_id, char direction) |
| Copies one cell field's wrapped local values onto the owned periodic duplicate plane. | |
| static PetscErrorCode | VerifyLocalGhostsCurrent (UserCtx *user, FieldId field_id, const char *where) |
| Requires a field's local vector to equal a full ghost update, when -picurv_verify_ghost_updates is set. | |
| static PetscErrorCode | VerifyBoundaryPassFinite (UserCtx *user) |
| Requires the boundary pass's fields to be finite, when -picurv_verify_ghost_updates is set. | |
| static PetscErrorCode | PoisonStaleLocalGhosts (UserCtx *user, FieldId field_id) |
| Fills a field's local vector with NaN, when -picurv_verify_ghost_updates is set. | |
| static PetscErrorCode | GetPeriodicPlaneScatter (DM dm, char direction, VecScatter *plane) |
| The scatter that refreshes only the local entries mirroring a DM's two end planes in one direction. | |
| static PetscErrorCode | RefreshPeriodicPlaneGhosts (UserCtx *user, FieldId field_id, char direction) |
| Brings a field's local vector up to date after a periodic transfer along one direction. | |
| static PetscErrorCode | SynchronizePeriodicCellFieldsFrom (UserCtx *user, PetscInt num_fields, const FieldId field_ids[], PetscBool locals_current, PetscBool final_update) |
| Body of SynchronizePeriodicCellFields(), optionally without its first or last ghost update. | |
| PetscErrorCode | SynchronizePeriodicCellFields (UserCtx *user, PetscInt num_fields, const FieldId field_ids[]) |
| Implementation of SynchronizePeriodicCellFields(). | |
| static PetscErrorCode | GetPersistentFaceField (UserCtx *user, FieldId field_id, char face_direction, DM *dm, Vec *global_vec, Vec *local_vec, PetscInt *dof) |
| Resolves one registered persistent single-face-family field. | |
| static PetscErrorCode | IsFaceCenterCoordinateField (FieldId field_id, PetscBool *is_coordinate) |
| Returns whether a registered face field stores physical coordinates. | |
| static PetscErrorCode | TranslatePeriodicFaceCenterGhosts (UserCtx *user, Vec local_vec) |
| Applies geometric translations to wrapped face-center ghost coordinates. | |
| static PetscErrorCode | TransferPeriodicFaceFieldByDirection (UserCtx *user, FieldId field_id, char face_direction, char periodic_direction) |
| Transfers one registered face-family field along one periodic axis. | |
| PetscErrorCode | SynchronizePeriodicFaceFields (UserCtx *user, char face_direction, PetscInt num_fields, const FieldId field_ids[]) |
| Synchronizes persistent fields belonging to one face family. | |
| static PetscErrorCode | GetPersistentStaggeredField (UserCtx *user, FieldId field_id, DM *dm, Vec *global_vec, Vec *local_vec) |
| Resolves one registered persistent component-staggered field. | |
| static PetscErrorCode | TransferPeriodicStaggeredFieldByDirection (UserCtx *user, FieldId field_id, char periodic_direction) |
| Transfers one component-staggered field along one periodic axis. | |
| static PetscErrorCode | SynchronizePeriodicStaggeredFieldsFrom (UserCtx *user, PetscInt num_fields, const FieldId field_ids[], PetscBool locals_current) |
| Body of SynchronizePeriodicStaggeredFields(), optionally without its leading ghost update. | |
| PetscErrorCode | SynchronizePeriodicStaggeredFields (UserCtx *user, PetscInt num_fields, const FieldId field_ids[]) |
| Implementation of SynchronizePeriodicStaggeredFields(). | |
| PetscErrorCode | PreparePeriodicQuickStencilFields (UserCtx *user, Vec local_vector_field, Vec local_scalar_field) |
| Implementation of PreparePeriodicQuickStencilFields(). | |
| PetscErrorCode | SynchronizePeriodicLocalStaggeredField (UserCtx *user, Vec local_field) |
| Implementation of SynchronizePeriodicLocalStaggeredField(). | |
| PetscErrorCode | ApplyMetricsPeriodicBCs (UserCtx *user) |
| Implementation of ApplyMetricsPeriodicBCs(). | |
| PetscErrorCode | ApplyPeriodicBCs (UserCtx *user, PetscBool final_cell_update) |
| Implementation of ApplyPeriodicBCs(). | |
| PetscErrorCode | UpdateDummyCells (UserCtx *user, FieldId field_id) |
| Implementation of UpdateDummyCells(). | |
| static BCFace | EdgeSeparatingFace (PetscInt tk, PetscInt tj, PetscInt ti, PetscInt nk, PetscInt nj, PetscInt ni) |
| Internal helper: the face separating an edge dummy cell from one neighbour. | |
| static void | FillEdgeCell (PetscScalar ****f, PetscInt dof, const PetscBool free_slip[6], Cmpnts ***const metric[3], PetscInt tk, PetscInt tj, PetscInt ti, PetscInt ak, PetscInt aj, PetscInt ai, PetscInt bk, PetscInt bj, PetscInt bi) |
| Internal helper: fills one edge dummy cell from its two face-adjacent dummy cells. | |
| PetscErrorCode | UpdateCornerNodes (UserCtx *user, FieldId field_id) |
| Implementation of UpdateCornerNodes(). | |
| static PetscErrorCode | WallModelFrictionVelocity (UserCtx *user, const PetscReal ***pressure, PetscInt i, PetscInt j, PetscInt k, PetscReal roughness_height, PetscReal distance_reference, Cmpnts tangent, PetscReal tangent_speed, PetscReal *friction_velocity) |
| The signed friction velocity the configured wall law gives for one wall-face element. | |
| PetscErrorCode | ApplyWallFunction (UserCtx *user) |
| Implementation of ApplyWallFunction(). | |
| PetscErrorCode | LogWallModelDiagnostics (UserCtx *user) |
| Implementation of LogWallModelDiagnostics(). | |
| PetscErrorCode | LogBoundaryPressureDiagnostics (UserCtx *user) |
| Implementation of LogBoundaryPressureDiagnostics(). | |
| PetscErrorCode | FinalizePostProjectionCellFields (UserCtx *user) |
| Implementation of FinalizePostProjectionCellFields(). | |
| PetscErrorCode | FinalizeCellFieldsFromBoundaryValues (UserCtx *user) |
| Implementation of FinalizeCellFieldsFromBoundaryValues(). | |
| static PetscErrorCode | ApplyBoundaryPass (UserCtx *user, PetscBool any_periodic) |
| One boundary pass: the handlers, Contra2Cart, the wall function, the dummy, periodic and corner updates, and the ghost synchronisations that leave the fields consistent. | |
| static PetscErrorCode | VerifySinglePassIsFinal (UserCtx *user, PetscBool any_periodic) |
| In verify mode, checks that the passes a single-pass call skipped would change nothing. | |
| PetscErrorCode | ApplyBoundaryConditions (UserCtx *user) |
| Implementation of ApplyBoundaryConditions(). | |
| #define EDGE_FILL | ( | tk, | |
| tj, | |||
| ti, | |||
| ak, | |||
| aj, | |||
| ai, | |||
| bk, | |||
| bj, | |||
| bi | |||
| ) | FillEdgeCell(f, dof, free_slip, metric, tk, tj, ti, ak, aj, ai, bk, bj, bi) |
| PetscBool BoundaryFaceHasWallShear | ( | const BoundaryFaceConfig * | face | ) |
Implementation of BoundaryFaceHasWallShear().
Reports whether a boundary face is a wall that exerts shear on the flow.
Definition at line 9 of file Boundaries.c.
| PetscErrorCode CanRankServiceFace | ( | const DMDALocalInfo * | info, |
| PetscInt | IM_nodes_global, | ||
| PetscInt | JM_nodes_global, | ||
| PetscInt | KM_nodes_global, | ||
| BCFace | face_id, | ||
| PetscBool * | can_service_out | ||
| ) |
Implementation of CanRankServiceFace().
Determines if the current MPI rank owns any part of a specified global face.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/Boundaries.h.
Definition at line 22 of file Boundaries.c.
| PetscErrorCode GetBoundaryFaceElements | ( | UserCtx * | user, |
| BCFace | face_id, | ||
| BoundaryFaceElements * | elements | ||
| ) |
Implementation of GetBoundaryFaceElements().
The elements of a boundary face this rank owns, as index ranges.
Definition at line 105 of file Boundaries.c.
| MomentumRowType ClassifyMomentumRow | ( | UserCtx * | user, |
| PetscInt | i, | ||
| PetscInt | j, | ||
| PetscInt | k, | ||
| PetscInt | component, | ||
| PetscInt * | ri, | ||
| PetscInt * | rj, | ||
| PetscInt * | rk | ||
| ) |
Implementation of ClassifyMomentumRow().
Single source of truth for "which staggered momentum rows are unknowns".
Pure index/boundary-type arithmetic: no field reads, no communication. Precedence matters. A conditioned row is reported first because its explicit Dirichlet value is more specific than the homogeneous fallback, and a periodic duplicate is reported before the homogeneous case because the Newton path needs its representative index to build F = X_dup - X_rep.
Definition at line 139 of file Boundaries.c.
| PetscBool MomentumRowIsSolidMasked | ( | const PetscReal *** | nvert, |
| PetscInt | i, | ||
| PetscInt | j, | ||
| PetscInt | k, | ||
| PetscInt | component | ||
| ) |
Implementation of MomentumRowIsSolidMasked().
Reports whether a momentum row is masked out by the solid-cell field.
Full API contract is documented with the header declaration in include/Boundaries.h.
Definition at line 193 of file Boundaries.c.
| PetscErrorCode EnforceRHSBoundaryConditions | ( | UserCtx * | user | ) |
Implementation of EnforceRHSBoundaryConditions().
Zeroes every momentum RHS row that does not carry an independent unknown.
The sweep is deliberately expressed over every owned location rather than over the six boundary slabs: restating "which indices can be non-physical" here is exactly the duplication that let the periodic duplicate column go unzeroed. ClassifyMomentumRow() is a handful of integer comparisons and the walk is a single pass with no stencil access, which is negligible next to the several ghosted stencil passes ComputeRHS() has already made over the same range. MomentumNewtonKrylov_ApplyConstraints() walks the same range the same way.
Definition at line 224 of file Boundaries.c.
| PetscErrorCode BoundaryCondition_Create | ( | BCHandlerType | handler_type, |
| BoundaryCondition ** | new_bc_ptr | ||
| ) |
Implementation of BoundaryCondition_Create().
(Private) Creates and configures a specific BoundaryCondition handler object.
Definition at line 265 of file Boundaries.c.
| PetscErrorCode BoundarySystem_Validate | ( | UserCtx * | user | ) |
Implementation of BoundarySystem_Validate().
(Public) Validates the consistency and compatibility of the parsed boundary condition system.
Definition at line 352 of file Boundaries.c.
| PetscErrorCode BoundarySystem_Initialize | ( | UserCtx * | user, |
| const char * | bcs_filename | ||
| ) |
Implementation of BoundarySystem_Initialize().
Initializes the entire boundary system.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/Boundaries.h.
Definition at line 412 of file Boundaries.c.
| PetscErrorCode PropagateBoundaryConfigToCoarserLevels | ( | SimCtx * | simCtx | ) |
Implementation of PropagateBoundaryConfigToCoarserLevels().
Propagates boundary condition configuration from finest to all coarser multigrid levels.
Definition at line 530 of file Boundaries.c.
| PetscErrorCode BoundarySystem_ExecuteStep | ( | UserCtx * | user | ) |
Implementation of BoundarySystem_ExecuteStep().
Executes one full boundary condition update cycle for a time step.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/Boundaries.h.
Definition at line 600 of file Boundaries.c.
| PetscErrorCode BoundarySystem_RefreshUbcs | ( | UserCtx * | user | ) |
Implementation of BoundarySystem_RefreshUbcs().
(Private) A lightweight execution engine that calls the UpdateUbcs() method on all relevant handlers.
Definition at line 1020 of file Boundaries.c.
| PetscErrorCode BoundarySystem_Destroy | ( | UserCtx * | user | ) |
Implementation of BoundarySystem_Destroy().
Cleans up and destroys all boundary system resources.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/Boundaries.h.
Definition at line 1070 of file Boundaries.c.
|
static |
Copies one cell field's wrapped local values onto the owned periodic duplicate plane.
Handles scalar and three-component storage for one selected logical axis.
Definition at line 1117 of file Boundaries.c.
|
static |
Requires a field's local vector to equal a full ghost update, when -picurv_verify_ghost_updates is set.
Rebuilds the update UpdateLocalGhosts() would make (scatter, then periodic repair) into a scratch vector and compares every local entry bitwise. The periodic synchronizers call it where they rely on an update they did not perform: a caller's locals_current claim and every plane-only refresh.
| [in] | user | Block context owning the field. |
| [in] | field_id | Field whose local vector is checked. |
| [in] | where | Short description of the claim, for the error message. |
Definition at line 1207 of file Boundaries.c.
|
static |
Requires the boundary pass's fields to be finite, when -picurv_verify_ghost_updates is set.
The companion of PoisonStaleLocalGhosts(): a stale local vector it filled with NaN and something then read would leave non-finite values in these fields.
| [in] | user | Block context after ApplyBoundaryConditions(). |
Definition at line 1247 of file Boundaries.c.
Fills a field's local vector with NaN, when -picurv_verify_ghost_updates is set.
Marks a local vector the boundary pass leaves out of date because a later full UpdateLocalGhosts() rewrites all of it before any read. If anything reads it in between, the NaN reaches the solution and the run's output.
| [in] | user | Block context owning the field. |
| [in] | field_id | Field whose local vector is left stale. |
Definition at line 1280 of file Boundaries.c.
|
static |
The scatter that refreshes only the local entries mirroring a DM's two end planes in one direction.
A periodic transfer in direction d writes only the global planes 0 and M_d-1. The scatter is the DMDA's global-to-local scatter restricted to the leaves whose periodic (wrapped) index along d is one of those planes: the owners' copies and every ghost copy, including those across the seam. Built on first use, collectively since every rank synchronizes the same DMs, and kept on the DM, which owns it.
| [in] | dm | DMDA of the field being synchronized. |
| [in] | direction | 'i', 'j' or 'k'. |
| [out] | plane | The scatter, or NULL when the DM is not periodic along direction. |
Definition at line 1305 of file Boundaries.c.
|
static |
Brings a field's local vector up to date after a periodic transfer along one direction.
Precondition: the local vector was the ghost update of the global vector before the transfer. The transfer wrote only the end planes along direction, so rescattering the entries that mirror those planes and reapplying the periodic repair leaves exactly what UpdateLocalGhosts() would. Static so that only the periodic synchronizers below, which establish the precondition, can call it; -picurv_verify_ghost_updates checks each call.
| [in,out] | user | Block context owning the field. |
| [in] | field_id | Field just transferred. |
| [in] | direction | Direction of that transfer. |
Definition at line 1363 of file Boundaries.c.
|
static |
Body of SynchronizePeriodicCellFields(), optionally without its first or last ghost update.
UpdateLocalGhosts() rebuilds the whole local vector from the global one, so it is an exact no-op on a field whose global vector has not been written since its last update. A caller that knows this from its own call sequence passes locals_current and skips that leading exchange. A caller that updates every listed field again before anything reads its local vector passes final_update = PETSC_FALSE and skips the update after the last direction's transfers, leaving the local vectors stale until then. The transfers themselves always run.
| [in,out] | user | Block context owning the fields. |
| [in] | num_fields | Number of cell fields to synchronize. |
| [in] | field_ids | Field identifiers. |
| [in] | locals_current | PETSC_TRUE when every listed field's local vector is already the ghost update of its current global vector. |
| [in] | final_update | PETSC_FALSE to leave the last direction's update to the caller. |
Definition at line 1401 of file Boundaries.c.
| PetscErrorCode SynchronizePeriodicCellFields | ( | UserCtx * | user, |
| PetscInt | num_fields, | ||
| const FieldId | field_ids[] | ||
| ) |
Implementation of SynchronizePeriodicCellFields().
Synchronizes periodic endpoint cells for a list of cell-centered fields.
Full API contract is documented with the header declaration in include/Boundaries.h.
Definition at line 1474 of file Boundaries.c.
|
static |
Resolves one registered persistent single-face-family field.
Definition at line 1488 of file Boundaries.c.
|
static |
Returns whether a registered face field stores physical coordinates.
Definition at line 1522 of file Boundaries.c.
|
static |
Applies geometric translations to wrapped face-center ghost coordinates.
Definition at line 1539 of file Boundaries.c.
|
static |
Transfers one registered face-family field along one periodic axis.
Definition at line 1584 of file Boundaries.c.
| PetscErrorCode SynchronizePeriodicFaceFields | ( | UserCtx * | user, |
| char | face_direction, | ||
| PetscInt | num_fields, | ||
| const FieldId | field_ids[] | ||
| ) |
Synchronizes persistent fields belonging to one face family.
The function performs deterministic I/J/K directional passes with an intermediate ghost refresh after each active periodic direction. It updates persistent global seam/dummy values only; face-specific local stencil repair remains a separate operation.
| user | The main UserCtx struct. | |
| face_direction | Face family shared by every field (‘'i’,'j', or'k'`). | |
| [in] | num_fields | Count of registered face fields. |
| field_ids | Registered persistent face-field identities. |
Definition at line 1658 of file Boundaries.c.
|
static |
Resolves one registered persistent component-staggered field.
Definition at line 1720 of file Boundaries.c.
|
static |
Transfers one component-staggered field along one periodic axis.
Definition at line 1743 of file Boundaries.c.
|
static |
Body of SynchronizePeriodicStaggeredFields(), optionally without its leading ghost update.
As for SynchronizePeriodicCellFieldsFrom(): locals_current skips only the leading UpdateLocalGhosts(), an exact no-op when no global vector was written since its last update; the per-direction transfers and their updates always run.
| [in,out] | user | Block context owning the fields. |
| [in] | num_fields | Number of staggered fields to synchronize. |
| [in] | field_ids | Field identifiers. |
| [in] | locals_current | PETSC_TRUE when every listed field's local vector is already the ghost update of its current global vector. |
Definition at line 1801 of file Boundaries.c.
| PetscErrorCode SynchronizePeriodicStaggeredFields | ( | UserCtx * | user, |
| PetscInt | num_fields, | ||
| const FieldId | field_ids[] | ||
| ) |
Implementation of SynchronizePeriodicStaggeredFields().
Synchronizes persistent component-staggered vector fields.
Definition at line 1850 of file Boundaries.c.
| PetscErrorCode PreparePeriodicQuickStencilFields | ( | UserCtx * | user, |
| Vec | local_vector_field, | ||
| Vec | local_scalar_field | ||
| ) |
Implementation of PreparePeriodicQuickStencilFields().
Repairs the outer adjacent periodic ghosts used by QUICK cell stencils.
Definition at line 1865 of file Boundaries.c.
| PetscErrorCode SynchronizePeriodicLocalStaggeredField | ( | UserCtx * | user, |
| Vec | local_field | ||
| ) |
Implementation of SynchronizePeriodicLocalStaggeredField().
Synchronizes one local-only component-staggered periodic work field.
Definition at line 1931 of file Boundaries.c.
| PetscErrorCode ApplyMetricsPeriodicBCs | ( | UserCtx * | user | ) |
Implementation of ApplyMetricsPeriodicBCs().
(Orchestrator) Updates all metric-related fields in the local ghost cell regions for periodic boundaries.
Definition at line 1971 of file Boundaries.c.
| PetscErrorCode ApplyPeriodicBCs | ( | UserCtx * | user, |
| PetscBool | final_cell_update | ||
| ) |
Implementation of ApplyPeriodicBCs().
Applies periodic boundary conditions by copying data across domain boundaries for all relevant fields.
Definition at line 1998 of file Boundaries.c.
Implementation of UpdateDummyCells().
Fills the dummy cells on the non-periodic faces of one cell-centred field.
Full API contract is documented with the header declaration in include/Boundaries.h.
Definition at line 2037 of file Boundaries.c.
|
static |
Internal helper: the face separating an edge dummy cell from one neighbour.
Local to this translation unit. The two cells differ in exactly one index, and the target's own value of it says which side of the domain the face is on.
Definition at line 2131 of file Boundaries.c.
|
static |
Internal helper: fills one edge dummy cell from its two face-adjacent dummy cells.
Local to this translation unit. Across a free-slip wall the flow is the mirror image of the flow inside, so the edge cell is the mirror image of the neighbour on the other side of that wall: a scalar is copied, and a velocity has its component along the wall's metric reversed. Elsewhere the edge cell is the mean of the two neighbours.
Definition at line 2148 of file Boundaries.c.
Implementation of UpdateCornerNodes().
Fills the edge and corner dummy cells of one cell-centred field.
Full API contract is documented with the header declaration in include/Boundaries.h.
Definition at line 2183 of file Boundaries.c.
|
static |
The signed friction velocity the configured wall law gives for one wall-face element.
Each law is inverted at the reference cell's wall distance for the wall-parallel speed of that cell relative to the wall, which the caller has already projected. Cabot's departure from an equilibrium profile is driven by the wall-parallel pressure gradient, taken from the resolved pressure at the first cell along the same direction; the pressure is the previous projection's, the same lag every other explicit use of it carries. Its momentum balance gives a signed stress, so the sign is returned on the friction velocity: negative when an adverse gradient reverses the stress. The other two laws are always positive.
Definition at line 2268 of file Boundaries.c.
| PetscErrorCode ApplyWallFunction | ( | UserCtx * | user | ) |
Implementation of ApplyWallFunction().
Evaluates the selected wall law on every wall-face element and stores the wall stress.
Definition at line 2314 of file Boundaries.c.
| PetscErrorCode LogWallModelDiagnostics | ( | UserCtx * | user | ) |
Implementation of LogWallModelDiagnostics().
Appends one row of near-wall statistics to <run.analysis.metrics>/wall_model.csv.
Full API contract is documented with the header declaration in include/Boundaries.h.
Definition at line 2541 of file Boundaries.c.
| PetscErrorCode LogBoundaryPressureDiagnostics | ( | UserCtx * | user | ) |
Implementation of LogBoundaryPressureDiagnostics().
Records each INLET and OUTLET face's area-weighted mean pressure this step.
Definition at line 2730 of file Boundaries.c.
| PetscErrorCode FinalizePostProjectionCellFields | ( | UserCtx * | user | ) |
Implementation of FinalizePostProjectionCellFields().
Finalizes cell-centered fields after the projection step.
Full API contract is documented with the header declaration in include/Boundaries.h.
Definition at line 2814 of file Boundaries.c.
| PetscErrorCode FinalizeCellFieldsFromBoundaryValues | ( | UserCtx * | user | ) |
Implementation of FinalizeCellFieldsFromBoundaryValues().
Brings Ucat's and P's dummy cells, periodic endpoints, corners and ghosts in line with their interior values and the boundary values already in Ubcs.
Definition at line 2837 of file Boundaries.c.
|
static |
One boundary pass: the handlers, Contra2Cart, the wall function, the dummy, periodic and corner updates, and the ghost synchronisations that leave the fields consistent.
Local to this translation unit; ApplyBoundaryConditions() decides how many to run.
Definition at line 2879 of file Boundaries.c.
|
static |
In verify mode, checks that the passes a single-pass call skipped would change nothing.
Runs the two passes the coupled path would add and requires Ucont, Ucat, P and the boundary values to be bitwise what the first pass left. A mismatch means a handler that reads in-pass state does not set needs_repeat_pass. Local to this translation unit.
Definition at line 2961 of file Boundaries.c.
| PetscErrorCode ApplyBoundaryConditions | ( | UserCtx * | user | ) |
Implementation of ApplyBoundaryConditions().
Main boundary-condition orchestrator executed during solver timestepping.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/Boundaries.h.
Definition at line 2992 of file Boundaries.c.