[size=medium]Hi,
In the manual of OpenLb (Page14), I got that “the chioce of the velocity/density value is not static: it can be adapted at ever time step to modelize time-dependent boundaried”. So I want to try to set the time-dependent boundaries. In the cylinder case, I define the outlet BC is a time-dependent boundaries, but I failed. The code is as below.[/size]
int main(int argc, char* argv[]) { . . . for (int iT=0; iT<maxT; ++iT) {
if(iT==300) {
for (int iY=0; iY<ny; ++iY) {
lattice.get(nx-1,iY).defineRho(0.9);
}
if (iT%tSave==0 && iT !=0) {
cout << iT << endl;
cout << "av energy="
<< lattice.getStatistics().getAverageEnergy()
<< "; av rho="
<< lattice.getStatistics().getAverageRho() << endl;
.
.
.
}
lattice.collideAndStream();
}
delete boundaryCondition;
}
[size=medium]Could you give me some hint how to set the time-dependent boundaries. Thank you in advance!
Wei[/size]