|
PICurv 0.1.0
A Parallel Particle-In-Cell Solver for Curvilinear LES
|
#include "BC_Handlers.h"Go to the source code of this file.
Data Structures | |
| struct | InletConstantData |
| Private data structure for the Constant Velocity Inlet handler. More... | |
| struct | InletParabolicData |
| Private data structure for the Parabolic Velocity Inlet handler. More... | |
| struct | DrivenConstantData |
| Private data structure for the handler. More... | |
Macros | |
| #define | __FUNCT__ "Validate_DrivenFlowConfiguration" |
| #define | __FUNCT__ "Create_WallNoSlip" |
| #define | __FUNCT__ "Apply_WallNoSlip" |
| #define | __FUNCT__ "Create_InletConstantVelocity" |
| #define | __FUNCT__ "Initialize_InletConstantVelocity" |
| #define | __FUNCT__ "PreStep_InletConstantVelocity" |
| #define | __FUNCT__ "Apply_InletConstantVelocity" |
| #define | __FUNCT__ "PostStep_InletConstantVelocity" |
| #define | __FUNCT__ "Destroy_InletConstantVelocity" |
| #define | __FUNCT__ "Create_InletParabolicProfile" |
| #define | __FUNCT__ "Initialize_InletParabolicProfile" |
| #define | __FUNCT__ "PreStep_InletParabolicProfile" |
| #define | __FUNCT__ "Apply_InletParabolicProfile" |
| #define | __FUNCT__ "PostStep_InletParabolicProfile" |
| #define | __FUNCT__ "Destroy_InletParabolicProfile" |
| #define | __FUNCT__ "Create_OutletConservation" |
| #define | __FUNCT__ "PreStep_OutletConservation" |
| #define | __FUNCT__ "Apply_OutletConservation" |
| #define | __FUNCT__ "PostStep_OutletConservation" |
| #define | __FUNCT__ "Create_PeriodicDrivenConstant" |
| #define | __FUNCT__ "Initialize_PeriodicDrivenConstant" |
| #define | __FUNCT__ "PreStep_PeriodicDrivenConstant" |
| #define | __FUNCT__ "Apply_PeriodicDrivenConstant" |
| #define | __FUNCT__ "Destroy_PeriodicDrivenConstant" |
Functions | |
| PetscErrorCode | Validate_DrivenFlowConfiguration (UserCtx *user) |
Internal helper implementation: Validate_DrivenFlowConfiguration(). | |
| static PetscErrorCode | Apply_WallNoSlip (BoundaryCondition *self, BCContext *ctx) |
Internal helper implementation: Apply_WallNoSlip(). | |
| PetscErrorCode | Create_WallNoSlip (BoundaryCondition *bc) |
| Implementation of Create_WallNoSlip(). | |
| static PetscErrorCode | Initialize_InletConstantVelocity (BoundaryCondition *self, BCContext *ctx) |
Internal helper implementation: Initialize_InletConstantVelocity(). | |
| static PetscErrorCode | PreStep_InletConstantVelocity (BoundaryCondition *self, BCContext *ctx, PetscReal *local_inflow_contribution, PetscReal *local_outflow_contribution) |
Internal helper implementation: PreStep_InletConstantVelocity(). | |
| static PetscErrorCode | Apply_InletConstantVelocity (BoundaryCondition *self, BCContext *ctx) |
Internal helper implementation: Apply_InletConstantVelocity(). | |
| static PetscErrorCode | PostStep_InletConstantVelocity (BoundaryCondition *self, BCContext *ctx, PetscReal *local_inflow_contribution, PetscReal *local_outflow_contribution) |
Internal helper implementation: PostStep_InletConstantVelocity(). | |
| static PetscErrorCode | Destroy_InletConstantVelocity (BoundaryCondition *self) |
Internal helper implementation: Destroy_InletConstantVelocity(). | |
| PetscErrorCode | Create_InletConstantVelocity (BoundaryCondition *bc) |
| Implementation of Create_InletConstantVelocity(). | |
| static PetscErrorCode | Initialize_InletParabolicProfile (BoundaryCondition *self, BCContext *ctx) |
Internal helper implementation: Initialize_InletParabolicProfile(). | |
| static PetscErrorCode | PreStep_InletParabolicProfile (BoundaryCondition *self, BCContext *ctx, PetscReal *local_inflow_contribution, PetscReal *local_outflow_contribution) |
Internal helper implementation: PreStep_InletParabolicProfile(). | |
| static PetscErrorCode | Apply_InletParabolicProfile (BoundaryCondition *self, BCContext *ctx) |
Internal helper implementation: Apply_InletParabolicProfile(). | |
| static PetscErrorCode | PostStep_InletParabolicProfile (BoundaryCondition *self, BCContext *ctx, PetscReal *local_inflow_contribution, PetscReal *local_outflow_contribution) |
Internal helper implementation: PostStep_InletParabolicProfile(). | |
| static PetscErrorCode | Destroy_InletParabolicProfile (BoundaryCondition *self) |
Internal helper implementation: Destroy_InletParabolicProfile(). | |
| PetscErrorCode | Create_InletParabolicProfile (BoundaryCondition *bc) |
| Implementation of Create_InletParabolicProfile(). | |
| static PetscErrorCode | PreStep_OutletConservation (BoundaryCondition *self, BCContext *ctx, PetscReal *local_inflow_contribution, PetscReal *local_outflow_contribution) |
Internal helper implementation: PreStep_OutletConservation(). | |
| static PetscErrorCode | Apply_OutletConservation (BoundaryCondition *self, BCContext *ctx) |
| (Handler Action) Applies mass conservation correction to the outlet face. | |
| static PetscErrorCode | PostStep_OutletConservation (BoundaryCondition *self, BCContext *ctx, PetscReal *local_inflow_contribution, PetscReal *local_outflow_contribution) |
Internal helper implementation: PostStep_OutletConservation(). | |
| PetscErrorCode | Create_OutletConservation (BoundaryCondition *bc) |
| Implementation of Create_OutletConservation(). | |
| PetscErrorCode | Create_PeriodicGeometric (BoundaryCondition *bc) |
| Implementation of Create_PeriodicGeometric(). | |
| static PetscErrorCode | Initialize_PeriodicDrivenConstant (BoundaryCondition *self, BCContext *ctx) |
Internal helper implementation: Initialize_PeriodicDrivenConstant(). | |
| static PetscErrorCode | PreStep_PeriodicDrivenConstant (BoundaryCondition *self, BCContext *ctx, PetscReal *local_inflow_contribution, PetscReal *local_outflow_contribution) |
Internal helper implementation: PreStep_PeriodicDrivenConstant(). | |
| static PetscErrorCode | Apply_PeriodicDrivenConstant (BoundaryCondition *self, BCContext *ctx) |
Internal helper implementation: Apply_PeriodicDrivenConstant(). | |
| static PetscErrorCode | Destroy_PeriodicDrivenConstant (BoundaryCondition *self) |
Internal helper implementation: Destroy_PeriodicDrivenConstant(). | |
| PetscErrorCode | Create_PeriodicDrivenConstant (BoundaryCondition *bc) |
Internal helper implementation: Create_PeriodicDrivenConstant(). | |
| struct InletConstantData |
Private data structure for the Constant Velocity Inlet handler.
Definition at line 311 of file BC_Handlers.c.
| Data Fields | ||
|---|---|---|
| PetscReal | normal_velocity | |
| struct InletParabolicData |
Private data structure for the Parabolic Velocity Inlet handler.
Stores the peak velocity and pre-computed cross-stream geometry needed to evaluate the parabolic profile at each boundary node.
Definition at line 705 of file BC_Handlers.c.
| struct DrivenConstantData |
Private data structure for the handler.
Definition at line 1682 of file BC_Handlers.c.
| Data Fields | ||
|---|---|---|
| char | direction | |
| PetscReal | targetVolumetricFlux | |
| PetscReal | boundaryVelocityCorrection | |
| PetscBool | isMasterController | |
| PetscBool | applyBoundaryTrim | |
| #define __FUNCT__ "Validate_DrivenFlowConfiguration" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "Create_WallNoSlip" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "Apply_WallNoSlip" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "Create_InletConstantVelocity" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "Initialize_InletConstantVelocity" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "PreStep_InletConstantVelocity" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "Apply_InletConstantVelocity" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "PostStep_InletConstantVelocity" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "Destroy_InletConstantVelocity" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "Create_InletParabolicProfile" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "Initialize_InletParabolicProfile" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "PreStep_InletParabolicProfile" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "Apply_InletParabolicProfile" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "PostStep_InletParabolicProfile" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "Destroy_InletParabolicProfile" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "Create_OutletConservation" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "PreStep_OutletConservation" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "Apply_OutletConservation" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "PostStep_OutletConservation" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "Create_PeriodicDrivenConstant" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "Initialize_PeriodicDrivenConstant" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "PreStep_PeriodicDrivenConstant" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "Apply_PeriodicDrivenConstant" |
Definition at line 10 of file BC_Handlers.c.
| #define __FUNCT__ "Destroy_PeriodicDrivenConstant" |
Definition at line 10 of file BC_Handlers.c.
| PetscErrorCode Validate_DrivenFlowConfiguration | ( | UserCtx * | user | ) |
Internal helper implementation: Validate_DrivenFlowConfiguration().
(Private) Validates all consistency rules for a driven flow (channel/pipe) setup.
Local to this translation unit.
Definition at line 15 of file BC_Handlers.c.
|
static |
Internal helper implementation: Apply_WallNoSlip().
Local to this translation unit.
Definition at line 144 of file BC_Handlers.c.
| PetscErrorCode Create_WallNoSlip | ( | BoundaryCondition * | bc | ) |
Implementation of Create_WallNoSlip().
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 114 of file BC_Handlers.c.
|
static |
Internal helper implementation: Initialize_InletConstantVelocity().
Local to this translation unit.
Definition at line 352 of file BC_Handlers.c.
|
static |
Internal helper implementation: PreStep_InletConstantVelocity().
Local to this translation unit.
Definition at line 402 of file BC_Handlers.c.
|
static |
Internal helper implementation: Apply_InletConstantVelocity().
Local to this translation unit.
Definition at line 425 of file BC_Handlers.c.
|
static |
Internal helper implementation: PostStep_InletConstantVelocity().
Local to this translation unit.
Definition at line 561 of file BC_Handlers.c.
|
static |
Internal helper implementation: Destroy_InletConstantVelocity().
Local to this translation unit.
Definition at line 656 of file BC_Handlers.c.
| PetscErrorCode Create_InletConstantVelocity | ( | BoundaryCondition * | bc | ) |
Implementation of Create_InletConstantVelocity().
Configures a BoundaryCondition object to behave as a constant velocity inlet.
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.
|
static |
Internal helper implementation: Initialize_InletParabolicProfile().
Local to this translation unit.
Definition at line 750 of file BC_Handlers.c.
|
static |
Internal helper implementation: PreStep_InletParabolicProfile().
Local to this translation unit.
Definition at line 816 of file BC_Handlers.c.
|
static |
Internal helper implementation: Apply_InletParabolicProfile().
Local to this translation unit.
Definition at line 836 of file BC_Handlers.c.
|
static |
Internal helper implementation: PostStep_InletParabolicProfile().
Local to this translation unit.
Definition at line 994 of file BC_Handlers.c.
|
static |
Internal helper implementation: Destroy_InletParabolicProfile().
Local to this translation unit.
Definition at line 1088 of file BC_Handlers.c.
| PetscErrorCode Create_InletParabolicProfile | ( | BoundaryCondition * | bc | ) |
Implementation of Create_InletParabolicProfile().
Configures a BoundaryCondition object for a parabolic inlet profile.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/BC_Handlers.h.
Definition at line 721 of file BC_Handlers.c.
|
static |
Internal helper implementation: PreStep_OutletConservation().
Local to this translation unit.
Definition at line 1158 of file BC_Handlers.c.
|
static |
(Handler Action) Applies mass conservation correction to the outlet face.
This function calculates a global correction factor based on the total inflow and outflow fluxes and applies it to the contravariant velocity (ucont) on the outlet face to ensure mass conservation.
Definition at line 1294 of file BC_Handlers.c.
|
static |
Internal helper implementation: PostStep_OutletConservation().
Local to this translation unit.
Definition at line 1507 of file BC_Handlers.c.
| PetscErrorCode Create_OutletConservation | ( | BoundaryCondition * | bc | ) |
Implementation of Create_OutletConservation().
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 1129 of file BC_Handlers.c.
| PetscErrorCode Create_PeriodicGeometric | ( | BoundaryCondition * | bc | ) |
Implementation of Create_PeriodicGeometric().
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 1646 of file BC_Handlers.c.
|
static |
Internal helper implementation: Initialize_PeriodicDrivenConstant().
Local to this translation unit.
Definition at line 1743 of file BC_Handlers.c.
|
static |
Internal helper implementation: PreStep_PeriodicDrivenConstant().
Local to this translation unit.
Definition at line 1811 of file BC_Handlers.c.
|
static |
Internal helper implementation: Apply_PeriodicDrivenConstant().
Local to this translation unit.
Definition at line 1993 of file BC_Handlers.c.
|
static |
Internal helper implementation: Destroy_PeriodicDrivenConstant().
Local to this translation unit.
Definition at line 2097 of file BC_Handlers.c.
| PetscErrorCode Create_PeriodicDrivenConstant | ( | BoundaryCondition * | bc | ) |
Internal helper implementation: Create_PeriodicDrivenConstant().
Configures a BoundaryCondition object for periodic driven-flow forcing.
Local to this translation unit.
Definition at line 1699 of file BC_Handlers.c.