本文整理汇总了C++中Boundary::u方法的典型用法代码示例。如果您正苦于以下问题:C++ Boundary::u方法的具体用法?C++ Boundary::u怎么用?C++ Boundary::u使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Boundary
的用法示例。
在下文中一共展示了Boundary::u方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CHECK
double RD28Builder::integral(const Boundary& boundary)
{
CHECK( feq(boundary.l(0), 2.0) && feq(boundary.u(0), 1.0)
&& boundary.l(1) == -inf && feq(boundary.u(1), -1.0),
"Unsupported boundary.");
return -1.0;
}
示例2: feq
double G6Builder::integral(const Boundary& boundary)
{
CHECK( feq0(boundary.l(0)) && feq(boundary.u(0), 1.0)
&& feq0(boundary.l(1)) && feq(boundary.u(1), 1.0),
InvalidValueError("Only unit square solution available."));
return ( exp(dC[0] * dx0[0]) - 1 ) / dC[0]
* ( exp(dC[1] * dx0[1]) - 1 ) / dC[1];
}
示例3: c
double QP1Builder::integral(const Boundary& boundary)
{
CHECK(feq0(boundary.l(0)) && feq0(boundary.l(1)) ,
InvalidValueError("Lower boundary has to be 0"));
CHECK(boundary.u(0) == inf && boundary.u(1) == inf,
InvalidValueError("Upper boundary has to be infinite"));
return 0.25 * PI * c();
}
示例4: isinf
void R2d2lri::setBoundary(const Boundary& boundary)
{
if(boundary.isValid())
{
const double a = boundary.l(0);
const double b = boundary.u(0);
this->a = isinf(a) ? copysign(INFINITE, a) : a;
this->b = isinf(b) ? copysign(INFINITE, b) : b;
adapterSetFunctor(g, Constant(boundary.l(1)));
adapterSetFunctor(h, Constant(boundary.u(1)));
if(this->hasIntegrand())
{
this->setIntegrand(this->getIntegrand());
}
}
else
{
this->a = NaN;
this->b = NaN;
}
}
示例5: K
double G2Builder::integral(const Boundary& boundary)
{
return K(boundary.l(1), boundary.u(1), dC[1], dx0[1])
* K(boundary.l(0), boundary.u(0), dC[0], dx0[0])/dC[0]/dC[1];
}