


{"id":28509,"date":"2017-12-19T11:33:04","date_gmt":"2017-12-19T11:33:04","guid":{"rendered":"\/forum\/forums\/topic\/time-averaging-over-different-time-periods\/"},"modified":"2017-12-19T11:33:04","modified_gmt":"2017-12-19T11:33:04","slug":"time-averaging-over-different-time-periods","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/time-averaging-over-different-time-periods\/","title":{"rendered":"Time averaging over different time periods"},"content":{"rendered":"<p><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">Hi everyone,<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">I want to get the time averaged (say ~15s average) of the variables like velocity profiles, temperature, mass flow at a cross-section of the geometry.<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">In my (transient case) simulations, the real flow time is 10 seconds. I enabled data sampling for time statistics in fluent from 0 seconds. So, I am getting time averaged values of lets say velocity magnitude from 0 to 10 s. But I want time-averaged values from 5 to 10 seconds. I saved case and data files every 100 time steps.&nbsp;<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">I need to find the &#8220;average solution&#8221; for the past &#8220;n&#8221; timesteps from the data files that have already been saved.<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">Is there any method to get those time-averaged values between specific intervals of time?<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">Let me explain a bit more. The user has iterated the case till time step no. 20000, saving files after every 100 time steps. Now the user wants to see the average solution for time steps 500 to 1200. Is there a way to load the appropriate data files (for these intervals of time), call a UDF to find the averages of variables?<\/span><br style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\"><span style=\"color: #000000; font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: 13.3333px; background-color: #f7f7f7;\">Thank you in advance.<\/span><\/p>\n","protected":false},"template":"","class_list":["post-28509","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_old_topic_id":["676"],"_bbp_old_topic_author_name_id":["Anonymous"],"_bbp_old_is_topic_anonymous_id":["false"],"_bbp_old_closed_status_id":["publish"],"_bbp_author_ip":[null],"_bbp_old_sticky_status_id":["normal"],"_bbp_likes_count":["0","0","0","0","0"],"_btv_view_count":["3193"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["28509"],"_bbp_forum_id":["27792"],"_bbp_engagement":["155107","155351","158563","161667","172581"],"_bbp_voice_count":["5"],"_bbp_reply_count":["9"],"_bbp_last_reply_id":["111651"],"_bbp_last_active_id":["111651"],"_bbp_last_active_time":["2020-04-18 10:52:27"]},"test":"maliuzair"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/28509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/28509\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=28509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}