Skip to content

Re: Change the value of nx and ny for cavity2d examples?

#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