Reply To: Printing the relaxation time of each lattice to vtk files
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › Printing the relaxation time of each lattice to vtk files › Reply To: Printing the relaxation time of each lattice to vtk files
Dear Junwei Guo,
you can print any analytical functor via SuperLatticeFfromAnalyticalF2D. In case a constant value needs to be written an AnalyticalConst2D can be used to provide the respective functor. Even though you are probably not interested in writing a constant lattice relaxation time to every cell, this could be achieved by the following snippet:
AnalyticalConst2D<T, T> anaConstTau( converter.getLatticeRelaxationTime() );
SuperLatticeFfromAnalyticalF2D<T, DESCRIPTOR> tau( anaConstTau, sLattice );
vtmWriter.addFunctor( tau );
Best,
Nicolas
- This reply was modified 5 years ago by Nicolas.