Re: Change the value of nx and ny for cavity2d examples?
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › Change the value of nx and ny for cavity2d examples? › Re: Change the value of nx and ny for cavity2d examples?
September 3, 2013 at 2:50 pm
#2118
mathias
Keymaster
Hallo Thir,rnrn You can change the resultion in the xml-file by changing the parameter “”latticeL”” which is the size of a voxel in meter. In this example we have a square cavity of lenth 1 m. The function “”converter->numNodes(x)”” returns the number of voxels of size “”latticeL”” for x meter. In this example we set “”int N = converter->numNodes();”” which gives us the number of voxels of size “”latticeL”” for 1 meter. Have a look at the other examples e.g. “”cylinder2d”” and our user guid.rnrnMathias