<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>CFD Online Discussion Forums - OpenFOAM Programming and Development</title>
		<link>http://www.cfd-online.com/Forums/</link>
		<description />
		<language>en</language>
		<lastBuildDate>Thu, 09 Sep 2010 08:29:57 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.cfd-online.com/Forums/images/misc/rss.jpg</url>
			<title>CFD Online Discussion Forums - OpenFOAM Programming and Development</title>
			<link>http://www.cfd-online.com/Forums/</link>
		</image>
		<item>
			<title>MULES::limiter</title>
			<link>http://www.cfd-online.com/Forums/openfoam-programming-development/79891-mules-limiter.html</link>
			<pubDate>Wed, 08 Sep 2010 01:41:46 GMT</pubDate>
			<description><![CDATA[Hi all, I've been studying MULES for a while and can understand the main ideas of the integrator, but I have some problems interpreting the idea...]]></description>
			<content:encoded><![CDATA[<div>Hi all, I've been studying MULES for a while and can understand the main ideas of the integrator, but I have some problems interpreting the idea behind the limiter. Usually one uses limiters to limit the flux before integrating temporally. In MULES a flux is given to the integrator, for example, MULES::explicitSolve, this flux is already limited by the advection schemes used to assemble the flux.<br />
 Why another limiter function is applied to the flux before integrating temporally? <br />
 Is it to complete a work partially done by interfaceCompression scheme?<br />
 Is there some reference, at least similar, to limiter used in MULES? Is it loosely based on what???<br />
<br />
All ideas are useful. Regards.</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/openfoam-programming-development/">OpenFOAM Programming and Development</category>
			<dc:creator>santiagomarquezd</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/openfoam-programming-development/79891-mules-limiter.html</guid>
		</item>
		<item>
			<title>For loops in OpenFoam</title>
			<link>http://www.cfd-online.com/Forums/openfoam-programming-development/79839-loops-openfoam.html</link>
			<pubDate>Mon, 06 Sep 2010 11:44:14 GMT</pubDate>
			<description>I am generalising the twoPhase Euler Foam to handle n Phases . In the file pEqn.H I want to sum up the phase fraction of all the dispersed phases to...</description>
			<content:encoded><![CDATA[<div>I am generalising the twoPhase Euler Foam to handle n Phases . In the file pEqn.H I want to sum up the phase fraction of all the dispersed phases to get the dispersed phase . To do so I programmed the following :<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> PtrList&lt;surfaceScalarField&gt;alphaf(nPhases);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; //just an initialization&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; surfaceScalarField af ;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; surfaceScalarField betaf = scalar(1) - af;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; forAll(alphaf,aPh)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; alphaf.set(aPh,fvc::interpolate(phases[aPh].alpha()));&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; af= af + alphaf[aPh];&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; betaf = scalar(1) - af ;</code><hr />
</div>On compilation I got the following error :<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">error: no matching function for call to ‘Foam::GeometricField&lt;double, Foam::fvsPatchField, Foam::surfaceMesh&gt;::GeometricField()’<br />
/home/ifmg/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude/GeometricField.C:652: note: candidates are: Foam::GeometricField&lt;Type, PatchField, GeoMesh&gt;::GeometricField(const Foam::IOobject&amp;, const Foam::GeometricField&lt;Type, PatchField, GeoMesh&gt;&amp;, const Foam::wordList&amp;) [with Type = double, PatchField = Foam::fvsPatchField, GeoMesh = Foam::surfaceMesh]</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/openfoam-programming-development/">OpenFOAM Programming and Development</category>
			<dc:creator>balkrishna</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/openfoam-programming-development/79839-loops-openfoam.html</guid>
		</item>
		<item>
			<title>scalar + volScalarField</title>
			<link>http://www.cfd-online.com/Forums/openfoam-programming-development/79788-scalar-volscalarfield.html</link>
			<pubDate>Fri, 03 Sep 2010 15:11:39 GMT</pubDate>
			<description><![CDATA[Hello everyone, 
 
I'm getting a Floating Point Exception on the following code fragment:   
    Foam::log(scalar(1) + (a_O*Kseg_O )) 
 
a_O is a...]]></description>
			<content:encoded><![CDATA[<div>Hello everyone,<br />
<br />
I'm getting a Floating Point Exception on the following code fragment:  <br />
    Foam::log(scalar(1) + (a_O*Kseg_O ))<br />
<br />
a_O is a dimensionedScalar with value 0, Kseg_O is a volScalarField. The value in the brackets should never be zero thanks to scalar(1), yet still I get a floating point exception. Does the code not add scalar(1) to each element of the volScalarField?<br />
<br />
Thanks,<br />
<br />
Anton</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/openfoam-programming-development/">OpenFOAM Programming and Development</category>
			<dc:creator>akidess</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/openfoam-programming-development/79788-scalar-volscalarfield.html</guid>
		</item>
		<item>
			<title>Interpolation from volume field onto a surface</title>
			<link>http://www.cfd-online.com/Forums/openfoam-programming-development/79751-interpolation-volume-field-onto-surface.html</link>
			<pubDate>Thu, 02 Sep 2010 16:44:02 GMT</pubDate>
			<description><![CDATA[Hi all, 
 
I'm trying to interpolate the values from a volumeScalarField onto a certain surface patch (this is going to be a coupling between OF and...]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I'm trying to interpolate the values from a volumeScalarField onto a certain surface patch (this is going to be a coupling between OF and another solver - at some point). Is there a boundary condition for this kind of problem? If not, what do I have to do? I'm really stuck on this.<br />
<br />
Thanks a lot for your help<br />
Daniela</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/openfoam-programming-development/">OpenFOAM Programming and Development</category>
			<dc:creator>dasch</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/openfoam-programming-development/79751-interpolation-volume-field-onto-surface.html</guid>
		</item>
		<item>
			<title>How reactingParcel updates it date after reaction?</title>
			<link>http://www.cfd-online.com/Forums/openfoam-programming-development/79745-how-reactingparcel-updates-date-after-reaction.html</link>
			<pubDate>Thu, 02 Sep 2010 12:50:03 GMT</pubDate>
			<description><![CDATA[Hi, guys, I'm crying out desperately for help. I'm developing a new reacting particle class. But how can I update its particle compositions by...]]></description>
			<content:encoded><![CDATA[<div>Hi, guys, I'm crying out desperately for help. I'm developing a new reacting particle class. But how can I update its particle compositions by chemical reaction?<br />
 I think in the existing reactingParcel class function calc() is used to do it, but I didn't see the correspondent reactingCloud call this calc() function. Can someone explain a little about how reactingParcel reactes? <br />
Edison</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/openfoam-programming-development/">OpenFOAM Programming and Development</category>
			<dc:creator>Edison_Ge</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/openfoam-programming-development/79745-how-reactingparcel-updates-date-after-reaction.html</guid>
		</item>
		<item>
			<title>Adding acceleration term in icoDyMFoam</title>
			<link>http://www.cfd-online.com/Forums/openfoam-programming-development/79693-adding-acceleration-term-icodymfoam.html</link>
			<pubDate>Tue, 31 Aug 2010 14:51:01 GMT</pubDate>
			<description>Hey guys, real simple question. My moving reference frame is accelerating *-0.5*pi*A*T*sin(2*pi*t/T)* in x-dirn and *-sqrt(3)/2*pi*A*T*sin(2*pi*t/T)*...</description>
			<content:encoded><![CDATA[<div>Hey guys, real simple question. My moving reference frame is accelerating <b>-0.5*pi*A*T*sin(2*pi*t/T)</b> in x-dirn and <b>-sqrt(3)/2*pi*A*T*sin(2*pi*t/T)</b> in y-dirn. A, T, pi are constants, t is time. I'm trying to add these to the momentum equation but it doesn't compile. Here's what I've got:<br />
<br />
<b>Ueqn.H</b><br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">volScalarField pi = 3.1415926535897932384626433832795028841971693993751;<br />
volVectorField acc = -pi*0.1091911*sin(2*pi*runtime.time().value()/1.091911)*(0.5*vector(1,0,0)+pow(3,0.5)*vector(0,1,0));<br />
&nbsp; &nbsp; <br />
fvVectorMatrix UEqn<br />
&nbsp; &nbsp; (<br />
&nbsp; &nbsp; &nbsp; &nbsp; fvm::ddt(U)<br />
&nbsp; &nbsp; &nbsp; + fvm::div(phi, U)<br />
&nbsp; &nbsp; &nbsp; - fvm::laplacian(nu, U)<br />
&nbsp; &nbsp; &nbsp; - acc<br />
&nbsp; &nbsp; );<br />
<br />
&nbsp; &nbsp; if (momentumPredictor)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; solve(UEqn == -fvc::grad(p));<br />
&nbsp; &nbsp; }</code><hr />
</div>What's wrong with it??</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/openfoam-programming-development/">OpenFOAM Programming and Development</category>
			<dc:creator>rieuk</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/openfoam-programming-development/79693-adding-acceleration-term-icodymfoam.html</guid>
		</item>
		<item>
			<title>scale(a, b) function</title>
			<link>http://www.cfd-online.com/Forums/openfoam-programming-development/79685-scale-b-function.html</link>
			<pubDate>Tue, 31 Aug 2010 13:05:27 GMT</pubDate>
			<description>Hi, 
 
In the Programmer’s Guide there is a description of a function named as *scale*: 
 
 
---Quote--- 
As the name suggests, the scale function is...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
In the Programmer’s Guide there is a description of a function named as <b>scale</b>:<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="7" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				As the name suggests, the scale function is a tool for scaling the components of one tensor by the components of another tensor of the same rank. It is evaluated as the product of corresponding components of 2 tensors, e.g., scaling vector a by vector b would produce vector c whose components are ci = scale(a, b) = (a1b1, a2b2, a3b3)
			
			<hr />
		</td>
	</tr>
	</table>
</div>I have tried to use it however, I get the following error during compilation:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">error: ‘scale’ was not declared in this scope</code><hr />
</div>My code is simple:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">#include &quot;fvCFD.H&quot;<br />
...<br />
vector a(1,2,3), b(4,5,6), c;<br />
c=scale(a,b)</code><hr />
</div><br />
What can I do about this? <br />
<br />
Thanks,<br />
<br />
Ozgur</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/openfoam-programming-development/">OpenFOAM Programming and Development</category>
			<dc:creator>ozgur</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/openfoam-programming-development/79685-scale-b-function.html</guid>
		</item>
		<item>
			<title>If-else condition over the whole mesh</title>
			<link>http://www.cfd-online.com/Forums/openfoam-programming-development/79677-if-else-condition-over-whole-mesh.html</link>
			<pubDate>Tue, 31 Aug 2010 10:33:45 GMT</pubDate>
			<description>Hi everybody, I have some troubles with finding the correct way to modify a source .C file in order to seek for positive/negative scalar values over...</description>
			<content:encoded><![CDATA[<div>Hi everybody, I have some troubles with finding the correct way to modify a source .C file in order to seek for positive/negative scalar values over the whole range of mesh cells. Namely, I'm trying to implement an improved version of the k-omega turbulence model, in which there is a correction of some of the closure coefficients that implies an if-else &quot;check&quot; over a field of scalar values. The following is the part of the source code containing the if-else condition (in the form I trivially suppose it could be correct):<br />
<br />
// * * * * * * * * * * * * Private Member Functions  * * * * * * * * * * * * //<br />
<br />
 tmp&lt;volScalarField&gt; kOmegaSI::kiKappa() const<br />
 {<br />
     return  (1/(pow(omega_,3.0)))*((fvc::grad(k_))&amp;(fvc::grad(ome  ga_)));<br />
 }<br />
<br />
 tmp&lt;volScalarField&gt; kOmegaSI::fBetaStar() const<br />
     {<br />
       {<br />
         forAll(mesh.cells(),celli)<br />
         if (kiKappa()[celli] &gt; scalar(0.0)) {<br />
         return ((scalar(680.0)+sqr(kiKappa()[celli]))/(scalar(400.0)+sqr(kiKappa()[celli])));<br />
         }<br />
         else {<br />
         return scalar(1.0);<br />
         }<br />
       }<br />
     }<br />
<br />
And here it is the error message which appears after running the wmake utility:<br />
<br />
kOmegaSI_1/kOmegaSI.C:56: error: ‘mesh’ was not declared in this scope<br />
kOmegaSI_1/kOmegaSI.C:57: error: no match for ‘operator[]’ in ‘Foam::incompressible::RASModels::kOmegaSI::kiKapp  a() const()[celli]’<br />
kOmegaSI_1/kOmegaSI.C:58: error: no match for ‘operator[]’ in ‘Foam::incompressible::RASModels::kOmegaSI::kiKapp  a() const()[celli]’<br />
kOmegaSI_1/kOmegaSI.C:58: error: no match for ‘operator[]’ in ‘Foam::incompressible::RASModels::kOmegaSI::kiKapp  a() const()[celli]’<br />
kOmegaSI_1/kOmegaSI.C:61: error: conversion from ‘double’ to non-scalar type ‘Foam::tmp&lt;Foam::GeometricField&lt;double, Foam::fvPatchField, Foam::volMesh&gt; &gt;’ requested<br />
<br />
So, can anybody give me some hints about my problem? Of course, if necessary, I could add additional information about the .C (and the corresponding .H header) file.<br />
<br />
Thank you in advance</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/openfoam-programming-development/">OpenFOAM Programming and Development</category>
			<dc:creator>vkrastev</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/openfoam-programming-development/79677-if-else-condition-over-whole-mesh.html</guid>
		</item>
		<item>
			<title>Adding U*U as a source term</title>
			<link>http://www.cfd-online.com/Forums/openfoam-programming-development/79666-adding-u-u-source-term.html</link>
			<pubDate>Mon, 30 Aug 2010 20:45:30 GMT</pubDate>
			<description>Hi Foamers, 
 
I am trying to solve the following equation:  
 
*dU/dt = grad(p) - 0.5*(f/L)*(U*U)* 
 
here, *U*(velocity vector), *p* (pressure),...</description>
			<content:encoded><![CDATA[<div>Hi Foamers,<br />
<br />
I am trying to solve the following equation: <br />
<br />
<b>dU/dt = grad(p) - 0.5*(f/L)*(U*U)</b><br />
<br />
here, <b>U</b>(velocity vector), <b>p</b> (pressure), and <b>L</b> is length, (f is dimensionless scalar).<br />
<br />
In fact, I made an attempt and it seems working for 1D .. However, I can not be very sure about the approach that I use (especially for 2D and 3D problems), and I need some comments from more experienced people. <br />
<br />
I constructed my equations as follows:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&nbsp; &nbsp; &nbsp; &nbsp; ...<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; vector identity(1,1,1);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; ...<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; volVectorField gradp = fvc::grad(p);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; ...<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; fvVectorMatrix UEqn<br />
&nbsp; &nbsp; &nbsp; &nbsp; (<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  fvm::ddt(U) + fvm::Sp((U &amp; identity)/2*(1/L+f/D), U)<br />
&nbsp; &nbsp; &nbsp; &nbsp; );<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; ...<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; solve(UEqn == -fvc::grad(p));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; ...</code><hr />
</div>The reason that I am not sure is about the term &quot;<b>U*U</b>&quot; in the original equation. Since <b>U</b> is a vector, <b>U*U</b> will produce a matrix, and therefore it was not possible to write &quot;<b>U*U</b>&quot; <u>as it is</u> to the code as a <b>source term</b>.<br />
<br />
Instead, assuming that only the i component of the vectors will be used while solving Ux, I wrote &quot;<b>U &amp; identity</b>&quot; to obtain the value of the x component of U and put it in to the first parameter place of Sp function.<br />
<br />
This works for 1D but I cannot be sure about my assumption about the behavior of <b>U &amp; identity</b> expression in 2D and 3D problems..<br />
<br />
In short, say that <b>U(1, 2, 3)</b> then will &quot;<b>U &amp; identity</b>&quot; produce <b>1+2+3=6</b> in <b>ALL</b> Ux, Uy and Uz solutions OR will it produce <b>1</b> in <b>Ux solution</b>, <b>2 in Uy solution</b> and <b>3 in Uz solution</b>??<br />
<br />
Kind regards,<br />
<br />
Ozgur</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/openfoam-programming-development/">OpenFOAM Programming and Development</category>
			<dc:creator>ozgur</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/openfoam-programming-development/79666-adding-u-u-source-term.html</guid>
		</item>
		<item>
			<title><![CDATA[Membrane and Darcy's law]]></title>
			<link>http://www.cfd-online.com/Forums/openfoam-programming-development/79624-membrane-darcys-law.html</link>
			<pubDate>Sun, 29 Aug 2010 11:41:40 GMT</pubDate>
			<description><![CDATA[Hello,  
 
I'm new to OpenFOAM, and as a starting project, I'm trying to simulate the crossflow over a permeable membrane. The setup is roughly...]]></description>
			<content:encoded><![CDATA[<div>Hello, <br />
<br />
I'm new to OpenFOAM, and as a starting project, I'm trying to simulate the crossflow over a permeable membrane. The setup is roughly sketched in this figure:<br />
<br />
<a href="http://img291.imageshack.us/i/drawingg.png/" target="_blank"><img src="http://img291.imageshack.us/img291/1232/drawingg.png" border="0" alt="" /></a><br />
<br />
<br />
For the flow through the membrane, I simply wish to put an &quot;internal&quot; boundary condition on the membrane, setting:<br />
<br />
velocity_through_membrane=k*Delta_P_over_membrane<br />
<br />
So, my question is; how do I implement such an internal boundary condition?<br />
<br />
Also, what would be a proper boundary condition for the pressure at the membrane?</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/openfoam-programming-development/">OpenFOAM Programming and Development</category>
			<dc:creator>NewFoamer</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/openfoam-programming-development/79624-membrane-darcys-law.html</guid>
		</item>
		<item>
			<title>Adding a term that includes time</title>
			<link>http://www.cfd-online.com/Forums/openfoam-programming-development/79582-adding-term-includes-time.html</link>
			<pubDate>Fri, 27 Aug 2010 14:05:31 GMT</pubDate>
			<description><![CDATA[Hi, 
 
A very simple question: In OpenFOAM, how can I add a term that includes *time* into my equations?  
 
My first attempt which doesn't work is...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
A very simple question: In OpenFOAM, how can I add a term that includes <b>time</b> into my equations? <br />
<br />
My first attempt which doesn't work is as follows:<br />
<br />
solve<br />
(<br />
                fvm::ddt(T)==-exp(-time())<br />
);<br />
<br />
Thanks for any comments,<br />
<br />
Ozgur</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/openfoam-programming-development/">OpenFOAM Programming and Development</category>
			<dc:creator>ozgur</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/openfoam-programming-development/79582-adding-term-includes-time.html</guid>
		</item>
		<item>
			<title>Particle position each timestep (during simulation)</title>
			<link>http://www.cfd-online.com/Forums/openfoam-programming-development/79575-particle-position-each-timestep-during-simulation.html</link>
			<pubDate>Fri, 27 Aug 2010 10:32:20 GMT</pubDate>
			<description>Hi, i have the following problem: 
I need to know how many particles are there in the zone 1 and zone 2 of a room. 
 
An example: 
10 meter long room...</description>
			<content:encoded><![CDATA[<div>Hi, i have the following problem:<br />
I need to know how many particles are there in the zone 1 and zone 2 of a room.<br />
<br />
An example:<br />
10 meter long room (x direction), while the first 5 meters are the zone 1 and the other 5 meters are zone 2.<br />
The particle position file outputs the coordinate (x y z) of each particle, so it will be like:<br />
if x &lt; 5, sum to zone 1,<br />
else, sum to zone 2<br />
<br />
The actual output while solving the uncoupledKinematicParcelFoam is<br />
<br />
Cloud: kinematicCloud<br />
    Total number of parcels added   = 1210<br />
    Total mass introduced           = 1.01368723e-17<br />
    Current number of parcels       = 1210<br />
    Current mass in system          = 1.01368723e-17<br />
ExecutionTime = 0.61 s  ClockTime = 1 s<br />
<br />
and my objective is to add the following<br />
Current number of parcels in Zone 1 = xxx<br />
Current number of parcels in Zone 2 = yyy<br />
<br />
Is it possible to make it in the solver?<br />
Or it's better to make a separate code to extract this information?<br />
By the way, i don't know c++ programming =(<br />
<br />
Thank you, and if anyone needs I can send the room from Annex 20 with the uncoupledKinematicParcelFoam working.<br />
<br />
PS: Using OpenFOAM 1.7.x</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/openfoam-programming-development/">OpenFOAM Programming and Development</category>
			<dc:creator>lindner</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/openfoam-programming-development/79575-particle-position-each-timestep-during-simulation.html</guid>
		</item>
		<item>
			<title>OpenFOAM MPI coupling</title>
			<link>http://www.cfd-online.com/Forums/openfoam-programming-development/79406-openfoam-mpi-coupling.html</link>
			<pubDate>Mon, 23 Aug 2010 12:00:37 GMT</pubDate>
			<description>Hello, 
 
I am not a current user of OpenFOAM but I might be soon ;) 
 
I have an external software that I wish to call at certain times for some of...</description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I am not a current user of OpenFOAM but I might be soon ;)<br />
<br />
I have an external software that I wish to call at certain times for some of the computational cells. I wish to distribute the calls to this external software evenly in an array using MPI. I wonder if it is possible to invoke MPI commands in user defined  functions (or whatever it is called in OF)? <br />
<br />
Best Regards</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/openfoam-programming-development/">OpenFOAM Programming and Development</category>
			<dc:creator>Ford Prefect</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/openfoam-programming-development/79406-openfoam-mpi-coupling.html</guid>
		</item>
		<item>
			<title>Reference pressure</title>
			<link>http://www.cfd-online.com/Forums/openfoam-programming-development/79298-reference-pressure.html</link>
			<pubDate>Thu, 19 Aug 2010 08:24:07 GMT</pubDate>
			<description>Hello, 
  
for my computations I need to set a reference pressure in one cell of the outer wall (named oustide) of my geometry. But how can I find...</description>
			<content:encoded><![CDATA[<div>Hello,<br />
 <br />
for my computations I need to set a reference pressure in one cell of the outer wall (named oustide) of my geometry. But how can I find out which cells are part of the outer wall und how they are numbered, so that I can choose one from these cells? I had a look in the five files <i>boundary, faces, neighbour, owner, points,</i> but that didn't help me.<br />
And how can I set the reference value in one cell? By using <i>pRefCell</i> and <i>pRefValue</i>? <br />
 <br />
Would be nice, if anyone could help me.<br />
 <br />
Thanks, <br />
Jennifer</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/openfoam-programming-development/">OpenFOAM Programming and Development</category>
			<dc:creator>OFU</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/openfoam-programming-development/79298-reference-pressure.html</guid>
		</item>
		<item>
			<title>Uncoupled Eulerian particle transport</title>
			<link>http://www.cfd-online.com/Forums/openfoam-programming-development/79230-uncoupled-eulerian-particle-transport.html</link>
			<pubDate>Tue, 17 Aug 2010 15:30:14 GMT</pubDate>
			<description><![CDATA[Hello 
 
I'm trying to calculate the evolution of particles within a steady pre-calculated air flow using an Eulerian model. For the problem I'm...]]></description>
			<content:encoded><![CDATA[<div>Hello<br />
<br />
I'm trying to calculate the evolution of particles within a steady pre-calculated air flow using an Eulerian model. For the problem I'm trying to solve (droplet transport through air towards impact with a solid body in aircraft icing), the volume of droplets is very low, so there's no coupling to the air, and no coupling between droplets (so droplet momentum conservation involves a drag term, but no pressure).<br />
<br />
Firstly, can this case be done with twoPhaseEulerFoam? From my limited understanding of the source code this seems to require both phases to be unsteady.<br />
<br />
I've been trying to extend scalarTransportFoam to add a droplet momentum conservation equation and I haven't yet got satisfactory results. The guts of my solver are<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; solve<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fvm::ddt(alpha)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + fvm::div(phiDrop, alpha)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; volVectorField Ur = U - UDrop;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; volScalarField magUr = mag(Ur);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fvVectorMatrix UDropEqn<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fvm::ddt(UDrop)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + fvm::div(phiDrop, UDrop)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - 0.03*magUr*Ur/diamDrop<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; solve (UDropEqn);</code><hr />
</div>and I was wondering if I was going about it the right way. The drag model is initial very basic for simplicity.<br />
<br />
One of the problems I don't seem to be able to get right are the boundary conditions for the droplet velocity (UDrop) and volume fraction (alpha) on the solid body. [1] Gives a boundary condition -alpha*(UDrop dot n) &gt; 0 on the solid surface, but I'm not sure how to replicate this in OpenFOAM. I've been trying inletOutlet and outletInlet conditions, so far without success.<br />
<br />
Any thoughts/comments/assistance would be greatly appreciated.<br />
<br />
Peter<br />
<br />
[1] <a href="http://dspace.uta.edu/bitstream/handle/10106/1877/Lancaster_uta_2502M_10142.pdf?sequence=1" target="_blank">http://dspace.uta.edu/bitstream/hand...pdf?sequence=1</a></div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/openfoam-programming-development/">OpenFOAM Programming and Development</category>
			<dc:creator>peterdhicks</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/openfoam-programming-development/79230-uncoupled-eulerian-particle-transport.html</guid>
		</item>
	</channel>
</rss>
