OpenImpala
Image-based parallel transport property solver
Loading...
Searching...
No Matches
Tortuosity.H
Go to the documentation of this file.
1
5#ifndef TORTUOSITY_H // Standard include guard
6#define TORTUOSITY_H
7
8#include <AMReX_REAL.H> // Include necessary dependency for amrex::Real
9
10namespace OpenImpala { // Wrap definitions in a project-specific namespace
11
13enum class Direction { X = 0, Y = 1, Z = 2 };
14
21enum class CellType {
23 BLOCKED = 0, // Use regular integer literals
25 FREE = 1,
38};
39
53
62public:
67 virtual ~Tortuosity() = default;
68
82 virtual amrex::Real value(const bool refresh = false) = 0; // Pure virtual function
83
84protected:
85 // Protected constructor/destructor if needed, but often not for pure abstract base
86 Tortuosity() = default; // Can allow derived classes to default construct
87
88private:
89 // Prevent copying/assignment if derived classes manage resources non-copyably
90 // (Place these in the public section if you prefer, style varies)
91 // Tortuosity(const Tortuosity&) = delete; // C++11 delete
92 // Tortuosity& operator=(const Tortuosity&) = delete; // C++11 delete
93
94}; // class Tortuosity
95
96} // namespace OpenImpala
97
98#endif // TORTUOSITY_H
virtual amrex::Real value(const bool refresh=false)=0
Calculate and return the tortuosity value.
virtual ~Tortuosity()=default
Virtual destructor (essential for base classes with virtual functions). Ensures proper cleanup when d...
Definition CathodeWrite.cpp:12
@ PFMG
Definition HypreStructSolver.H:42
@ SMG
Definition HypreStructSolver.H:41
SolverType
Specifies the HYPRE structured solver algorithm to use.
Definition Tortuosity.H:44
@ BiCGSTAB
Definition Tortuosity.H:49
@ Jacobi
Definition Tortuosity.H:45
@ PCG
Definition Tortuosity.H:48
@ FlexGMRES
Definition Tortuosity.H:47
@ GMRES
Definition Tortuosity.H:46
Direction
Defines cardinal directions for calculations.
Definition Tortuosity.H:13
@ X
Definition Tortuosity.H:13
@ Z
Definition Tortuosity.H:13
@ Y
Definition Tortuosity.H:13
CellType
Cell types identifying the role of a cell within the domain.
Definition Tortuosity.H:21
@ BOUNDARY_Y_HI
Cell is on the higher boundary in the Y-direction.
Definition Tortuosity.H:33
@ BOUNDARY_X_LO
Cell is on the lower boundary in the X-direction.
Definition Tortuosity.H:27
@ BOUNDARY_Y_LO
Cell is on the lower boundary in the Y-direction.
Definition Tortuosity.H:31
@ BOUNDARY_Z_HI
Cell is on the higher boundary in the Z-direction.
Definition Tortuosity.H:37
@ FREE
Cell is fully open (e.g., conductive phase, allows transport).
Definition Tortuosity.H:25
@ BOUNDARY_X_HI
Cell is on the higher boundary in the X-direction.
Definition Tortuosity.H:29
@ BOUNDARY_Z_LO
Cell is on the lower boundary in the Z-direction.
Definition Tortuosity.H:35
@ BLOCKED
Cell is fully blocked (e.g., solid phase, no transport).
Definition Tortuosity.H:23