-
-
February 9, 2021 at 8:00 ampc_singhSubscriberFebruary 9, 2021 at 3:14 pmRobForum ModeratorI 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 pmAmine Ben Hadj AliAnsys 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 pmAmine Ben Hadj AliAnsys EmployeeWhat do you want?nFebruary 9, 2021 at 4:24 pmAmine Ben Hadj AliAnsys 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.nTo 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_singhSubscriberThe 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 that/forum/discussion/comment/106154#Comment_106154
Is 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 pmAmine Ben Hadj AliAnsys 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- The topic ‘Which type of macro is required for data sampling UDF?’ is closed to new replies.
Ansys Innovation SpaceTrending discussions- Non-Intersected faces found for matching interface periodic-walls
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Script error Code: 800a000d
- Cyclone (Stairmand) simulation using RSM
- Fluent fails with Intel MPI protocol on 2 nodes
- error udf
- Diesel with Ammonia/Hydrogen blend combustion
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Script Error
Top Contributors-
1241
-
543
-
523
-
225
-
209
Top Rated Tags© 2024 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.
-
The Ansys Learning Forum is a public forum. You are prohibited from providing (i) information that is confidential to You, your employer, or any third party, (ii) Personal Data or individually identifiable health information, (iii) any information that is U.S. Government Classified, Controlled Unclassified Information, International Traffic in Arms Regulators (ITAR) or Export Administration Regulators (EAR) controlled or otherwise have been determined by the United States Government or by a foreign government to require protection against unauthorized disclosure for reasons of national security, or (iv) topics or information restricted by the People's Republic of China data protection and privacy laws.