OpenImpala
Image-based parallel transport property solver
Loading...
Searching...
No Matches
SolverConfig.H File Reference

Shared solver configuration helpers: string-to-enum conversion for solver types and flow directions. More...

#include "Tortuosity.H"
#include <AMReX_Print.H>
#include <algorithm>
#include <string>
Include dependency graph for SolverConfig.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  OpenImpala

Functions

SolverType OpenImpala::effDiffSolverType (const std::string &solver_str)
 Backward-compatible alias for parseSolverType().
Direction OpenImpala::parseDirection (const std::string &dir_str)
 Convert a case-insensitive direction string to Direction enum.
SolverType OpenImpala::parseSolverType (const std::string &solver_str)
 Convert a case-insensitive solver name to SolverType.
SolverType OpenImpala::tortuositySolverType (const std::string &solver_str)
 Backward-compatible alias for parseSolverType().

Detailed Description

Shared solver configuration helpers: string-to-enum conversion for solver types and flow directions.

Eliminates the duplicated stringToSolverType() and stringToDirection() helper functions that were previously copy-pasted across Diffusion.cpp, tMultiPhaseTransport.cpp, tEffectiveDiffusivity.cpp, tTortuosity.cpp, and tTortuosityDirect.cpp.