From be6a85b79cbf9caab47965788dc69486561bf764 Mon Sep 17 00:00:00 2001 From: "Michael Stumpf (ifhcluster)" Date: Mon, 13 May 2019 16:06:08 +0200 Subject: [PATCH] bugfix statistics particle force --- matlab/read_statistics_channel_ucf.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/matlab/read_statistics_channel_ucf.m b/matlab/read_statistics_channel_ucf.m index 9b31864..72e71cc 100644 --- a/matlab/read_statistics_channel_ucf.m +++ b/matlab/read_statistics_channel_ucf.m @@ -13,7 +13,7 @@ function [tbeg,tend,nstat,um,uu,vv,ww,uv,uub,uvb,varargout] = read_statistics_ch % Open UCF file and read obj = ucf('verbosity',par.Results.verbosity,'debug',par.Results.debug); obj.open(file); - tend = obj.getSimulationTime(1); + tend = obj.getSimulationTime(); % Read first dataset [um,params] = obj.readSet(1,1); @@ -43,9 +43,9 @@ function [tbeg,tend,nstat,um,uu,vv,ww,uv,uub,uvb,varargout] = read_statistics_ch fxp = obj.readSet(1,8); fyp = obj.readSet(1,9); fzp = obj.readSet(1,10); - varargout{1} = fxp; - varargout{2} = fyp; - varargout{3} = fzp; + varargout{1} = fxp/nstat; + varargout{2} = fyp/nstat; + varargout{3} = fzp/nstat; end % Close file