Skip to content

Re: airfoil in OpenLB


Hi balzar29,

for the periodicity:
you can have a look at the thermal2D example, more specific the line
cGeometry.setPeriodicity( true, false );
this sets periodicity for x, but not y direction.

For the velocity:
You can hand in an Analytical functor instead of a Poiseuille profile
std::vector<T> zero( 2,T() );
AnalyticalConst2D<T,T> u( zero );

To control the parameters you want to have a look at the LBconverter at the beginning of main