Peka2D_v5
v5.0
|
Arrange all the domain parameters, run controls and data arrays required for computation. More...
#include <structs.h>
Public Attributes | |
int | ncores |
Number of CPU threads selected. More... | |
int | gpuid |
GPU device ID selected by user. More... | |
double | ti |
Initial time for simulation. More... | |
double | tf |
Final time for simulation. More... | |
double | CFL |
CFL restriction for time step limitation. More... | |
int | writeMass |
Write in output file mass balance information. More... | |
int | writeExtremes |
Compute and write maximum values for the variables. More... | |
int | indexWriteHotstart |
Initial output index for the hortstart initialization. More... | |
int | nIterOut |
Number of iterations for sreen output. More... | |
double | dtOut |
Temporal frequency for writing state resutls. More... | |
double | dtDump |
Temporal frequency for dump components integrations. More... | |
double | minh |
Minimun flow depth for neglecting cell velocity. More... | |
int | NCwall |
Number of walls per cell :: NCWALL. More... | |
int | ncells |
Number of cells in the domain :: NCELLS. More... | |
int | nw_calc |
Number of internal (calculus) walls :: NWCALC. More... | |
int | nw_bound |
Number of boundary walls. More... | |
int | nInlet |
Number of inlets in the domain. More... | |
int | nOutlet |
Number of outlets in the domain. More... | |
double | t |
Run-control time mark. More... | |
double | dt |
Run-control time step. More... | |
int | nIter |
Run-control iteration. More... | |
int | indexOut |
Run-control state output index. More... | |
int | indexDump |
Run-control component output index. More... | |
int | dumpComponent |
Run-control flag to dump components in the current iteration. More... | |
int | dumpState |
Run-control flag to dump state in the current iteration. More... | |
double | massOld |
Run-control integrated volume at the beginning of the time step. More... | |
double | massNew |
Run-control current integrated volume. More... | |
double | massError |
Run-control mass error computed at the end of the time stop. More... | |
double | massIn |
Run-control total inflow volume accumulated during the simulation. More... | |
double | massOut |
Run-control total outflow volume accumulated during the simulation. More... | |
double | qTotalIn |
Run-control inflow discharge inegrated for all the inlet boundaries. More... | |
double | qTotalOut |
Run-control outflow discharge inegrated for all the outlet boundaries. More... | |
int | nSolutes |
Number of solutes. More... | |
int | nActCells |
Run-control number of active cells. More... | |
int * | actCells |
[NCELLS] Active cell indexes More... | |
int * | activeC |
[NCELLS] Local flags for active cells :: [0] Unactive cell - [1] Active cell More... | |
int * | cidx |
Cell indexes. More... | |
int * | nneig |
Number of neighboring cells. More... | |
double * | z |
[NCELLS] Bed elevation in cells More... | |
double * | h |
[NCELLS] Flow depth in cells More... | |
double * | hu |
[NCELLS] X-discharge in cells More... | |
double * | hv |
[NCELLS] Y-discharge in cells More... | |
double * | u |
[NCELLS] X-velocity in cells More... | |
double * | v |
[NCELLS] Y-velocity in cells More... | |
double * | modulou |
[NCELLS] Velocity modulus in cells More... | |
double * | sqrh |
[NCELLS] Square depth of flow depth in cells More... | |
double * | area |
[NCELLS] Cell area More... | |
double * | nman |
[NCELLS] Manning roughness coefficient nMan [s m^(-1/3)] in cells More... | |
double * | SOX |
[NCELLS] X-direction bed slope More... | |
double * | SOY |
[NCELLS] Y-direction bed slope More... | |
double * | mass |
[NCELLS] Mass in cells More... | |
int | nWallCell |
double * | dh |
[NCELLS*NCWALL] Wall-contributions to cell mass More... | |
double * | dhu |
[NCELLS*NCWALL] Wall-contributions to cell X-momentum More... | |
double * | dhv |
[NCELLS*NCWALL] Wall-contributions to cell X-momentum More... | |
int * | solidWallByCell |
[NCELLS*NCWALL] Local flag for solid wall behaviour More... | |
int * | neighCell |
[NCELLS*NCWALL] Neigboring cell indexes. Boundary neigbour marked with index -1 More... | |
int * | neighWall |
[NCELLS*NCWALL] Neigboring wall IDs :: Internal calculus wall - Bound walls More... | |
double * | normalXbyCell |
[NCELLS*NCWALL] X-nomall neighboring wall More... | |
double * | normalYbyCell |
[NCELLS*NCWALL] Y-nomall neighboring wall More... | |
int | nActWalls |
Run-control number of active calculus walls. More... | |
int * | actWalls |
[NWCALC] Active calculus walls indexes More... | |
int * | activeW |
[NWCALC] Local flags for active calculus walls :: [0] Unactive wall - [1] Active wall More... | |
int * | widx |
[NWCALC] Calculus walls IDs More... | |
int * | idx1 |
[NWCALC] Neighboring left-cell ID for calculus wall More... | |
int * | idx2 |
[NWCALC] Neigboring right-cell ID for calculus wall More... | |
int * | idw1 |
[NWCALC] Wall-ordering flag in left-cell More... | |
int * | idw2 |
[NWCALC] Wall-ordering flag in right-cell More... | |
double * | normalX |
[NWCALC] X-normal for calculus wall More... | |
double * | normalY |
[NWCALC] Y-normal for calculus wall More... | |
double * | deltaX |
[NWCALC] Distance factor for time step computation More... | |
double * | length |
[NWCALC] Wall length More... | |
double * | distNormal |
[NWCALC] Distance between neighboring cell centers projected on the wall-normal direction More... | |
double * | distCentX |
[NWCALC] Distance between neighboring cell centers projected on the X-direction More... | |
double * | distCentY |
[NWCALC] Distance between neighboring cell centers projected on the Y-direction More... | |
double * | nman2wall |
[NWCALC] Square of the averaged Manning parameter at the calculus wall More... | |
double * | gp |
[NWCALC] Projected gravity acceleration along the bed-normal direction :: gp=g*cos^2(B) More... | |
int * | typeOfBound |
[NWCALC] Type of bound condition at the wall More... | |
int * | solidWall |
[NWCALC] Local flag of solid wall behaviour for calculus wall More... | |
double * | qnormalL |
[NWCALC] Upwind-left volume rate for the calculus wall More... | |
double * | localDt |
[NWCALC] Local time step limitation for the calculus wall More... | |
double * | normalXIn |
double * | normalYlIn |
double * | normalXOut |
double * | normalYOut |
int | nTotalCellsIn |
int * | cidxIn |
int * | idBoundIn |
double * | lengthwallIn |
int | nTotalCellsOut |
int * | cidxOut |
int * | idBoundOut |
double * | lengthwallOut |
int | flagDiffusion |
Solute diffusion activation flag. More... | |
int * | typeDiff |
double * | k_xx |
double * | k_yy |
double * | hcsol |
[NSOL x NCELLS] Solute mass in cells More... | |
double * | csol |
[NSOL x NCELLS] Solute concentration in cells More... | |
double * | dhcsol |
[NSOL*NCELLS*NCWALL] Wall-contributions to cell solute mass More... | |
Arrange all the domain parameters, run controls and data arrays required for computation.
int* t_arrays_::actCells |
[NCELLS] Active cell indexes
int* t_arrays_::activeC |
[NCELLS] Local flags for active cells :: [0] Unactive cell - [1] Active cell
int* t_arrays_::activeW |
[NWCALC] Local flags for active calculus walls :: [0] Unactive wall - [1] Active wall
int* t_arrays_::actWalls |
[NWCALC] Active calculus walls indexes
double* t_arrays_::area |
[NCELLS] Cell area
double t_arrays_::CFL |
CFL restriction for time step limitation.
int* t_arrays_::cidx |
Cell indexes.
[NCELLS]
int* t_arrays_::cidxIn |
int* t_arrays_::cidxOut |
double* t_arrays_::csol |
[NSOL x NCELLS] Solute concentration in cells
double* t_arrays_::deltaX |
[NWCALC] Distance factor for time step computation
double* t_arrays_::dh |
[NCELLS*NCWALL] Wall-contributions to cell mass
double* t_arrays_::dhcsol |
[NSOL*NCELLS*NCWALL] Wall-contributions to cell solute mass
double* t_arrays_::dhu |
[NCELLS*NCWALL] Wall-contributions to cell X-momentum
double* t_arrays_::dhv |
[NCELLS*NCWALL] Wall-contributions to cell X-momentum
double* t_arrays_::distCentX |
[NWCALC] Distance between neighboring cell centers projected on the X-direction
double* t_arrays_::distCentY |
[NWCALC] Distance between neighboring cell centers projected on the Y-direction
double* t_arrays_::distNormal |
[NWCALC] Distance between neighboring cell centers projected on the wall-normal direction
double t_arrays_::dt |
Run-control time step.
double t_arrays_::dtDump |
Temporal frequency for dump components integrations.
double t_arrays_::dtOut |
Temporal frequency for writing state resutls.
int t_arrays_::dumpComponent |
Run-control flag to dump components in the current iteration.
int t_arrays_::dumpState |
Run-control flag to dump state in the current iteration.
int t_arrays_::flagDiffusion |
Solute diffusion activation flag.
double* t_arrays_::gp |
[NWCALC] Projected gravity acceleration along the bed-normal direction :: gp=g*cos^2(B)
int t_arrays_::gpuid |
GPU device ID selected by user.
double* t_arrays_::h |
[NCELLS] Flow depth in cells
double* t_arrays_::hcsol |
[NSOL x NCELLS] Solute mass in cells
double* t_arrays_::hu |
[NCELLS] X-discharge in cells
double* t_arrays_::hv |
[NCELLS] Y-discharge in cells
int* t_arrays_::idBoundIn |
int* t_arrays_::idBoundOut |
int* t_arrays_::idw1 |
[NWCALC] Wall-ordering flag in left-cell
int* t_arrays_::idw2 |
[NWCALC] Wall-ordering flag in right-cell
int* t_arrays_::idx1 |
[NWCALC] Neighboring left-cell ID for calculus wall
int* t_arrays_::idx2 |
[NWCALC] Neigboring right-cell ID for calculus wall
int t_arrays_::indexDump |
Run-control component output index.
int t_arrays_::indexOut |
Run-control state output index.
int t_arrays_::indexWriteHotstart |
Initial output index for the hortstart initialization.
double* t_arrays_::k_xx |
double * t_arrays_::k_yy |
double* t_arrays_::length |
[NWCALC] Wall length
double* t_arrays_::lengthwallIn |
double* t_arrays_::lengthwallOut |
double* t_arrays_::localDt |
[NWCALC] Local time step limitation for the calculus wall
double* t_arrays_::mass |
[NCELLS] Mass in cells
double t_arrays_::massError |
Run-control mass error computed at the end of the time stop.
double t_arrays_::massIn |
Run-control total inflow volume accumulated during the simulation.
double t_arrays_::massNew |
Run-control current integrated volume.
double t_arrays_::massOld |
Run-control integrated volume at the beginning of the time step.
double t_arrays_::massOut |
Run-control total outflow volume accumulated during the simulation.
double t_arrays_::minh |
Minimun flow depth for neglecting cell velocity.
double* t_arrays_::modulou |
[NCELLS] Velocity modulus in cells
int t_arrays_::nActCells |
Run-control number of active cells.
int t_arrays_::nActWalls |
Run-control number of active calculus walls.
int t_arrays_::ncells |
Number of cells in the domain :: NCELLS.
int t_arrays_::ncores |
Number of CPU threads selected.
int t_arrays_::NCwall |
Number of walls per cell :: NCWALL.
int* t_arrays_::neighCell |
[NCELLS*NCWALL] Neigboring cell indexes. Boundary neigbour marked with index -1
int* t_arrays_::neighWall |
[NCELLS*NCWALL] Neigboring wall IDs :: Internal calculus wall - Bound walls
int t_arrays_::nInlet |
Number of inlets in the domain.
int t_arrays_::nIter |
Run-control iteration.
int t_arrays_::nIterOut |
Number of iterations for sreen output.
double* t_arrays_::nman |
[NCELLS] Manning roughness coefficient nMan [s m^(-1/3)] in cells
double* t_arrays_::nman2wall |
[NWCALC] Square of the averaged Manning parameter at the calculus wall
int* t_arrays_::nneig |
Number of neighboring cells.
[NCELLS]
double* t_arrays_::normalX |
[NWCALC] X-normal for calculus wall
double* t_arrays_::normalXbyCell |
[NCELLS*NCWALL] X-nomall neighboring wall
double* t_arrays_::normalXIn |
double* t_arrays_::normalXOut |
double* t_arrays_::normalY |
[NWCALC] Y-normal for calculus wall
double* t_arrays_::normalYbyCell |
[NCELLS*NCWALL] Y-nomall neighboring wall
double * t_arrays_::normalYlIn |
double * t_arrays_::normalYOut |
int t_arrays_::nOutlet |
Number of outlets in the domain.
int t_arrays_::nSolutes |
Number of solutes.
int t_arrays_::nTotalCellsIn |
int t_arrays_::nTotalCellsOut |
int t_arrays_::nw_bound |
Number of boundary walls.
int t_arrays_::nw_calc |
Number of internal (calculus) walls :: NWCALC.
int t_arrays_::nWallCell |
double* t_arrays_::qnormalL |
[NWCALC] Upwind-left volume rate for the calculus wall
double t_arrays_::qTotalIn |
Run-control inflow discharge inegrated for all the inlet boundaries.
double t_arrays_::qTotalOut |
Run-control outflow discharge inegrated for all the outlet boundaries.
int* t_arrays_::solidWall |
[NWCALC] Local flag of solid wall behaviour for calculus wall
int* t_arrays_::solidWallByCell |
[NCELLS*NCWALL] Local flag for solid wall behaviour
double* t_arrays_::SOX |
[NCELLS] X-direction bed slope
double* t_arrays_::SOY |
[NCELLS] Y-direction bed slope
double* t_arrays_::sqrh |
[NCELLS] Square depth of flow depth in cells
double t_arrays_::t |
Run-control time mark.
double t_arrays_::tf |
Final time for simulation.
double t_arrays_::ti |
Initial time for simulation.
int* t_arrays_::typeDiff |
int* t_arrays_::typeOfBound |
[NWCALC] Type of bound condition at the wall
double* t_arrays_::u |
[NCELLS] X-velocity in cells
double* t_arrays_::v |
[NCELLS] Y-velocity in cells
int* t_arrays_::widx |
[NWCALC] Calculus walls IDs
int t_arrays_::writeExtremes |
Compute and write maximum values for the variables.
int t_arrays_::writeMass |
Write in output file mass balance information.
double* t_arrays_::z |
[NCELLS] Bed elevation in cells