Function puma::compute_FVanisotropicThermalConductivity(Workspace *, puma::Matrix<double> *, puma::MatVec3<double> *, const std::map<int, std::vector<double>>&, puma::MatVec3<double> *, std::string, std::string, std::string, char, double, int, bool, int)

Function Documentation

puma::Vec3<double> puma::compute_FVanisotropicThermalConductivity(Workspace *grayWS, puma::Matrix<double> *T, puma::MatVec3<double> *q, const std::map<int, std::vector<double>> &matCond, puma::MatVec3<double> *direction, std::string method, std::string sideBC, std::string solverType, char dir, double solverTol, int solverMaxIt, bool print = true, int numThreads = 0)

LOCALLY Anisotropic Materials (with direction matrix)

Compute the effective thermal conductivity with anisotropic local phases (LOCALLY Anisotropic Materials - with direction matrix)

Parameters
  • grayWS – input workspace

  • T – Temperature field

  • q – Flux field

  • matCond – Local conductivity of the phases

  • direction – the local orientation field throughout the domain

  • method – which discretization method to use (‘mpfa’, ‘empfa’)

  • sideBC – what side boundary conditions (‘p’eriodic, ‘s’ymmetric)

  • solverType – which iterative solver to use (‘cg’, ‘bicgstab’)

  • dir – in what direction the conductivity has to be homogenized (‘x’, ‘y’, ‘z’)

  • solverTol – the solver tolerance

  • solverMaxIt – maximum solver iteration

  • print – whether to print progress, optional

  • numThreads – number to threads to use, optional

Returns

the row of conductivity in the effective conductivity tensor, depending on the dir (‘x’ –> first row, and so on)