|
OpenImpala
Image-based parallel transport property solver
|
Computes the effective diffusivity tensor from homogenization corrector fields. More...
#include <AMReX_Geometry.H>#include <AMReX_MultiFab.H>#include <AMReX_iMultiFab.H>#include <AMReX_REAL.H>Go to the source code of this file.
Namespaces | |
| namespace | OpenImpala |
Functions | |
| void | OpenImpala::calculateDeffTensor (amrex::Real Deff_tensor[3][3], const amrex::MultiFab &mf_chi_x, const amrex::MultiFab &mf_chi_y, const amrex::MultiFab &mf_chi_z, const amrex::iMultiFab &active_mask, const amrex::Geometry &geom, int verbose=0, const amrex::MultiFab *mf_diff_coeff=nullptr) |
| Assembles the effective diffusivity tensor from periodic corrector fields. | |
Computes the effective diffusivity tensor from homogenization corrector fields.
Given the three corrector fields chi_x, chi_y, chi_z (solutions of the periodic conservative finite-volume cell problem -div(D (e_k + grad chi_k)) = 0), assembles the symmetric positive semi-definite 3x3 effective diffusivity tensor by averaging harmonic face fluxes across the periodic unit cell:
D_eff[r][c] = (1/N_total) * sum_{x in Omega} D_{x+1/2}^{(r)} * (delta_rc + (chi_c(x+e_r) -
chi_c(x)) / h_r)