<?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[在rhoSimpleFoam基础上加入一组U、p、T场]]></title><description><![CDATA[<p dir="auto">各位大佬大家好，我最近准备在rhoSimpleFoam的基础上加入自己的算法，算法中比较关键的点是有<strong>另一组速度、压力和温度场</strong>（暂且叫它们Uf，pf，Tf）。</p>
<p dir="auto">之前在simpleFoam中顺利地植入了，但是在可压缩这里我发现：thermo.rho()这些函数在调用时，读取的物理量是求解器原来的U、p，如果我再另外定义Uf，pf的话，好像不能直接使用thermo.rho()函数进行另一组速度压力场的密度修正？</p>
<p dir="auto">附上一段src/thermophysicalModels/basic/fluidThermo/fluidThermo.C中的代码，麻烦大佬们看下是不是这样的</p>
<pre><code>Foam::fluidThermo::implementation::implementation
(
    const fvMesh&amp; mesh,
    const word&amp; phaseName
)
:
    p_(lookupOrConstruct(mesh, "p"))
{}


Foam::fluidThermo::implementation::implementation
(
    const fvMesh&amp; mesh,
    const dictionary&amp; dict,
    const word&amp; phaseName
)
:
    p_(lookupOrConstruct(mesh, "p"))
{}
</code></pre>
]]></description><link>https://cfd-china.com/topic/5929/在rhosimplefoam基础上加入一组u-p-t场</link><generator>RSS for Node</generator><lastBuildDate>Tue, 08 Sep 2026 07:07:55 GMT</lastBuildDate><atom:link href="https://cfd-china.com/topic/5929.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 16 Jul 2022 09:31:42 GMT</pubDate><ttl>60</ttl></channel></rss>