|
PICurv 0.1.0
A Parallel Particle-In-Cell Solver for Curvilinear LES
|
Go to the source code of this file.
Macros | |
| #define | BBOX_TOLERANCE 1e-6 |
| #define | __FUNCT__ "ParseAndSetGridInputs" |
| #define | __FUNCT__ "DefineAllGridDimensions" |
| #define | __FUNCT__ "InitializeSingleGridDM" |
| #define | __FUNCT__ "InitializeAllGridDMs" |
| #define | __FUNCT__ "AssignAllGridCoordinates" |
| #define | __FUNCT__ "SetFinestLevelCoordinates" |
| #define | __FUNCT__ "GenerateAndSetCoordinates" |
| #define | __FUNCT__ "ReadAndSetCoordinates" |
| #define | __FUNCT__ "RestrictCoordinates" |
| #define | __FUNCT__ "ComputeLocalBoundingBox" |
| #define | __FUNCT__ "GatherAllBoundingBoxes" |
| #define | __FUNCT__ "BroadcastAllBoundingBoxes" |
| #define | __FUNCT__ "CalculateInletProperties" |
| #define | __FUNCT__ "CalculateOutletProperties" |
| #define | __FUNCT__ "CalculateFaceCenterAndArea" |
Functions | |
| static PetscErrorCode | ParseAndSetGridInputs (UserCtx *user) |
Internal helper implementation: ParseAndSetGridInputs(). | |
| PetscErrorCode | DefineAllGridDimensions (SimCtx *simCtx) |
Internal helper implementation: DefineAllGridDimensions(). | |
| static PetscErrorCode | InitializeSingleGridDM (UserCtx *user, UserCtx *coarse_user) |
Internal helper implementation: InitializeSingleGridDM(). | |
| PetscErrorCode | InitializeAllGridDMs (SimCtx *simCtx) |
Internal helper implementation: InitializeAllGridDMs(). | |
| static PetscErrorCode | SetFinestLevelCoordinates (UserCtx *user) |
Internal helper implementation: SetFinestLevelCoordinates(). | |
| static PetscErrorCode | GenerateAndSetCoordinates (UserCtx *user) |
Internal helper implementation: GenerateAndSetCoordinates(). | |
| static PetscErrorCode | ReadAndSetCoordinates (UserCtx *user, FILE *fd) |
Internal helper implementation: ReadAndSetCoordinates(). | |
| static PetscErrorCode | RestrictCoordinates (UserCtx *coarse_user, UserCtx *fine_user) |
Internal helper implementation: RestrictCoordinates(). | |
| PetscErrorCode | AssignAllGridCoordinates (SimCtx *simCtx) |
Internal helper implementation: AssignAllGridCoordinates(). | |
| static PetscReal | ComputeStretchedCoord (PetscInt i, PetscInt N, PetscReal L, PetscReal r) |
Internal helper implementation: ComputeStretchedCoord(). | |
| PetscErrorCode | ComputeLocalBoundingBox (UserCtx *user, BoundingBox *localBBox) |
| Implementation of ComputeLocalBoundingBox(). | |
| PetscErrorCode | GatherAllBoundingBoxes (UserCtx *user, BoundingBox **allBBoxes) |
| Implementation of GatherAllBoundingBoxes(). | |
| PetscErrorCode | BroadcastAllBoundingBoxes (UserCtx *user, BoundingBox **bboxlist) |
Internal helper implementation: BroadcastAllBoundingBoxes(). | |
| PetscErrorCode | CalculateInletProperties (UserCtx *user) |
| Implementation of CalculateInletProperties(). | |
| PetscErrorCode | CalculateOutletProperties (UserCtx *user) |
| Implementation of CalculateOutletProperties(). | |
| PetscErrorCode | CalculateFaceCenterAndArea (UserCtx *user, BCFace face_id, Cmpnts *face_center, PetscReal *face_area) |
| Implementation of CalculateFaceCenterAndArea(). | |
|
static |
Internal helper implementation: ParseAndSetGridInputs().
Local to this translation unit.
Definition at line 14 of file grid.c.
| PetscErrorCode DefineAllGridDimensions | ( | SimCtx * | simCtx | ) |
Internal helper implementation: DefineAllGridDimensions().
Orchestrates the parsing and setting of grid dimensions for all blocks.
Local to this translation unit.
Definition at line 57 of file grid.c.
Internal helper implementation: InitializeSingleGridDM().
Local to this translation unit.
Definition at line 107 of file grid.c.
| PetscErrorCode InitializeAllGridDMs | ( | SimCtx * | simCtx | ) |
Internal helper implementation: InitializeAllGridDMs().
Orchestrates the creation of DMDA objects for every block and multigrid level.
Local to this translation unit.
Definition at line 235 of file grid.c.
|
static |
Internal helper implementation: SetFinestLevelCoordinates().
Local to this translation unit.
Definition at line 370 of file grid.c.
|
static |
Internal helper implementation: GenerateAndSetCoordinates().
Local to this translation unit.
DEBUG: This verifies the presence of a last "unphysical" layer of coordinates.
Definition at line 452 of file grid.c.
|
static |
Internal helper implementation: ReadAndSetCoordinates().
Local to this translation unit.
Definition at line 522 of file grid.c.
Internal helper implementation: RestrictCoordinates().
Local to this translation unit.
Definition at line 600 of file grid.c.
| PetscErrorCode AssignAllGridCoordinates | ( | SimCtx * | simCtx | ) |
Internal helper implementation: AssignAllGridCoordinates().
Orchestrates the assignment of physical coordinates to all DMDA objects.
Local to this translation unit.
Definition at line 317 of file grid.c.
|
inlinestatic |
Internal helper implementation: ComputeStretchedCoord().
Local to this translation unit.
Definition at line 435 of file grid.c.
| PetscErrorCode ComputeLocalBoundingBox | ( | UserCtx * | user, |
| BoundingBox * | localBBox | ||
| ) |
Implementation of ComputeLocalBoundingBox().
Computes the local bounding box of the grid on the current process.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/grid.h.
Definition at line 679 of file grid.c.
| PetscErrorCode GatherAllBoundingBoxes | ( | UserCtx * | user, |
| BoundingBox ** | allBBoxes | ||
| ) |
Implementation of GatherAllBoundingBoxes().
Gathers local bounding boxes from all MPI processes to rank 0.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/grid.h.
Definition at line 821 of file grid.c.
| PetscErrorCode BroadcastAllBoundingBoxes | ( | UserCtx * | user, |
| BoundingBox ** | bboxlist | ||
| ) |
Internal helper implementation: BroadcastAllBoundingBoxes().
Broadcasts the bounding box information collected on rank 0 to all other ranks.
Local to this translation unit.
Definition at line 883 of file grid.c.
| PetscErrorCode CalculateInletProperties | ( | UserCtx * | user | ) |
Implementation of CalculateInletProperties().
Calculates the center and area of the primary INLET face.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/grid.h.
Definition at line 933 of file grid.c.
| PetscErrorCode CalculateOutletProperties | ( | UserCtx * | user | ) |
Implementation of CalculateOutletProperties().
Calculates the center and area of the primary OUTLET face.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/grid.h.
Definition at line 986 of file grid.c.
| PetscErrorCode CalculateFaceCenterAndArea | ( | UserCtx * | user, |
| BCFace | face_id, | ||
| Cmpnts * | face_center, | ||
| PetscReal * | face_area | ||
| ) |
Implementation of CalculateFaceCenterAndArea().
Calculates the geometric center and total area of a specified boundary face.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/grid.h.
< Local sum of (x,y,z) coordinates
< Local sum of face area magnitudes
< Local count of nodes
< Global sum of coordinates
< Global sum of areas
< Global count of nodes
< i-range: [xs, xe)
< j-range: [ys, ye)
< k-range: [zs, ze)
< Physical domain size in i (exclude dummy)
< Physical domain size in j (exclude dummy)
< Physical domain size in k (exclude dummy)
< Start at 1 if on -Xi boundary
< End at mx-1 if on +Xi boundary
< Start at 1 if on -Eta boundary
< End at my-1 if on +Eta boundary
< Start at 1 if on -Zeta boundary
< End at mz-1 if on +Zeta boundary
< Exclude dummy at i=mx-1 (e.g., i=25)
< Exclude dummy at j=my-1 (e.g., j=25)
< Exclude dummy at k=mz-1 (e.g., k=97)
< Local ghosted coordinate vector
< Nodal coordinates [k][j][i]
< Face metric tensors [k][j][i]
< Cell blanking field [k][j][i] (shifted +1)
Definition at line 1029 of file grid.c.