<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>LBMethod.org forums - General</title>
        <description>Questions, suggestions, ideas, examples: everything about Palabos or OpenLB</description>
        <link>http://www.lbmethod.org/forum/list.php?4</link>
        <lastBuildDate>Thu, 09 Sep 2010 05:29:06 +0200</lastBuildDate>
        <generator>Phorum 5.2.6a</generator>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2940,2940#msg-2940</guid>
            <title>boussinesqThermal2d (no replies)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2940,2940#msg-2940</link>
            <description><![CDATA[ Dear All.<br />
<br />
Someone know how to change the boussinesqThermal2d solver to simulate the Natural convection in a square cavity (pag338, [<a rel="nofollow"  href="https://rcpt.yousendit.com/941917729/89c0962530b39c907ead5f52a221c95a">rcpt.yousendit.com</a>])?<br />
<br />
Thanks in advance.<br />
Stefano]]></description>
            <dc:creator>giordy75</dc:creator>
            <category>General</category>
            <pubDate>Mon, 06 Sep 2010 18:09:24 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2936,2936#msg-2936</guid>
            <title>About integrateProcessingFunctional (1 reply)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2936,2936#msg-2936</link>
            <description><![CDATA[ Hi,<br />
<br />
I would like to do some modify in the multicomponent2d.cpp code. I want to add the interparticle force for each component except the ShanChen Multicomponent interaction, which is already in the code. Thus I did it like below. Am I right? Can I use three interfrateProcessingFunctional in the same time? Thank you.<br /><pre class="bbcode">
integrateProcessingFunctional (
            new ShanChenSingleComponentProcessor2D&lt;T,DESCRIPTOR&gt; (
                G11, new interparticlePotential::PsiShanChen93&lt;T&gt;(rho0) ), lattice.getBoundingBox(), latticeOne, processorLevel );

integrateProcessingFunctional (
            new ShanChenSingleComponentProcessor2D&lt;T,DESCRIPTOR&gt; (
                G22, new interparticlePotential::PsiShanChen93&lt;T&gt;(rho0) ),lattice.getBoundingBox(), latticeTwo, processorLevel );

integrateProcessingFunctional (new ShanChenMultiComponentProcessor2D&lt;T,DESCRIPTOR&gt;(G12,constOmegaValues), Box2D(1,nx-2,0,ny-1),
            blockLattices, processorLevel );</pre>]]></description>
            <dc:creator>Glary</dc:creator>
            <category>General</category>
            <pubDate>Fri, 03 Sep 2010 17:20:45 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2922,2922#msg-2922</guid>
            <title>Compiling Error on defineDynamics (4 replies)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2922,2922#msg-2922</link>
            <description><![CDATA[ Hello,<br />
<br />
I tried to use ShanChen model to simulate single component liquid-vapor flow.<br />
I modifed the sample code - segregation2D and tutorial code - permeability.<br />
I defined lattice and geometry as in permeability.<br />
I compiled the code using version 6 and the latest version.<br />
With version 6, it was ok, but with the latest version (I complied on Cygwin),<br />
I've got the error message as below:<br />
<br />
error: no matching function for call to 'defineDynamics(plb::MultiBlockLattice2D&lt;double, plb::descriptor::ShanChenD2Q9Descriptor&gt;&amp;, <br />
    plb::MultiScalarField2D&lt;double&gt;&amp;, plb::BounceBack&lt;double, plb::descriptor::ShanChenD2D9Descriptor&gt;*, int)<br />
<br />
Here is my code:<br />
defineDynamics(lattice, geometry, new BounceBack&lt;T, DESCRIPTOR&gt;(65.), 1);<br />
<br />
the same error on         defineDynamics(lattice, geometry, new NoDynamics&lt;T, DESCRIPTOR&gt;(), 2);<br />
<br />
It was complied correctly with permeability.cpp where similar call was used.<br />
<br />
Any help will be appreciated.<br />
<br />
Thanks,<br />
<br />
Hong]]></description>
            <dc:creator>hyoon</dc:creator>
            <category>General</category>
            <pubDate>Tue, 07 Sep 2010 16:03:03 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2921,2921#msg-2921</guid>
            <title>Few simple questions (2 replies)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2921,2921#msg-2921</link>
            <description><![CDATA[ My other topic grew too large already so I'll start fresh here. Especially since I switched from dynamics to data processors.<br />
Will number my questions to make it easier to answer.<br />
<br />
1) What's the proper way to initialize the height of fluid? InitializeAtEquilibrium with rho parameter seems like initializing the density and I want the density throughout the whole lattice to be constant. Want to initialize and monitor the water level.<br />
<br />
2) I'm using OneCellIndexedFunctional2D. What's the proper way to run it in each iteration between collision and streaming phase? Now I'm using lattice.collide(), applyIndexed(lattice, box, new Functional()), lattice.stream(). Is there a way to reach the same result with single function call? Avoid creating new instance in each loop?<br />
<br />
3) I can get dx and dt using parameters.getDeltaX() and parameters.getDeltaT(), where parameters are of type IncomprFlowParam. Can I (how) extract parameters from lattice (Multi)BlockLattice2D?<br />
<br />
4) Is there a way to permanently disable streaming between two columns? Or do I have to use stream with Box2D parameter defining the domain?]]></description>
            <dc:creator>makhan</dc:creator>
            <category>General</category>
            <pubDate>Fri, 03 Sep 2010 13:52:08 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2914,2914#msg-2914</guid>
            <title>time dependent external force (2 replies)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2914,2914#msg-2914</link>
            <description><![CDATA[ Hi,<br />
<br />
<br />
I would like to add a time dependent ExternalForce in the multicomponent code in palabos-0.6r2. (I know there is a new version, but I am sorry what I used is the old version.) I found an opption about set External Force in the core/dynamic.hh file. But I didnot used it successfully. Please give me a help. The command I used to set the time-dependent external force is as below<br /><pre class="bbcode">
int main(int argc, char *argv[])
{
    plbInit(&amp;argc, &amp;argv);
    global::directories().setOutputDir(&quot;./tmp/&quot;);
.........

     // Main loop over time iterations.
    for (int iT=0; iT&lt;maxIter; ++iT) {

     if (iT &gt; 20){
       Array&lt;T,2&gt; externalforce (0.,0.001);
       setExternalField (insideFluid, Box2D(0, nx-1, 0, ny-1), 1, &amp;externalforce[0]);
     }</pre>
the error message is <br />
<u class="bbcode">rayleighTaylor2D.cpp:322: error: `setExternalField' undeclared (first use this function)</u><br />
<br />
<br />
How to deal with this problem? I really appreciate for your help! By the way what is the meaning of size in<pre class="bbcode">
void Dynamics&lt;T,Descriptor&gt;::setExternalField (
        Cell&lt;T,Descriptor&gt;&amp; cell, plint pos, plint size, const T* ext)</pre>
<br />
 Thank you in advance.]]></description>
            <dc:creator>Glary</dc:creator>
            <category>General</category>
            <pubDate>Mon, 30 Aug 2010 13:49:30 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2901,2901#msg-2901</guid>
            <title>stuck with own data processor (6 replies)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2901,2901#msg-2901</link>
            <description><![CDATA[ Hi guys,<br />
<br />
I´m trying to write a data processor to count all solid cells in a plane of the lattice. Since I generate the lattice from a simple boolmask, I figured it would be the most easiest way to just count all solid cells in the MultiScalarField3D&lt;bool&gt; (for a plane).<br />
<br />
Here is my code:<br />
<br /><pre class="bbcode">
template&lt;typename T, template&lt;typename U&gt; class Descriptor&gt;
class MyFunctional : public BoxProcessingFunctional3D_S&lt;T&gt;  {
  private:
    plint z;
    plint xmax, ymax;
    plint area;
  public:
    MyFunctional (plint z_, plint xmax_, plint ymax_) : z(z_), xmax(xmax_), ymax(ymax_), area(0) {
      }
      
    virtual void process (MultiScalarField3D&lt;bool&gt;&amp; matrix) {
      for (plint i=0; i&lt;xmax; i++) {
	for (plint j=0; j&lt;ymax; j++) {
	  if (matrix.get(i, j, z)) area++;
	}
      }
    }
    
    virtual MyFunctional&lt;T, Descriptor&gt;* clone() const  {
      return new MyFunctional&lt;T, Descriptor&gt; (*this);
    }
};


void CreateMyFunctional (MultiScalarField3D&lt;bool&gt; &amp;matrix, plint z, plint xmax, plint ymax)	{
  Box3D foo(0,xmax,0,ymax,z,z);
  applyProcessingFunctional (new MyFunctional&lt;T, DESCRIPTOR&gt; (z, xmax, ymax), foo, matrix);
  
}</pre>
<br />
The function <i class="bbcode">CreateMyFunctional</i> is not correct, I think it should look like:<br />
<br />
void plb::applyProcessingFunctional(plb::BoxProcessingFunctional3D*, plb::Box3D, std::vector&lt;plb::MultiBlock3D*, std::allocator&lt;plb::MultiBlock3D*&gt; &gt;)<br />
<br />
but thats where I´m stuck atm, since it´s above my programming skills... I´m reading about std::allocator, but so far it doesn´t make any sense :(<br />
<br />
thanks for any input]]></description>
            <dc:creator>Holzdolph</dc:creator>
            <category>General</category>
            <pubDate>Wed, 01 Sep 2010 12:14:31 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2884,2884#msg-2884</guid>
            <title>New Palabos release: Version 0.7 Release 2 (4 replies)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2884,2884#msg-2884</link>
            <description><![CDATA[ Dear all,<br />
<br />
In this <a rel="nofollow"  href="http://www.lbmethod.org/palabos/download.html">new minor release</a>, the compilation errors in Tutorial 2.1 and with respect to the voxelizer have been fixed.<br />
<br />
Furthermore, the Palabos tutorial presented at DSFD in Rome <a rel="nofollow"  href="http://www.lbmethod.org/palabos/downloads/palabos-tutorial-dsfd2010.pdf">is now online</a>. Check it out! it provides a step-by-step introduction to the Python interface of Palabos.]]></description>
            <dc:creator>jlatt</dc:creator>
            <category>General</category>
            <pubDate>Thu, 19 Aug 2010 19:14:48 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2879,2879#msg-2879</guid>
            <title>how to modify multiComponent3d (2 replies)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2879,2879#msg-2879</link>
            <description><![CDATA[ Hi everyone,<br />
<br />
I am using the multiComponent3d in the OpenLB <br />
and I want to Know how to modify the code.<br />
I want to make the inigeometry to the sphere of fluid and others Vacuum.<br />
fluid is high viscosity.<br />
It maybe easy way to modify like that <br />
but when I made that geometry and run the code , the sphere is broken in a few time step.<br />
give me any idea.<br />
<br />
cheers]]></description>
            <dc:creator>motti</dc:creator>
            <category>General</category>
            <pubDate>Thu, 26 Aug 2010 11:56:59 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2875,2875#msg-2875</guid>
            <title>I want a Fortran code simulating Poiseuille flow. (no replies)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2875,2875#msg-2875</link>
            <description><![CDATA[ hello all <br />
please, <br />
I started in fortran and I'm blocked <br />
<br />
I want a <strong class="bbcode">FORTRAN code</strong> simulating <strong class="bbcode">Poiseuille flow</strong>.<br />
I  search a <strong class="bbcode"><i class="bbcode"><u class="bbcode">code simulating</u></i></strong> of a <span style="font-size: large"><strong class="bbcode"><span style="color: #FF0066">Poiseuille flow in FORTRAN code</span></strong></span>. <br />
is of extreme urgency. <br />
<br />
I have this code for the couette flow and I want a code for the Poiseuille flow !!!<br />
I can not find the definition of the geometry<br />
<br /><pre class="bbcode">
      PROGRAM COUETTE
      DIMENSION U(101)
      COMMON/TDMA/A(101),B(101),C(101),D(101)
C-----IMAX IS NUMBER OF GRID LINES
      IMAX=20
      WRITE(6,*) 'HERE 1'
C-----ISKIP IS THE LINES SKIPPED BETWEEN PRINTOUT
       ISKIP=1
       IM1=IMAX-1
C-----BOUNDRARY CONDITIONS
       U(1)=0.0
       U(IMAX)=1.0
C-----EVALUATION OF TDMA COEFFICIENTS
       DY=1./FLOAT(IM1)
       DO 10 I=2,IM1
          AI=FLOAT(I)
          Y=(AI-1.5)*DY
          A(I)=EXP(1.92*(1.-Y))
          Y=(AI-.5)*DY
          C(I)=EXP(1.92*(1.-Y))
          B(I)=-A(I)-C(I)
  10      D(I)=0.0
      WRITE(6,*) 'HERE 1'
C-----CALL THE TRIDIAGONAL ALGORITHM TO OBTAIN VELOCITIES
      CALL TRIDIA(1,IMAX,U)
C-----PRINTOUT OF VALUES
       WRITE(6,1000)
       WRITE(6,1001) (I,U(I),I=1,IMAX,ISKIP)
       PAUSE
1000   FORMAT('VELOCITY DISTIBUTION BETWEEN PLATES *****'
     1/'       I         U(I)')
1001   FORMAT(I4,5X,F10.5)
       END
C
C*****TRIDIAGONAL SUBSUBROUTINE WHERE 'IT' IS THE LAST LINE, 'IB' IS
C     THE FIRST LINE AND 'PHI' IS THE DEPENDENT VARIABLE THE
C     NOMENCLATURE CORRESPONDS TO EQNS 16-48 THRU 16-53 IN THE C NEXT
      SUBROUTINE TRIDIA (IB,IT,PHI)
      DIMENSION E(101),F(101),PHI(IT)
      COMMON/TDMA/A(101),B(101),C(101),D(101)
       IM1=IT-1
       IP1=IB+1
       IP2=IB+2
       WRITE(6,*) 'HERE 1'
C-----SETTING UP BOUNDARY VALUES
       D(IP1)=D(IP1)-A(IP1)*PHI(IB)
       A(IP1)=0.0
       D(IM1)=D(IM1)-C(IM1)*PHI(IT)
       C(IM1)=0.0
       E(IP1+1)=-C(IP1)/B(IP1)
       F(IP1+1)=D(IP1)/B(IP1)
C-----EVALUATION OF E'S AND F'S
       DO 20 K=IP2,IM1
          FAC=1./(A(K)*E(K)+B(K))
          E(K+1)=-C(K)*FAC
   20     F(K+1)=(D(K)-A(K)*F(K))*FAC
C-----USING E'S AND F'S TO CALCULATE PHI
       PHI(IM1)=F(IT)
       DO 30 L=IP2,IM1
          LL=IT+IP1-L
   30     PHI(LL-1)=E(LL)*PHI(LL)+F(LL)
       RETURN
       END</pre>
<br />
<strong class="bbcode"><i class="bbcode"><u class="bbcode"><span style="color: #0033FF">big thank you to everyone <br />
big thank you to everyone <br />
big thank you to everyone</span></u></i></strong>]]></description>
            <dc:creator>slim</dc:creator>
            <category>General</category>
            <pubDate>Tue, 17 Aug 2010 13:46:30 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2873,2873#msg-2873</guid>
            <title>Help with CYGWIN for Newbie (1 reply)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2873,2873#msg-2873</link>
            <description><![CDATA[ As a Mechanical Engineer I currently have very little experience with the computer science side of things. I can use Matlab for the basics and am just now learning some C++. I have installed CYGWIN, but have no clue about how to use it to unpack the OpenLB software. Does anyone know of a good web tutorial which may help me get started?<br />
<br />
Cheers]]></description>
            <dc:creator>TysTea</dc:creator>
            <category>General</category>
            <pubDate>Tue, 17 Aug 2010 17:16:46 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2869,2869#msg-2869</guid>
            <title>New Palabos release: Version 0.7 Release 1 (1 reply)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2869,2869#msg-2869</link>
            <description><![CDATA[ Dear all,<br />
<br />
A new Palabos release is out, with just a few bug fixes. You can download it from [<a rel="nofollow"  href="http://www.lbmethod.org/palabos/download.html">www.lbmethod.org</a>]<br />
<br />
In particular, the two following bugs were fixed thanks to hints from forum participants:<br />
<br />
- Compilation errors in Tutorial 2.2 (hint from Konstantin)<br />
- Errors in compilation process of Python binding with certain sed versions (hint from jkropf)]]></description>
            <dc:creator>jlatt</dc:creator>
            <category>General</category>
            <pubDate>Wed, 18 Aug 2010 16:10:16 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2853,2853#msg-2853</guid>
            <title>Grid Refinement - VTK Output (2 replies)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2853,2853#msg-2853</link>
            <description><![CDATA[ Hi everybody,<br />
<br />
I tried to do a grid refinement in the showcase cylinder2D and I wanted to give out the data as VTK File.<br />
Is there a possibility implemented that I could use to create VTK files from a MultiGrid lattice?<br />
<br />
Thank you very much.<br />
Konstantin]]></description>
            <dc:creator>Konstantin</dc:creator>
            <category>General</category>
            <pubDate>Wed, 11 Aug 2010 19:00:05 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2842,2842#msg-2842</guid>
            <title>constant density at inlet (1 reply)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2842,2842#msg-2842</link>
            <description><![CDATA[ Hi , I am trying to simulate wetting of a 2D porous slice. I need a constant density at the inlet which would simulate a constant head of wetting fluid, that should subsequently fill the vapour space. My code appears to work but with a non constant head of wetting fluid i.e. at iteration 0, the inlet has a density of 200, I would like to preserve this value of density at the inlet for all future iterations, at the moment the density at the inlet gradually decreases as it mixes with the vapour fluid. I tried to change the boundary conditions and use SetPressureCondition for the inlet but this appears to be incompatible with the ShanChen 2D descriptor. I post my code below for anyone to advise how this can be done as I seem to be going around in circles?? <br />
<br />
Cheers, <br />
<br /><pre class="bbcode">
This file is part of the Palabos library.
* Copyright (C) 2009 Jonas Latt
* E-mail contact: <a rel="nofollow"  href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#106;&#111;&#110;&#97;&#115;&#64;&#108;&#98;&#109;&#101;&#116;&#104;&#111;&#100;&#46;&#111;&#114;&#103;">&#106;&#111;&#110;&#97;&#115;&#64;&#108;&#98;&#109;&#101;&#116;&#104;&#111;&#100;&#46;&#111;&#114;&#103;</a>
* The most recent release of Palabos can be downloaded at 
* [www.lbmethod.org]
*
* The library Palabos is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* The library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see [www.gnu.org].
*/

#include &quot;palabos2D.h&quot;
#include &quot;palabos2D.hh&quot;
#include &lt;cstdlib&gt;
#include &lt;iostream&gt;
#include &lt;iomanip&gt;

using namespace plb;
using namespace std;

typedef double T;


#define DESCRIPTOR descriptors::ShanChenD2Q9Descriptor



void writeVTK(MultiBlockLattice2D&lt;T,DESCRIPTOR&gt;&amp; lattice,
			  plint iter)
{
	//T dx = parameters.getDeltaX();
	// T dt = parameters.getDeltaT();
	VtkImageOutput2D&lt;T&gt; vtkOut(createFileName(&quot;vtk&quot;, iter, 6), 1.0);
	vtkOut.writeData&lt;float&gt;(*computeDensity(lattice), &quot;Density&quot;, 1.0);
}
int main(int argc, char *argv[])
{
	plbInit(&amp;argc, &amp;argv);
	global::timer(&quot;simTime&quot;).start();
	global::directories().setOutputDir(&quot;./tmp/&quot;);

	OnLatticeBoundaryCondition2D&lt;T,DESCRIPTOR&gt;* boundaryCondition = createEquilibriumBoundaryCondition2D&lt;T,DESCRIPTOR&gt;();


	// For the choice of the parameters G, rho0, and psi0, we refer to the book
	//   Michael C. Sukop and Daniel T. Thorne (2006), 
	//   Lattice Boltzmann Modeling; an Introduction for Geoscientists and Engineers.
	//   Springer-Verlag Berlin/Heidelberg.


	T tIni = global::timer(&quot;simTime&quot;).stop();
	global::timer(&quot;simTime&quot;).start();

	const T omega = 1.0;
	const int nx   = 272;
	const int ny   = 272;
	//const int nz   = 32;
	const T G      = -92.0; //setting the force to zero
	const int vapour_inlet=10;

	const int maxIter  = 100001;//100001;
	const int saveIter = 10;
	const int statIter = 10;
	plint evalTime =100;


	const T liquid_fluid = 200.0;
	const T psi0 = 4.0;
	const T vel=0.05;
	const T virt_density=liquid_fluid+5.0;
	const T vapour_fluid=40.0;
	const int inlet=10;


	pcout &lt;&lt; &quot;Reading the geometry file.&quot; &lt;&lt; endl;
	std::string fNameIn  = &quot;SOslice.dat&quot;;
	MultiScalarField2D&lt;T&gt; geometry(nx,ny);
	plb_ifstream geometryFile(fNameIn.c_str());
	if (!geometryFile.is_open()) {
		pcout &lt;&lt; &quot;Error: could not open geometry file &quot; &lt;&lt; fNameIn &lt;&lt; endl;
		return -1;
	}
	geometryFile &gt;&gt; geometry;
	//reset geometry file everything is a pore
	//geometry.reset();

	MultiBlockLattice2D&lt;T, DESCRIPTOR&gt; lattice ( nx,ny, new ExternalMomentRegularizedBGKdynamics &lt;T, DESCRIPTOR&gt;(omega) );

	lattice.periodicity().toggle(0, false);	
	lattice.periodicity().toggle(1, false);

	// Add the data processor which implements the Shan/Chen interaction potential.
	plint processorLevel = 1;
	integrateProcessingFunctional (
		new ShanChenSingleComponentProcessor2D&lt;T,DESCRIPTOR&gt; (
		G, new interparticlePotential::PsiShanChen94&lt;T&gt;(psi0,liquid_fluid) ),
		lattice.getBoundingBox(),
		lattice,
		processorLevel );

	initializeAtEquilibrium (
		lattice, Box2D(0, inlet, 0, ny-1),liquid_fluid,
		Array&lt;T,2&gt;(0.0,0.0) );
	initializeAtEquilibrium (
		lattice, Box2D(inlet+1, nx-1, 0,ny-1),vapour_fluid,
		Array&lt;T,2&gt;(0.0, 0.0) );

		//OnLatticeBoundaryCondition2D&lt;T,DESCRIPTOR&gt;* boundaryCondition = createEquilibriumBoundaryCondition2D&lt;T,DESCRIPTOR&gt;();


	//y boundaries
	setBoundaryVelocity(lattice, Box2D(0, inlet, ny-1, ny-1), Array&lt;T,2&gt;(0.0,0.) );
	initializeAtEquilibrium (
		lattice, Box2D(0, inlet, ny-1, ny-2),liquid_fluid,
		Array&lt;T,2&gt;(0.0,0.0) );
	setBoundaryVelocity(lattice, Box2D(inlet+1, nx-1, ny-1, ny-1), Array&lt;T,2&gt;(0.0,0.) );
	initializeAtEquilibrium (
		lattice, Box2D(inlet+1, nx-1, ny-1, ny-2),vapour_fluid,
		Array&lt;T,2&gt;(0.0,0.0) );


	setBoundaryVelocity(lattice, Box2D(0, inlet, 0, 0), Array&lt;T,2&gt;(0.0,0.) );
	initializeAtEquilibrium (
		lattice, Box2D(0, inlet, 0, 0),liquid_fluid,
		Array&lt;T,2&gt;(0.0, 0.0) );
	setBoundaryVelocity(lattice, Box2D(inlet+1, nx-1, 0, 0), Array&lt;T,2&gt;(0.0,0.) );
	initializeAtEquilibrium (
		lattice, Box2D(inlet+1, nx-1, 0, 0),vapour_fluid,
		Array&lt;T,2&gt;(0.0, 0.0) );

	//x boundaries
	setBoundaryVelocity(lattice, Box2D(nx-1, nx-1, 0, ny-1), Array&lt;T,2&gt;(vel,0.) );
	initializeAtEquilibrium (
		lattice, Box2D(nx-1, nx-1, 1, ny-2),vapour_fluid,
		Array&lt;T,2&gt;(vel,0.0) );//0.00005
	setBoundaryVelocity(lattice, Box2D(0, 0, 0,ny-1), Array&lt;T,2&gt;(vel,0.) );
	initializeAtEquilibrium (
		lattice, Box2D(0, 0, 1,ny-2),liquid_fluid,
		Array&lt;T,2&gt;(vel, 0.0) );

	// Where &quot;geometry&quot; evaluates to 1, use bounce-back.//0.5 adhesive force
	defineDynamics(lattice, geometry, new BounceBack&lt;T, DESCRIPTOR&gt;(virt_density), true);
	defineDynamics(lattice, Box2D(Box2D(0, nx-1, 0, 0)), new BounceBack&lt;T, DESCRIPTOR&gt;(virt_density));
	defineDynamics(lattice, Box2D(Box2D(0, nx-1, ny-1, ny-1)), new BounceBack&lt;T, DESCRIPTOR&gt;(virt_density));



	lattice.initialize();

	pcout &lt;&lt; &quot;Starting simulation&quot; &lt;&lt; endl;
	// The value-tracer is used to stop the simulation once is has converged.
	// 1st parameter:velocity
	// 2nd parameter:size
	// 3rd parameters:threshold
	// 1st and second parameters ae used for the length of the time average (size/velocity)
	util::ValueTracer&lt;T&gt; converge(1.0,1000.0,1.0e-4);
	int iT=1;

	for (int iT; iT&lt;maxIter; ++iT) {


	//initializeAtEquilibrium (
		//lattice, Box2D(0, 10, 0, ny-1),200.0,
		//Array&lt;T,2&gt;(0.05,0.0) );
		//lattice, Box2D(0, 20, 0, ny-1),200.0 );
		if (iT%statIter==0) {
			auto_ptr&lt;MultiScalarField2D&lt;T&gt; &gt; rho( computeDensity(lattice) );
			converge.takeValue(getStoredAverageEnergy(lattice),true);
			pcout &lt;&lt; &quot;iteration &quot;  &lt;&lt; iT &lt;&lt; endl;
			pcout &lt;&lt; &quot;Average density: &quot; &lt;&lt; computeAverage(*computeDensity(lattice, Box2D(0, nx-1, 0, ny-1 ))) &lt;&lt; endl;
			pcout &lt;&lt; &quot;Minimum density: &quot; &lt;&lt; computeMin(*rho) &lt;&lt; endl;
			pcout &lt;&lt; &quot;Maximum density: &quot; &lt;&lt; computeMax(*rho) &lt;&lt; endl;

		}
		if (iT %saveIter==0) {
			ImageWriter&lt;T&gt;(&quot;leeloo.map&quot;).writeGif (
			createFileName(&quot;rho&quot;, iT, 6),*computeDensity(lattice, Box2D(0, nx-1, 0, ny-1 )), vapour_fluid, virt_density );			               //writeVTK(lattice,iT);
			char path[200]=&quot;density&quot;;//createFileName(&quot;density&quot;, iT, 6)
			char iter[100]=&quot;&quot;;
			sprintf(iter, &quot;%d&quot;, iT);
			strcat(path, iter);			
			strcat(path, &quot;.dat&quot;);
			pcout &lt;&lt; path &lt;&lt; endl;
			plb_ofstream ofile(path);
			ofile &lt;&lt; setprecision(10) &lt;&lt; *computeDensity(lattice) &lt;&lt; endl;

		}
		lattice.collideAndStream();
		converge.takeValue(getStoredAverageEnergy(lattice),true);
		if (converge.hasConverged())
		{
			// break;
		}
	}
	//convert(convert -delay 5 rho*.gif animation.gif);
	T tEnd = global::timer(&quot;simTime&quot;).stop();
	T totalTime = tEnd-tIni;
	pcout &lt;&lt; &quot;number of processors: &quot; &lt;&lt; global::mpi().getSize() &lt;&lt; endl;
	pcout &lt;&lt; &quot;simulation time: &quot; &lt;&lt; totalTime &lt;&lt; endl;

}</pre>]]></description>
            <dc:creator>cotrf</dc:creator>
            <category>General</category>
            <pubDate>Fri, 27 Aug 2010 19:39:00 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2803,2803#msg-2803</guid>
            <title>Lattice (1 reply)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2803,2803#msg-2803</link>
            <description><![CDATA[ I am new in this field and having some problems in understanding the basic terminologies i need is some support if you have the idea of the questions bellow<br />
1) what is ''Lattice'' ? Is it associated with the grids in discretization in numerical.<br />
2) Node ?? cell?? and <br />
3) how the process of collision take place in lattice through nodes containing cells,?<br />
<br />
regards]]></description>
            <dc:creator>adnan_jahangir</dc:creator>
            <category>General</category>
            <pubDate>Wed, 11 Aug 2010 05:26:50 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2801,2801#msg-2801</guid>
            <title>Getting started with Palabos - v. 0.7 doesn't compile with Code::Blocks (1 reply)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2801,2801#msg-2801</link>
            <description><![CDATA[ Hi everyone,<br />
I hope this is the right section of the forum.<br />
<br />
I installed Code::Blocks 10.05 and tried to build and run Palabos v. 0.6, Release 2 and v.0.7.<br />
While everything for v. 0.6 worked just fine, building v. 0.7 produced the following error-code:<br />
<br />
obj\Release\src\core\blockIdentifiers.o:blockIdentifiers.cpp|| multiple definition of `plb::identifiers::BlockId plb::identifiers::getScalarId&lt;float&gt;()'|<br />
obj\Release\src\core\blockIdentifiers.o:blockIdentifiers.cpp|| multiple definition of `plb::identifiers::BlockId plb::identifiers::getScalarId&lt;double&gt;()'|<br />
obj\Release\src\core\blockIdentifiers.o:blockIdentifiers.cpp|| multiple definition of `plb::identifiers::BlockId plb::identifiers::getTensorId&lt;float, 2&gt;()'|<br />
obj\Release\src\core\blockIdentifiers.o:blockIdentifiers.cpp|| multiple definition of `plb::identifiers::BlockId plb::identifiers::getTensorId&lt;double, 2&gt;()'|<br />
obj\Release\src\core\blockIdentifiers.o:blockIdentifiers.cpp|| multiple definition of `plb::identifiers::BlockId plb::identifiers::getLatticeId&lt;double, plb::descriptors::D2Q9Descriptor&gt;()'|<br />
||=== Build finished: 5 errors, 0 warnings ===|<br />
<br />
I don't really understand the problem. Is there a way to solve this in short time?<br />
Thanks in advance.<br />
Alex]]></description>
            <dc:creator>alexki</dc:creator>
            <category>General</category>
            <pubDate>Thu, 05 Aug 2010 11:44:02 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2789,2789#msg-2789</guid>
            <title>Are the Reynolds numbers in physical and LB unit Differ? (4 replies)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2789,2789#msg-2789</link>
            <description><![CDATA[ Dear LB Researchers<br />
hi,<br />
I have a question about Reynolds number in physical and LB unit bases. consider the fluid flow through a 2-d channel with the width of W  and the inlet velocity U  all in the physical world. in physical unit Reynolds=U*D/viscosity<br />
Timm defined Reynolds number in LB unit as Reynolds=(U_lb*Ny)/viscosity_lb where, Ny is the number of lattice nodes in y-direction . I confused. if we compare to Reynolds number we can see that they are not same but we expect that dimensionless number Reynolds remain unchanged in physical and numerical world. I will be appreciated if someone give me her/him evaluable comments<br />
<br />
thanks in advance]]></description>
            <dc:creator>r.imani</dc:creator>
            <category>General</category>
            <pubDate>Tue, 27 Jul 2010 13:50:15 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2785,2785#msg-2785</guid>
            <title>How to define Periodic boundaries on Y Directions? (1 reply)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2785,2785#msg-2785</link>
            <description><![CDATA[ How to define Periodic boundaries on Y Directions?<br />
I want to simulation a poiseuille on which the Y direction Periodic,so what can i do?<br />
Thank you!]]></description>
            <dc:creator>myroumots</dc:creator>
            <category>General</category>
            <pubDate>Mon, 26 Jul 2010 00:19:10 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2776,2776#msg-2776</guid>
            <title>Simulating a canal with sliding gate (14 replies)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2776,2776#msg-2776</link>
            <description><![CDATA[ Hello<br />
<br />
I'm trying to write a simple program in Palabos, that would simulate a canal filled with water, with a sliding gate in the middle.<br />
It involves changing the collision and streaming functions for the part with the gate. I have a formula, that allow me to compute the distribution functions in that place (in all papers I read it was defined as <i class="bbcode">f</i>) and I could write it in matlab or simple C++, but I want to use the Palabos library for that purpose. <br />
From what I read in the user's guide, it should be possible with use of D2Q9 model and some data processor, but I have no idea which and how.<br />
<br />
Could you help me with the task?]]></description>
            <dc:creator>makhan</dc:creator>
            <category>General</category>
            <pubDate>Thu, 02 Sep 2010 13:12:39 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2754,2754#msg-2754</guid>
            <title>Parallelizing Reaction between Neighbors (15 replies)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2754,2754#msg-2754</link>
            <description><![CDATA[ Hello, <br />
<br />
In trying to get my simulations to run in parallel, I've put almost all of my methods into data processing functionals. However, there is one set of methods, a reaction between some neighboring particles, that doesn't require an iteration through some domain, but an iteration though a predefined list of neighbors. Basically I keep a vector of pairs, where the pairs consist of particles (x, y, z) and the directions in which the relevant neighbors are. My question is how I can make this reaction effectively parallel: it seems that for each node in the cluster, I need to know which part of the lattice is being calculated, so that rather than each node calculating the reaction for the whole system, it only calculates the reaction for the sub-domain it is responsible for. I figure there has to be some way to do this (is the lattice split up spatially as a grid, based on the number of clusters and rank?), since this must be done for normal data processing functionals and collideAndStream in parallel. Thanks in advance.<br />
<br />
--Arpon]]></description>
            <dc:creator>Arpon</dc:creator>
            <category>General</category>
            <pubDate>Tue, 24 Aug 2010 17:45:59 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2750,2750#msg-2750</guid>
            <title>Boiling in Palabos? (1 reply)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2750,2750#msg-2750</link>
            <description><![CDATA[ I want to be able to utilize Palabos and the Shan-Chen SCMP model to simulate boiling phenomenon, specifically bubble generation, growth, departure, and dynamics.  Has anyone done some of this?  Is it possible?  What is the best example to start from?  I am trying to figure out what is possible in this regard for some thesis work.  Any assistance/information would be greatly appreciated.<br />
<br />
I would like to just start with a simple heat flux model to create a single bubble.... any tips? <br />
<br />
Thanks, Dan]]></description>
            <dc:creator>DLRoseum</dc:creator>
            <category>General</category>
            <pubDate>Tue, 03 Aug 2010 20:00:51 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2749,2749#msg-2749</guid>
            <title>Tutorial 2-2 (1 reply)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2749,2749#msg-2749</link>
            <description><![CDATA[ Hi everyone,<br />
<br />
I have a problem running the tutorial number 2-2. I had no problems running any of the examples from the first tutorial, but compiling the tutorial number 2-2 gives me the following error message:<br />
<br /><pre class="bbcode">
tutorial_2_2.cpp: In function ‘int main(int, char**)’:
tutorial_2_2.cpp:128: error: ‘MultiBlockDistribution2D’ was not declared in this scope
tutorial_2_2.cpp:128: error: expected `;' before ‘blockDistribution’
tutorial_2_2.cpp:129: error: ‘blockDistribution’ was not declared in this scope
tutorial_2_2.cpp:139: error: expected primary-expression before ‘&gt;’ token
tutorial_2_2.cpp:139: error: expected primary-expression before ‘)’ token
tutorial_2_2.cpp:140: error: expected primary-expression before ‘&gt;’ token
tutorial_2_2.cpp:140: error: expected primary-expression before ‘)’ token</pre>
<br />
How can I declare the MultiBlockDistribution?<br />
<br />
Thank you very much!<br />
Konstantin<br />
<br />
The complete message after the make command is:<br />
<br /><pre class="bbcode">
python ../../../scons/scons.py -f ../../../SConstruct palabosRoot=../../.. projectFiles=&quot;tutorial_2_2.cpp&quot; precompiled=false optimize=true debug=false profile=false MPIparallel=false SMPparallel=false usePOSIX=true useCVMLCPP=false serialCXX=g++ parallelCXX=mpicxx compileFlags=&quot;&quot; linkFlags=&quot;&quot; optimFlags=&quot;-O3&quot; debugFlags=&quot;-g&quot; profileFlags=&quot;-pg&quot; libraryPaths=&quot;&quot; includePaths=&quot;&quot; libraries=&quot;&quot;
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o tutorial_2_2.o -c -O3 -DPLB_USE_POSIX -~/konstantin/palabos-v0.7r0/src -~/konstantin/palabos-v0.7r0/externalLibraries tutorial_2_2.cpp
tutorial_2_2.cpp: In function ‘int main(int, char**)’:
tutorial_2_2.cpp:128: error: ‘MultiBlockDistribution2D’ was not declared in this scope
tutorial_2_2.cpp:128: error: expected `;' before ‘blockDistribution’
tutorial_2_2.cpp:129: error: ‘blockDistribution’ was not declared in this scope
tutorial_2_2.cpp:139: error: expected primary-expression before ‘&gt;’ token
tutorial_2_2.cpp:139: error: expected primary-expression before ‘)’ token
tutorial_2_2.cpp:140: error: expected primary-expression before ‘&gt;’ token
tutorial_2_2.cpp:140: error: expected primary-expression before ‘)’ token
scons: *** [tutorial_2_2.o] Error 1
scons: building terminated because of errors.
make: *** [compile] Error 2</pre>]]></description>
            <dc:creator>Konstantin</dc:creator>
            <category>General</category>
            <pubDate>Wed, 21 Jul 2010 11:23:42 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2746,2746#msg-2746</guid>
            <title>Can Palabos support OpenMP? (1 reply)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2746,2746#msg-2746</link>
            <description><![CDATA[ Dear All<br />
   I use Inter Core Quad Q8200,it has four cores?But hou can I use them all? Can Palabos support OpenMP or something like?<br />
   Thanks!]]></description>
            <dc:creator>myroumots</dc:creator>
            <category>General</category>
            <pubDate>Wed, 14 Jul 2010 07:53:25 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2727,2727#msg-2727</guid>
            <title>Python Interface Compilation Problems (4 replies)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2727,2727#msg-2727</link>
            <description><![CDATA[ Thank you for providing this interface and the presentation at the DSFD 2010 in Rome!<br />
<br />
Anyway, I have problems compiline the interface following the instructions on the websites. After installing all required modules and compilation of the Palabos core cpp files I get the following errors.  I'm using Ubuntu 10.04.<br />
I'm not familiar with sed, so I hope somebody can help me:<br />
<br />
Swig-file preparation for module core<br />
sed: -e Ausdruck #1, Zeichen 41: Unbekannte Option für `s'<br />
sed: -e Ausdruck #1, Zeichen 39: Unbekannte Option für `s'<br />
sed: -e Ausdruck #1, Zeichen 41: Unbekannte Option für `s'<br />
sed: -e Ausdruck #1, Zeichen 39: Unbekannte Option für `s'<br />
sed: -e Ausdruck #1, Zeichen 41: Unbekannte Option für `s'<br />
sed: -e Ausdruck #1, Zeichen 39: Unbekannte Option für `s'<br />
sed: -e Ausdruck #1, Zeichen 41: Unbekannte Option für `s'<br />
.<br />
.<br />
.<br />
python /home/jkropf/palabos-v0.7r0/scons/scons.py -f /home/jkropf/palabos-v0.7r0/pythonic/src//SConstruct palabosRoot=/home/jkropf/palabos-v0.7r0 pypalRoot=/home/jkropf/palabos-v0.7r0/pythonic/src/ optimize=true debug=false profile=false MPIparallel=true serialCXX=g++ parallelCXX=mpicxx compileFlags=&quot;-Wall&quot; optimFlags=&quot;-O3&quot; debugFlags=&quot;-g&quot; profileFlags=&quot;-pg&quot; includePaths=&quot;&quot; linkFlags=&quot;&quot;<br />
scons: Reading SConscript files ...<br />
scons: done reading SConscript files.<br />
scons: Building targets ...<br />
swig -o swig/core/pre_processed/core_wrap.cc -classic -python -c++ swig/core/pre_processed/core.i<br />
No module name specified using %module or -module.<br />
scons: *** [swig/core/pre_processed/core_wrap.cc] Error 1<br />
scons: building terminated because of errors.<br />
make: *** [compilation] Fehler 2<br />
<br />
Seems that there is an error with the prepocessing script since the prepossesed *.i files are empty in the pre_processed folder and so no *.cc files are created.<br />
<br />
Any hints?<br />
<br />
<br />
Regards,<br />
<br />
Johannes]]></description>
            <dc:creator>jkropf</dc:creator>
            <category>General</category>
            <pubDate>Mon, 19 Jul 2010 17:58:00 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2721,2721#msg-2721</guid>
            <title>Rayleigh Benard 2D - OpenLB - Invalid Parameter (no replies)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2721,2721#msg-2721</link>
            <description><![CDATA[ I am attempting to run the rayleigh_benard2D.exe in OLB 0.5r2 after it has been compiled.  I have entered the following when in the correct directory:<br />
<br />
$ ./rayleigh_benard2d.exe 1.7 1 50 100<br />
<br />
It returns the following:<br />
<br />
1.7 1<br />
1.73845e-06 1.73845e-06<br />
defining dynamics<br />
starting simulation<br />
Writing stats at time 0.<br />
0<br />
Writing Gif<br />
Invalid Parameter - 600x300<br />
Invalid Parameter - 600x300<br />
<br />
Then the simulation stalls and does not proceed. <br />
<br />
Any ideas how to get this to run?]]></description>
            <dc:creator>DLRoseum</dc:creator>
            <category>General</category>
            <pubDate>Wed, 07 Jul 2010 03:31:31 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2712,2712#msg-2712</guid>
            <title>New Palabos release: Version 0.7 Release 0 (10 replies)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2712,2712#msg-2712</link>
            <description><![CDATA[ It is our pleasure to announce that a new major release of Palabos is available. The release reaches two important milestones in the project: a Python scripting interface, and local grid refinement. As usual, the code can be downloaded from the Palabos web page: [<a rel="nofollow"  href="http://www.lbmethod.org/palabos/download.html">www.lbmethod.org</a>] .<br />
<br />
A &quot;Python interface&quot; means: you can execute Palabos code through specific library calls from the Python language. In practice, this implies that Palabos gets a look-and-feel similar to Matlab scripts. The code can be developed either interactively at the Python prompt, or executed programmatically through a Python script. This approach is much more lightweight than the development of applications in C++: the language is more straightforward and intuitive, and there is no need for compiling your applications. From an efficiency standpoint, nothing is changed: the codes remain just as efficient as through the C++ interface (we sometimes lose something around 10%, which is definitely negligible), it is still parallel, and scales just as well as it used to scale.<br />
<br />
For now, not all Palabos features have been ported to Python, but this will be done progressively in subsequent releases. The Python scripting interface is an experiment which is completely new to us as well. Therefore, your feedback on the forum is crucial. How do you like the Python interface? Is the syntax convenient? Was it easy to compile? Please let us know your expericence on this. The compilation of the Python interface is documented in the user's guide at [<a rel="nofollow"  href="http://www.lbmethod.org/palabos/documentation.userguide/pythonic.html">www.lbmethod.org</a>] . Have a look at the example Python scripts to understand how it works.<br />
<br />
The other major innovation of the release is grid refinement, developed mainly by Daniel Lagrava. For now, only the 2D interface is provided, and the 3D one will follow up soon. The principles of the grid refinement strategy are explained in the user's guide ( [<a rel="nofollow"  href="http://www.lbmethod.org/palabos/documentation.userguide/grid-refinement.html">www.lbmethod.org</a>] ), and an example program is provided.<br />
<br />
Finally, a new multi-phase model, the He/Lee model, is implemented in the new release. Implementing this model was a real crash-test for Palabos. The model requires couplings between many scalar-fields, vector-fields, and lattices, and uses next-to-nearest-neighbor interaction stencils. Test result positive: the model works fine, runs fast, and scales impressively. This adds a new multi-phase model to Palabos which handles large densit and viscosity ratios between the two phases.]]></description>
            <dc:creator>jlatt</dc:creator>
            <category>General</category>
            <pubDate>Sun, 11 Jul 2010 03:09:53 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2706,2706#msg-2706</guid>
            <title>Mysterious Heat Formation in Two-Phase Advection-Diffusion System (2 replies)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2706,2706#msg-2706</link>
            <description><![CDATA[ Hi, the system I'm working with consists of two phases, namely polymer and filler, and two lattices. In both lattices, there are adiabatic temperature boundaries on the left and right sides, as well as some area of space adjacent to each boundary—in these spaces all cells are attributed AdvectionDiffusionRLBdynamics. In between these two spaces (in the center of the system) is where there is polymer and filler. In the first lattice, the polymer has AdvectionDiffusionRLBdynamics and the fillers (dispersed randomly or arranged in lines) are BounceBack particles. In the second lattice, it is the opposite. I run both lattices at the same time, updating each lattice with the changes in temperature from the other lattice, and doing some interlattice updates and calculations. However, one issue I've noticed is that in the beginning of the simulations—before I introduce any heat pulse—is that some extra heat seems to be produced seemingly from nowhere. Right near the boundaries between the filler particles and the polymer particles, some, although not much, heat is produced. Where is this heat coming from?<br />
<br />
The other issue is that once the heat pulse has been introduced and the system reaches it's theoretically maximum temperature, the total heat in the system (summed densities of each particle) continues to increase over time. I'm confused about this, since I thought the RLBdynamics would stabilize this kind of situation. Is there a fix?]]></description>
            <dc:creator>Arpon</dc:creator>
            <category>General</category>
            <pubDate>Fri, 02 Jul 2010 18:19:26 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2703,2703#msg-2703</guid>
            <title>About the &amp;quot;equilibrium function&amp;quot; and &amp;quot;collide() member function&amp;quot; in olb::BlockLattice2D&amp;lt;T,Lattice&amp;gt; class (1 reply)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2703,2703#msg-2703</link>
            <description><![CDATA[ Hello, guys,<br />
I am a new one for Openlb.<br />
<br />
As we know, the equilibrium function is very important in the LBM<br />
But I cannot find the definition and computation about equilibrium function in the of codes.Where is it? <br />
And the &quot;collide() member function&quot; in olb::BlockLattice2D&lt;T,Lattice&gt; class, why is     &quot;virtual void collide() =0;&quot; , or is it return zero?<br />
<br />
I want to familiar with the olb code quickly, could someone give me some advice about how and what I should do while I face to so many codes?<br />
<br />
Thanks.]]></description>
            <dc:creator>carly</dc:creator>
            <category>General</category>
            <pubDate>Mon, 05 Jul 2010 09:31:34 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2674,2674#msg-2674</guid>
            <title>greyscale image colormap [patch] (1 reply)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2674,2674#msg-2674</link>
            <description><![CDATA[ Hi, <br />
<br />
I wrote a simple greyscale image colormap. Thought you might be interested :)<br />
<br />
It’s not really clean, but it does what I need. <br />
<br />
Here’s the patch to palabos: <br />
<br /><pre class="bbcode">
# HG changeset patch
# User <a rel="nofollow"  href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#97;&#114;&#110;&#101;&#64;&#98;&#114;&#97;&#110;&#100;&#46;&#109;&#101;&#100;&#109;&#97;">&#97;&#114;&#110;&#101;&#64;&#98;&#114;&#97;&#110;&#100;&#46;&#109;&#101;&#100;&#109;&#97;</a>
# Date 1276505021 -7200
# Branch babtests
# Node ID 87a577c922aa66a93d282b6f7c3e2b8e0363fc00
# Parent  4fe639a63a13fb937417a5eb228db924a5905e56
Added greyscale output

diff -r 4fe639a63a13 -r 87a577c922aa src/io/colormaps.cpp
--- a/src/io/colormaps.cpp	Do Jun 10 17:43:00 2010 +0200
+++ b/src/io/colormaps.cpp	Mo Jun 14 10:43:41 2010 +0200
@@ -324,6 +324,25 @@
     return leeLooBlue;
 }
 
+PiecewiseFunction generateGreyRGB() {
+    double p0  =  0.;
+    double p2  =  3./8.;
+    double p3  =  5./8.;
+    double p4  =  7./8.;
+    double p5  =  1.;
+    double p6  =  9./8.;
+
+
+    PiecewiseFunction greyRGB;
+    greyRGB.addPiece (Piece(p0, p2), new LinearFunction(p0, p2, 1., 0.3) );
+    greyRGB.addPiece (Piece(p2, p3), new LinearFunction(p2, p3, 0.3, 0.2) );
+    greyRGB.addPiece (Piece(p3, p4), new LinearFunction(p3, p4, 0.2, 0.1) );
+    greyRGB.addPiece (Piece(p4, p5), new LinearFunction(p4, p6, 0.1, 0.) );
+
+    return greyRGB;
+}
+
+
 ColorMap generateMap(std::string mapName) {
     if (mapName == &quot;earth&quot;) {
         return ColorMap (
@@ -355,6 +374,12 @@
                 generateLeeLooGreen(),
                 generateLeeLooBlue() );
     }
+    else if (mapName == &quot;grey&quot;) {
+        return ColorMap (
+                generateGreyRGB(),
+                generateGreyRGB(),
+                generateGreyRGB() );
+    }
     return ColorMap (
             generateLeeLooRed(),
             generateLeeLooGreen(),</pre>
<br />
Copyright: 2010 Arne Babenhauserheide<br />
License: GPLv3+<br />
<br />
I’d be happy, if you’d include it.]]></description>
            <dc:creator>ArneBab</dc:creator>
            <category>General</category>
            <pubDate>Wed, 07 Jul 2010 14:09:38 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2672,2672#msg-2672</guid>
            <title>'forceBeginsAt' is not a member of 'plb::descriptors::Velocity3dDescriptor' (2 replies)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2672,2672#msg-2672</link>
            <description><![CDATA[ Hi, <br />
<br />
I’m trying to get a thermal model working (fluid flow with added termal flow), and the following error crops up when compiling: <br />
<br />
src/basicDynamics/externalForceDynamics.hh:62: error: <br />
'forceBeginsAt' is not a member of 'plb::descriptors::Velocity3dDescriptor'<br />
<br />
I tried for the last two days to track it down, but I don’t find a way to fix it. <br />
<br />
Could you give me a pointer, where it could come from — did I forget something? Or initialize stuff in the wrong order? …<br />
<br />
Best wishes, <br />
Arne<br />
<br />
PS: Is there a better way to add a scalar value to a part of the stream and have it advected? I don’t really need the diffusion part. <br />
<br />
PPS: I had to scrap the two fluid approach, because I didn’t manage to reduce the diffusion speed of the second fluid low enough to make the simulation realistic :(]]></description>
            <dc:creator>ArneBab</dc:creator>
            <category>General</category>
            <pubDate>Thu, 24 Jun 2010 16:04:35 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.lbmethod.org/forum/read.php?4,2660,2660#msg-2660</guid>
            <title>Code Stability Problems in 3D (2 replies)</title>
            <link>http://www.lbmethod.org/forum/read.php?4,2660,2660#msg-2660</link>
            <description><![CDATA[ I've had several problems with my code in 3D, and now one more is left.<br />
If I just place spheres into the lattice (via the <a rel="nofollow"  href="http://www.lbmethod.org/palabos/documentation.userguide/boundary-conditions.html#bounce-back">Domainfunctional</a>) the code works fine (at least up to 265000 iteration steps).<br />
<br />
But if I place my structures of interest into the lattice, it will crash sooner or later (20k to 60k steps so far).<br />
Now what I'm wondering about is the error message :<br />
<br /><pre class="bbcode">
[PC183:14967] *** Process received signal ***
[PC183:14967] Signal: Segmentation fault (11)
[PC183:14967] Signal code: Address not mapped (1)
[PC183:14967] Failing at address: 0xbf0bb60c
[PC183:14967] [ 0] [0xb77da410]
[PC183:14967] [ 1] finderror02(_ZN3plb14BlockLattice3DIdNS_11descriptors21ForcedD3Q19DescriptorEE16collideAndStreamENS_5Box3DE+0x30e) [0x80ee19e]
[PC183:14967] [ 2] finderror02(_ZN3plb19MultiBlockLattice3DIdNS_11descriptors21ForcedD3Q19DescriptorEE16collideAndStreamEv+0xe2) [0x80e64a2]</pre>
<br />
were a Segmentation fault usually is the result of moving out of the range of an array or something similar. So I don't understand why this should happen after 20k or 60k steps, and not right at the beginning.<br />
<br />
Or is this the MPI way telling me &lt;NAN&gt; occoured somewhere ?<br />
<br />
Any ideas/hints ?]]></description>
            <dc:creator>Choelzl</dc:creator>
            <category>General</category>
            <pubDate>Wed, 30 Jun 2010 10:10:26 +0200</pubDate>
        </item>
    </channel>
</rss>
