Go to the source code of this file.
Functions | |
| PetscErrorCode | Validate_DrivenFlowConfiguration (UserCtx *user) |
| (Private) Validates all consistency rules for a driven flow (channel/pipe) setup. | |
| PetscErrorCode | Create_WallNoSlip (BoundaryCondition *bc) |
| Configures a BoundaryCondition object to behave as a no-slip, stationary wall. | |
| PetscErrorCode | Create_WallFreeSlip (BoundaryCondition *bc) |
| Configures a BoundaryCondition object to behave as a free-slip wall. | |
| PetscErrorCode | Create_InletPrescribedVelocity (BoundaryCondition *bc) |
| Configures a BoundaryCondition object as an inlet whose velocity is a configured source: expressions over position, time and grid-line fractions, in the Cartesian, curvilinear or face-normal frame, a PICSLICE file, or a file with expressions added to it, optionally rescaled to a bulk velocity or flow rate, with optional synthetic fluctuations. | |
| PetscErrorCode | Create_OutletConservation (BoundaryCondition *bc) |
| Configures a BoundaryCondition object for conservative outlet treatment. | |
| PetscErrorCode | Create_PeriodicGeometric (BoundaryCondition *bc) |
| Configures a BoundaryCondition object for geometric periodic coupling. | |
| PetscErrorCode | Create_PeriodicDrivenConstant (BoundaryCondition *bc) |
| Configures a BoundaryCondition object for periodic driven-flow forcing. | |
| PetscErrorCode | Create_PeriodicDrivenInitial (BoundaryCondition *bc) |
| Configures a BoundaryCondition object for initial-flux periodic driving. | |
| PetscErrorCode | Create_WallMoving (BoundaryCondition *bc) |
| Creates a wall moving along itself at a velocity source, the prescribed inlet's without its flux. | |
| PetscErrorCode | LogPrescribedFlowDiagnostics (UserCtx *user) |
Appends each prescribed-velocity inlet's flow rate and mean normal speed this step to inlet_flow.csv. | |
| PetscErrorCode Validate_DrivenFlowConfiguration | ( | UserCtx * | user | ) |
(Private) Validates all consistency rules for a driven flow (channel/pipe) setup.
This function enforces a strict set of rules to ensure a driven flow simulation is configured correctly. It is called by the main BoundarySystem_Validate dispatcher.
The validation rules are checked in a specific order:
DRIVEN_ handler is active. If not, the function returns immediately.INLET, OUTLET, or FARFIELD boundary conditions exist anywhere in the domain, as they are physically incompatible with a pressure-driven flow model.mathematical_type PERIODIC.DRIVEN_ handler type.| user | The UserCtx for a single block. |
(Private) Validates all consistency rules for a driven flow (channel/pipe) setup.
Definition at line 15 of file BC_Handlers.c.
| PetscErrorCode Create_WallNoSlip | ( | BoundaryCondition * | bc | ) |
Configures a BoundaryCondition object to behave as a no-slip, stationary wall.
| [in,out] | bc | Boundary object whose callbacks and handler metadata are installed. |
Configures a BoundaryCondition object to behave as a no-slip, stationary wall.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/BC_Handlers.h.
Definition at line 123 of file BC_Handlers.c.
| PetscErrorCode Create_WallFreeSlip | ( | BoundaryCondition * | bc | ) |
Configures a BoundaryCondition object to behave as a free-slip wall.
The wall is impenetrable and exerts no shear: the normal velocity vanishes and the tangential velocity has zero normal gradient, which is also the condition at a plane of symmetry. The boundary value follows the adjacent velocity, so the handler also provides UpdateUbcs.
| [in,out] | bc | Boundary object whose callbacks and handler metadata are installed. |
Configures a BoundaryCondition object to behave as a free-slip wall.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/BC_Handlers.h.
Definition at line 197 of file BC_Handlers.c.
| PetscErrorCode Create_InletPrescribedVelocity | ( | BoundaryCondition * | bc | ) |
Configures a BoundaryCondition object as an inlet whose velocity is a configured source: expressions over position, time and grid-line fractions, in the Cartesian, curvilinear or face-normal frame, a PICSLICE file, or a file with expressions added to it, optionally rescaled to a bulk velocity or flow rate, with optional synthetic fluctuations.
The face's source_id parameter names the options -face_source_<id>_* that hold the source (see PicurvVelocitySourceCreate()) and its optional _bulk_velocity or _flow_rate target. A source_file parameter names a staged PICSLICE file of solver-unit values, one per interior face slot: a normal speed, or a Cartesian velocity with three components, in one frame or in several frames interpolated in time. Expressions in the file's frame, when given, are added to it, and the target then rescales the expressions alone. The -face_source_<id>_fluct* options add digital-filter fluctuations after the rescaling.
| bc | A pointer to the generic BoundaryCondition object to be configured. |
Configures a BoundaryCondition object as an inlet whose velocity is a configured source: expressions over position, time and grid-line fractions, in the Cartesian, curvilinear or face-normal frame, a PICSLICE file, or a file with expressions added to it, optionally rescaled to a bulk velocity or flow rate, with optional synthetic fluctuations.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/BC_Handlers.h.
Definition at line 323 of file BC_Handlers.c.
| PetscErrorCode Create_OutletConservation | ( | BoundaryCondition * | bc | ) |
Configures a BoundaryCondition object for conservative outlet treatment.
The constructed handler applies outlet updates that preserve the solver's global mass/flux consistency assumptions.
| bc | A pointer to the generic BoundaryCondition object to be configured. |
Configures a BoundaryCondition object for conservative outlet treatment.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/BC_Handlers.h.
Definition at line 1414 of file BC_Handlers.c.
| PetscErrorCode Create_PeriodicGeometric | ( | BoundaryCondition * | bc | ) |
Configures a BoundaryCondition object for geometric periodic coupling.
This constructor wires periodic boundary callbacks that exchange values across opposite faces according to the configured periodic directions.
| bc | A pointer to the generic BoundaryCondition object to be configured. |
Configures a BoundaryCondition object for geometric periodic coupling.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/BC_Handlers.h.
Definition at line 2115 of file BC_Handlers.c.
| PetscErrorCode Create_PeriodicDrivenConstant | ( | BoundaryCondition * | bc | ) |
Configures a BoundaryCondition object for periodic driven-flow forcing.
This constructor wires the periodic callbacks that enforce a prescribed driving strategy (for example constant target flux) on a periodic direction pair.
| bc | A pointer to the generic BoundaryCondition object to be configured. |
Configures a BoundaryCondition object for periodic driven-flow forcing.
Definition at line 2278 of file BC_Handlers.c.
| PetscErrorCode Create_PeriodicDrivenInitial | ( | BoundaryCondition * | bc | ) |
Configures a BoundaryCondition object for initial-flux periodic driving.
Wires the same periodic callbacks as Create_PeriodicDrivenConstant(), but the target flux is measured from the field the run starts with rather than read from the bcs file, so this handler takes no target_flux parameter. The latched target is checkpointed so a restart holds the original value.
| bc | A pointer to the generic BoundaryCondition object to be configured. |
Configures a BoundaryCondition object for initial-flux periodic driving.
Definition at line 2626 of file BC_Handlers.c.
| PetscErrorCode Create_WallMoving | ( | BoundaryCondition * | bc | ) |
Creates a wall moving along itself at a velocity source, the prescribed inlet's without its flux.
| bc | Boundary condition to fill. |
Creates a wall moving along itself at a velocity source, the prescribed inlet's without its flux.
Definition at line 347 of file BC_Handlers.c.
| PetscErrorCode LogPrescribedFlowDiagnostics | ( | UserCtx * | user | ) |
Appends each prescribed-velocity inlet's flow rate and mean normal speed this step to inlet_flow.csv.
Collective.
| user | Block. |
Appends each prescribed-velocity inlet's flow rate and mean normal speed this step to inlet_flow.csv.
Definition at line 1065 of file BC_Handlers.c.