<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[关于二维后台阶模型的壁面摩擦阻力系数Cf的计算]]></title><description><![CDATA[<p dir="auto">各位大神，刚刚接触OpenFOAM不久，使用pisoFOAM，采用k-e湍流模型计算二维后台阶的算例，雷诺数为37500，计算后与实验对比数据结果，台阶后侧y方向的速度剖面与实验较为符合。<br />
在计算下壁面摩擦阻力系数 Cf 时，使用tecplot对流场的速度进行微分计算，进而求得切应力$\tau$，除以$0.5\rho\mathbf{U}\mathbf{U}$后得到Cf，其与实验结果有较大差异。<br />
不知道是否是tecplot计算的问题？OpenFOAM对于这种切应力有没有什么计算的方法。<br />
同样的算例在fluent中求解后的Cf结果与实验对比尚可。<br />
望能够得到大家的解答！</p>
]]></description><link>https://cfd-china.com/topic/1350/关于二维后台阶模型的壁面摩擦阻力系数cf的计算</link><generator>RSS for Node</generator><lastBuildDate>Tue, 19 May 2026 22:33:12 GMT</lastBuildDate><atom:link href="https://cfd-china.com/topic/1350.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 02 Feb 2018 06:40:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 关于二维后台阶模型的壁面摩擦阻力系数Cf的计算 on Fri, 02 Feb 2018 23:43:18 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">OpenFOAM对于这种切应力有没有什么计算的方法。</p>
</blockquote>
<p dir="auto">剪切应力的定义是固定的，用什么软件的方程都是一样的。你要从流场中获得$\tau$？印象中OpenFOAM里面没有计算tau的现成的工具。如果你不确定，你可以和Fluent比较其他量看看。</p>
<p dir="auto">如果你要计算tau，你可以写个后处理小工具。比如这个</p>
<pre><code>bool Foam::functionObjects::Lambda2::calc()
{
    if (foundObject&lt;volVectorField&gt;(fieldName_))
    {
        const volVectorField&amp; U = lookupObject&lt;volVectorField&gt;(fieldName_);
        const tmp&lt;volTensorField&gt; tgradU(fvc::grad(U));
        const volTensorField&amp; gradU = tgradU();
        const volTensorField SSplusWW
        (
            (symm(gradU) &amp; symm(gradU))
          + (skew(gradU) &amp; skew(gradU))
        );
        return store
        (
            resultName_,
           -eigenValues(SSplusWW)().component(vector::Y)
        );
    }
    else
    {
        return false;
    }
}

</code></pre>
<p dir="auto"><a href="https://coding.net/u/dyfluid/p/OpenFOAM-5.x/git/blob/master/src/functionObjects/field/Lambda2/Lambda2.C" target="_blank" rel="noopener noreferrer nofollow ugc">https://coding.net/u/dyfluid/p/OpenFOAM-5.x/git/blob/master/src/functionObjects/field/Lambda2/Lambda2.C</a></p>
]]></description><link>https://cfd-china.com/post/7257</link><guid isPermaLink="true">https://cfd-china.com/post/7257</guid><dc:creator><![CDATA[李东岳]]></dc:creator><pubDate>Fri, 02 Feb 2018 23:43:18 GMT</pubDate></item></channel></rss>