本文整理汇总了C++中Soil::anisotropy_edge方法的典型用法代码示例。如果您正苦于以下问题:C++ Soil::anisotropy_edge方法的具体用法?C++ Soil::anisotropy_edge怎么用?C++ Soil::anisotropy_edge使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Soil
的用法示例。
在下文中一共展示了Soil::anisotropy_edge方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: h
double
UZRectMollerup::find_K_edge (const Soil& soil, const Geometry& geo,
const size_t e,
const ublas::vector<double>& h,
const ublas::vector<double>& h_ice,
const ublas::vector<double>& h_old,
const ublas::vector<double>& T) const
{
const double anisotropy = soil.anisotropy_edge (e);
const int from = geo.edge_from (e);
const int to = geo.edge_to (e);
// External edges.
if (!geo.cell_is_internal (from))
return soil.K (to, h (to), h_ice (to), T (to)) * anisotropy;
if (!geo.cell_is_internal (to))
return soil.K (from, h (from), h_ice (from), T (from)) * anisotropy;
// Internal edges.
const double K_from = soil.K (from, h (from), h_ice (from), T (from));
const double K_to = soil.K (to, h (to), h_ice (to), T (to));
return K_average->average (soil, geo, e,
K_from, h (from), h_ice (from), h_old (from), T (from),
K_to, h (to), h_ice (to), h_old (from), T (to)) * anisotropy;
}