February 24, 2022 at 5:07 amhbilal1076Subscriber
I am working on 2D flame combustor, In Ansys fluent, when simulation is executed, how temperature and mole fraction of radiating media (H2O and CO2 ) of each grid can be determined using macros?
Can any one help me to write the macro for temperature and mole fraction of radiating media of each grid?February 24, 2022 at 9:59 amRobForum ModeratorYou might want to start with the UDF manual, you'll find all sorts of useful examples in there, several of which will help you. However, it's not clear what you're actually trying to do: radiation isn't just a function of temperature and mole fraction.
February 24, 2022 at 3:53 pmDrAmineAnsys EmployeeTemperature is straightforward mole fraction will require small loop but in the manual there is an example how to get it. ƒñö
March 2, 2022 at 10:32 amhbilal1076SubscriberDear Prof. Rob and Dr Amine Thank you very much for your kind reply.
I have a UDF manual, I just understand that the macro C_T return the temperature of certain grid and begin_c_loop and end_c_loop are the macro loop each grid in computational domain, similarly, I have to find the mole fraction of each grid.
For instance, in the attached figure, If the Temperature of a certain grid is 1500 K, and mole fraction of CO2 and H2O are 0.1 and 0.2 respectively. It can be seen that, the PMAC of CO2 and H2O are 0.08 and 0.02, so the absorption coefficient of this grid is 0.08*0.1+0.02*0.2 and then I have to loop the grid, after all, there are thousand of grids in the computational domain.
I hope you understand on what I am trying to find out and help me to write a macro for temperature and mole fraction fraction of CO2 and H2O so that I am able to execute a calculation using the coupled simulation.
Thank you very much for your precious time and assistance.
March 2, 2022 at 11:58 amRobForum ModeratorDon't forget to account for the cell size: absorption has a unit of per length. Otherwise that sounds about right, and you'll want to dump that value to a UDM for post processing and potentially for whatever you're going to do with that data. We can give vague guidance on UDFs, but otherwise can only point you at the documentation.
March 2, 2022 at 1:39 pmDrAmineAnsys EmployeeNo I do not understand what you want to do, sorry. If you are referring to absorption: you can rely on built-in models or write a UDF for that.
March 4, 2022 at 5:31 amhbilal1076SubscriberDear DrAmine Yes, I am looking to write a model in order to find the absorption using UDF, can you help me to write one?
March 4, 2022 at 10:28 amDrAmineAnsys EmployeeI am sorry my help will be limited here in just providing guidance to which supported macros you can use.
Viewing 7 reply threads
Ansys Innovation Space
- The topic ‘macro for temperature and mole fraction’ is closed to new replies.
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
- legend min and max
- Ensight hot iron palette from an image
- Streamlines in EnSight using MRI data
- Import MRI data into Ensight
- FLUENT APPLICATIION ERROR
- Total Surface Heat Flux Calculation in Fluent
- Drop Test of a Water-Filled Tube
- Difference between “total pressure” and “absolute pressure”?
- Minimum Orthogonal Quality Less than 0.01 For Transonic Airfoil Flow Analysis
- obtaining pressure distribution by making points in ansys
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.