Open ztdepztdep opened 3 years ago
Hi,
you can access fields after_step callback which can be implemented in youtrLBSim class.
e.g:
def after_step(self, runner): every_n = 10000
if self.iteration % every_n == every_n - 1:
self.need_sync_flag = True
if self.iteration%every_n==0:
vx,vy = runner._sim.vx, runner._sim.vy
Remember that sailfish does not copy gpu fields every step to host, so it has to know one step ahead to do so. Also if every is smaller than 100-1000 - the speed will be also smaller.
the best
mk
On Sat, Oct 31, 2020 at 7:49 AM ztdepztdep notifications@github.com wrote:
How to monitor the velocity along the center line of a cavity?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sailfish-team/sailfish/issues/55, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJDC5VAWFJ2AMSSIHU6KPDSNOXRDANCNFSM4TFXCJWQ .
-- Pełnomocnik Rektora ds. zastosowania nowoczesnych komputerowych metod kształcenia dla regionalnych kadr innowacyjnej gospodarki tel. +48 32 3497 612
How to monitor the velocity along the center line of a cavity?