Skip to content

Reply To: Printing the relaxation time of each lattice to vtk files

Due to recent bot attacks we have changed the sign-up process. If you want to participate in our forum please send a message via our contact form.

Forums 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

#4511
Nicolas
Participant

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 6 years, 6 months ago by Nicolas.