OpenImpala
Image-based parallel transport property solver
Loading...
Searching...
No Matches
OpenImpala::MacroGeometry Struct Reference

Macro-geometric parameters derived from the AMReX Geometry. More...

#include <MacroGeometry.H>

Collaboration diagram for OpenImpala::MacroGeometry:
[legend]

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.

Detailed Description

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.

Member Function Documentation

◆ fromDimensions()

MacroGeometry OpenImpala::MacroGeometry::fromDimensions ( int nx_in,
int ny_in,
int nz_in,
int flow_dir_idx )
inlinestatic

Construct MacroGeometry from known dimensions and a flow direction index.

Parameters
nx_inNumber of cells in X.
ny_inNumber of cells in Y.
nz_inNumber of cells in Z.
flow_dir_idxFlow direction as integer (0=X, 1=Y, 2=Z).

◆ fromGeometry()

MacroGeometry OpenImpala::MacroGeometry::fromGeometry ( const amrex::Geometry & geom,
int flow_dir_idx )
inlinestatic

Construct MacroGeometry from an AMReX Geometry and flow Direction.

Parameters
geomAMReX Geometry object.
flow_dirFlow direction enum (X, Y, or Z).

Member Data Documentation

◆ cross_section

Real OpenImpala::MacroGeometry::cross_section = 0.0

Area perpendicular to flow in voxel units.

◆ nx

int OpenImpala::MacroGeometry::nx = 0

Grid dimension X.

◆ ny

int OpenImpala::MacroGeometry::ny = 0

Grid dimension Y.

◆ nz

int OpenImpala::MacroGeometry::nz = 0

Grid dimension Z.

◆ thickness

Real OpenImpala::MacroGeometry::thickness = 0.0

Length along flow direction (Lp) in voxel units.

◆ total_volume

Real OpenImpala::MacroGeometry::total_volume = 0.0

Lp * A.


The documentation for this struct was generated from the following file: