OpenImpala
Image-based parallel transport property solver
Loading...
Searching...
No Matches
OpenImpala::Tortuosity Class Referenceabstract

Abstract base class for computing the tortuosity of a structure. More...

#include <Tortuosity.H>

Inheritance diagram for OpenImpala::Tortuosity:
[legend]

Public Member Functions

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 derived classes are deleted via a base class pointer.

Protected Member Functions

 Tortuosity ()=default

Detailed Description

Abstract base class for computing the tortuosity of a structure.

This class defines the interface for solvers that compute tortuosity, often by solving a transport equation (like Laplace's equation for diffusion) on a representation of the structure.

Constructor & Destructor Documentation

◆ ~Tortuosity()

virtual OpenImpala::Tortuosity::~Tortuosity ( )
virtualdefault

Virtual destructor (essential for base classes with virtual functions). Ensures proper cleanup when derived classes are deleted via a base class pointer.

◆ Tortuosity()

OpenImpala::Tortuosity::Tortuosity ( )
protecteddefault

Member Function Documentation

◆ value()

virtual amrex::Real OpenImpala::Tortuosity::value ( const bool refresh = false)
pure virtual

Calculate and return the tortuosity value.

This function computes or retrieves the tortuosity for the structure, typically defined in relation to effective transport properties. Implementations may cache the result due to potentially high computation cost.

Parameters
refreshIf true, forces a recalculation of the tortuosity. If false (default), a cached value may be returned if available.
Returns
The calculated tortuosity value (often defined as VF / (Deff/D0)). Return value characteristics (e.g., range, behavior on error) depend on the derived class implementation.

Implemented in OpenImpala::TortuosityDirect, OpenImpala::TortuosityHypre, and OpenImpala::TortuositySolverBase.


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