February 9, 2021 at 8:00 ampc_singhSubscriberFebruary 9, 2021 at 3:14 pmRobAnsys EmployeeI suspect it's related to the duration that's sampled, but the exact meaning of the whole C_STORAGE_R.... macro may not be fully defined. nFebruary 9, 2021 at 3:51 pmDrAmineAnsys EmployeeYou have access to the Cell Storage Values as mentioned in the documentation.nFebruary 9, 2021 at 4:13 pmpc_singhSubscriberSir, Please help me out.nnFebruary 9, 2021 at 4:21 pmDrAmineAnsys EmployeeWhat do you want?nFebruary 9, 2021 at 4:24 pmDrAmineAnsys EmployeeAll what you required is mentioned in the docu.nFebruary 9, 2021 at 4:25 pmYasserSelimaSubscriberArraySV_T_MEAN is the time integral of the temperature ... if you are sampling data for 0.5 seconds, you need to divide this value by 0.5 to get average temperature.n
The sampled time appears to you in the Run Calculation Task page.n To know itnIn your UDF, it should be equal toCorrection: I have just checked the manual.ndelta_time_sampled = Sampling Interval;nFebruary 9, 2021 at 4:25 pmpc_singhSubscriberIdeas to write UDF for time-sampled data and which macro I have use..nFebruary 9, 2021 at 4:30 pmpc_singhSubscriberThanks. Is there any macro I have to use?nFebruary 9, 2021 at 4:38 pmpc_singhSubscriberI have one more doubt... I want this UDF at the outlet only (my aim is to calculate the average temperature at the outlet only). How will I do that?nFebruary 9, 2021 at 4:42 pmpc_singhSubscriber@ yasserSelima Thanks for the correction.nFebruary 9, 2021 at 4:45 pmYasserSelimaSubscriberThe macro is what you put in your photo. C_STORAGE_RnYou will write the equation as it is ... c and t are cell and thread at outlet. and delta_time_sampled = Sampling Interval;nAnd by the way, if you are interested only in average temperature, why don't you make mass average and monitor it in the solution. You don't need UDF for thatnFebruary 9, 2021 at 4:52 pmpc_singhSubscriberOk.nI have to run for at least 140-160 cycles (each cycle is of 4.2 sec). And before every next cycle, I have to patch the average temperature of the Last cycle.nRight now I am doing it manually by calculating the average temperature manually and patch it. It is taking so much time.nMy plan is to make a UDF for this work and do the whole simulation automatically. nPlease suggest if you have an any better idea. nFebruary 9, 2021 at 4:54 pmpc_singhSubscriber
The macro is what you put in your photo. C_STORAGE_RYou will write the equation as it is ... c and t are cell and thread at outlet. and delta_time_sampled = Sampling Interval;And by the way, if you are interested only in average temperature, why don't you make mass average and monitor it in the solution. You don't need UDF for thathttps://forum.ansys.com/discussion/comment/106154#Comment_106154Is this enough to calculate the average temperature at the outlet? Or I have to define something else too.nFebruary 9, 2021 at 5:13 pmYasserSelimaSubscriberMake a report definition of the mass averaged temperature at the outlet. And make this value averaged over whatever you want flow time ... Then monitor it and write it in a fileFebruary 9, 2021 at 5:14 pmYasserSelimaSubscriberNo UDF needed .. you can get your values right away in a filenFebruary 9, 2021 at 6:13 pmpc_singhSubscriberI am doing that way right now, Let me explain what I am doing right now so that u can understand it in a better way:non a heated plate, I am flowing cooled water(say T kelvin) for 2 sec so with time, the temperature will decrease and by report definition, It is getting written on every 0.2 sec, in this way I will get 10 data sets and by dividing it by 10, I will get the net average temperature for the simulation of 2 sec. say it is T1 kelvin. Obviously, T1 will be less than T.nin the next cycle, I have to flow the water of T1 kelvin for 2 sec, so for this, I have to patch it. After this cycle of simulation again by doing the same way as explained above, I calculate the average temperature, say it T2 kelvin, which is less than T1.nIn the next cycle, as I need T2 temperature of water to flow so I have to patch it before the next simulation.nIn this way, I have to do it up to 140-150 cycles.nby it will be very hectic if I go for a manual, that's why I want to write a UDF.nnFebruary 9, 2021 at 6:41 pmYasserSelimaSubscriberWhen defining the report definition, make it averaged over flow time 2 seceonds ... and now you will get your value directly on the file.nFebruary 9, 2021 at 7:12 pmDrAmineAnsys EmployeeCreate a report definition per udf for your outlet to get average output parameter. We are working on having that done automatically. But you can write an averaged report file without an UDF. You just provide the average over interval.nViewing 18 reply threads
Ansys Innovation Space
- You must be logged in to reply to this topic.
Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.Trending discussions
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- Difference between K-epsilon and K-omega Turbulence Model
- The solver failed with a non-zero exit code of : 2
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error: Received signal SIGSEGV
Top Rated Tags
© 2023 Copyright ANSYS, Inc. All rights reserved.Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.