<?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[有关calculatedFvPatchField]]></title><description><![CDATA[<p dir="auto">某同学来信的错误代码如下：</p>
<pre><code>Starting time loop

Courant Number mean: 0 max: 0
Time = 0.01

time:0.01 curMotionVel_:(0.001 0 0) curLeft:0.099 curRight:0.1
No topology change
Executing mesh motion
GAMG:  Solving for pcorr, Initial residual = 0, Final residual = 0, No Iterations 0
time step continuity errors : sum local = 0, global = 0, cumulative = 0
PIMPLE: iteration 1
DILUPBiCGStab:  Solving for Ux, Initial residual = 0, Final residual = 0, No Iterations 0
DILUPBiCGStab:  Solving for Uy, Initial residual = 0, Final residual = 0, No Iterations 0


--&gt; FOAM FATAL ERROR: 
cannot be called for a calculatedFvPatchField
    on patch bottom of field p in file "/home/sh/OpenFOAM/sh-5.0/run/171109DyM/HH/0/p"
    You are probably trying to solve for a field with a default boundary condition.

    From function Foam::tmp&lt;Foam::Field&lt;Type&gt; &gt; Foam::calculatedFvPatchField&lt;Type&gt;::gradientInternalCoeffs() const [with Type = double]
    in file fields/fvPatchFields/basic/calculated/calculatedFvPatchField.C at line 187.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&amp;) at ??:?
#1  Foam::error::abort() at ??:?
#2  Foam::calculatedFvPatchField&lt;double&gt;::gradientInternalCoeffs() const at ??:?
#3  Foam::fv::gaussLaplacianScheme&lt;double, Foam::SymmTensor&lt;double&gt; &gt;::fvmLaplacianUncorrected(Foam::GeometricField&lt;double, Foam::fvsPatchField, Foam::surfaceMesh&gt; const&amp;, Foam::GeometricField&lt;double, Foam::fvsPatchField, Foam::surfaceMesh&gt; const&amp;, Foam::GeometricField&lt;double, Foam::fvPatchField, Foam::volMesh&gt; const&amp;) at ??:?
#4  Foam::fv::gaussLaplacianScheme&lt;double, double&gt;::fvmLaplacian(Foam::GeometricField&lt;double, Foam::fvsPatchField, Foam::surfaceMesh&gt; const&amp;, Foam::GeometricField&lt;double, Foam::fvPatchField, Foam::volMesh&gt; const&amp;) at ??:?
#5  Foam::fv::laplacianScheme&lt;double, double&gt;::fvmLaplacian(Foam::GeometricField&lt;double, Foam::fvPatchField, Foam::volMesh&gt; const&amp;, Foam::GeometricField&lt;double, Foam::fvPatchField, Foam::volMesh&gt; const&amp;) at ??:?
#6  Foam::tmp&lt;Foam::fvMatrix&lt;double&gt; &gt; Foam::fvm::laplacian&lt;double, double&gt;(Foam::GeometricField&lt;double, Foam::fvPatchField, Foam::volMesh&gt; const&amp;, Foam::GeometricField&lt;double, Foam::fvPatchField, Foam::volMesh&gt; const&amp;, Foam::word const&amp;) at ??:?
#7  Foam::tmp&lt;Foam::fvMatrix&lt;double&gt; &gt; Foam::fvm::laplacian&lt;double, double&gt;(Foam::GeometricField&lt;double, Foam::fvPatchField, Foam::volMesh&gt; const&amp;, Foam::GeometricField&lt;double, Foam::fvPatchField, Foam::volMesh&gt; const&amp;) at ??:?
#8  ? at ??:?
#9  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#10  ? at ??:?
已放弃 (核心已转储)

</code></pre>
<p dir="auto">原因在于你在求解<code>p</code>压力场，因此你不能给定<code>calculatedFvPatchField</code>边界条件。</p>
]]></description><link>https://cfd-china.com/topic/1158/有关calculatedfvpatchfield</link><generator>RSS for Node</generator><lastBuildDate>Tue, 16 Jun 2026 22:21:00 GMT</lastBuildDate><atom:link href="https://cfd-china.com/topic/1158.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 Nov 2017 10:27:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 有关calculatedFvPatchField on Fri, 12 Jun 2020 03:43:22 GMT]]></title><description><![CDATA[<p dir="auto">@东岳 好的东岳老师，谢谢东岳老师，实在不好意思，上次断网没发出去刚发现。</p>
]]></description><link>https://cfd-china.com/post/19827</link><guid isPermaLink="true">https://cfd-china.com/post/19827</guid><dc:creator><![CDATA[北山木鱼]]></dc:creator><pubDate>Fri, 12 Jun 2020 03:43:22 GMT</pubDate></item><item><title><![CDATA[Reply to 有关calculatedFvPatchField on Wed, 13 May 2020 06:12:50 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for sharing</p>
]]></description><link>https://cfd-china.com/post/19100</link><guid isPermaLink="true">https://cfd-china.com/post/19100</guid><dc:creator><![CDATA[李东岳]]></dc:creator><pubDate>Wed, 13 May 2020 06:12:50 GMT</pubDate></item><item><title><![CDATA[Reply to 有关calculatedFvPatchField on Wed, 13 May 2020 05:01:06 GMT]]></title><description><![CDATA[<p dir="auto">valueInternalCoeffs, valueBoundaryCoeffs, gradientInternalCoeffs, gradientBoundaryCoeffs are all key coeffs for boundary correct.</p>
<p dir="auto">In calculatedFvPatchField, those are all:</p>
<pre><code>tmp&lt;Field&lt;Type&gt; &gt; calculatedFvPatchField&lt;Type&gt;::valueInternalCoeffs
(
    const tmp&lt;scalarField&gt;&amp;
) const
{
    FatalErrorIn
    (
        "calculatedFvPatchField&lt;Type&gt;::"
        "valueInternalCoeffs(const tmp&lt;scalarField&gt;&amp;) const"
    )   &lt;&lt; "\n    "
...
</code></pre>
<p dir="auto">when construct convection tern</p>
<pre><code>fvm.internalCoeffs()[patchI] = patchFlux*psf.valueInternalCoeffs(pw);
fvm.boundaryCoeffs()[patchI] = -patchFlux*psf.valueBoundaryCoeffs(pw);
</code></pre>
<p dir="auto">and laplacian term</p>
<pre><code>fvm.internalCoeffs()[patchI] = patchGamma*psf.gradientInternalCoeffs();
fvm.boundaryCoeffs()[patchI] = -patchGamma*psf.gradientBoundaryCoeffs();
</code></pre>
<p dir="auto">so...</p>
]]></description><link>https://cfd-china.com/post/19097</link><guid isPermaLink="true">https://cfd-china.com/post/19097</guid><dc:creator><![CDATA[马乔]]></dc:creator><pubDate>Wed, 13 May 2020 05:01:06 GMT</pubDate></item><item><title><![CDATA[Reply to 有关calculatedFvPatchField on Tue, 05 May 2020 07:43:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://cfd-china.com/uid/1296">@北山木鱼</a> 如果存在变量的Eqn需要solve，就不能调用<code>calculated</code>边界条件。不好意思刚看到<img src="https://cfd-china.com/assets/plugins/nodebb-plugin-emoji/emoji/customizations/7c2a3def-0d88-4862-b817-081d5b02aa31-3.gif?v=eedi85amb0g" class="not-responsive emoji emoji-customizations emoji--136" style="height:23px;width:auto;vertical-align:middle" title=":136:" alt=":136:" /></p>
]]></description><link>https://cfd-china.com/post/18917</link><guid isPermaLink="true">https://cfd-china.com/post/18917</guid><dc:creator><![CDATA[李东岳]]></dc:creator><pubDate>Tue, 05 May 2020 07:43:06 GMT</pubDate></item><item><title><![CDATA[Reply to 有关calculatedFvPatchField on Sun, 29 Mar 2020 13:05:49 GMT]]></title><description><![CDATA[<p dir="auto">东岳老师您好：<br />
上述问题您能再展开说一下嘛？我再求解rho1时遇到了相同的问题。</p>
]]></description><link>https://cfd-china.com/post/18437</link><guid isPermaLink="true">https://cfd-china.com/post/18437</guid><dc:creator><![CDATA[北山木鱼]]></dc:creator><pubDate>Sun, 29 Mar 2020 13:05:49 GMT</pubDate></item></channel></rss>