|
OpenImpala
Image-based parallel transport property solver
|
Macro-geometric parameters derived from the AMReX Geometry. More...
#include <MacroGeometry.H>
Static Public Member Functions | |
| static MacroGeometry | fromDimensions (int nx_in, int ny_in, int nz_in, int flow_dir_idx) |
| Construct MacroGeometry from known dimensions and a flow direction index. | |
| static MacroGeometry | fromGeometry (const amrex::Geometry &geom, int flow_dir_idx) |
| Construct MacroGeometry from an AMReX Geometry and flow Direction. | |
Public Attributes | |
| Real | cross_section = 0.0 |
| Area perpendicular to flow in voxel units. | |
| int | nx = 0 |
| Grid dimension X. | |
| int | ny = 0 |
| Grid dimension Y. | |
| int | nz = 0 |
| Grid dimension Z. | |
| Real | thickness = 0.0 |
| Length along flow direction (Lp) in voxel units. | |
| Real | total_volume = 0.0 |
| Lp * A. | |
Macro-geometric parameters derived from the AMReX Geometry.
For DFN battery models, these provide the electrode thickness (Lp), cross-sectional area (A), and total volume. All values are in voxel units unless scaled by a user-supplied voxel_size_m.
|
inlinestatic |
Construct MacroGeometry from known dimensions and a flow direction index.
| nx_in | Number of cells in X. |
| ny_in | Number of cells in Y. |
| nz_in | Number of cells in Z. |
| flow_dir_idx | Flow direction as integer (0=X, 1=Y, 2=Z). |
|
inlinestatic |
Construct MacroGeometry from an AMReX Geometry and flow Direction.
| geom | AMReX Geometry object. |
| flow_dir | Flow direction enum (X, Y, or Z). |
| Real OpenImpala::MacroGeometry::cross_section = 0.0 |
Area perpendicular to flow in voxel units.
| int OpenImpala::MacroGeometry::nx = 0 |
Grid dimension X.
| int OpenImpala::MacroGeometry::ny = 0 |
Grid dimension Y.
| int OpenImpala::MacroGeometry::nz = 0 |
Grid dimension Z.
| Real OpenImpala::MacroGeometry::thickness = 0.0 |
Length along flow direction (Lp) in voxel units.
| Real OpenImpala::MacroGeometry::total_volume = 0.0 |
Lp * A.