July 15, 2021 at 7:28 pmzbharrisSubscriber
I am trying to use the UDRGM UDF in Fluent to implement custom EOS and property formulations, and I would like to define properties in terms of internal energy or enthalpy instead of temperature for a two species mixture. I know the DEFINE_PROPERTY UDFs allow for reference to cell properties and appear to be able to use any value that can be called from a cell in the formulation, but I need specific heat and enthalpy, which must be defined using the DEFINE_SPECIFIC_HEAT function, to include a pressure term, which does not appear possible because DEFINE_SPECIFIC_HEAT only supplies temperature and mixture fraction, and appears to set the values for the whole array of cells at once, meaning that other properties don’t seem to be accessible on a per-cell basis within the DEFINE_SPECIFIC HEAT function.
In the UDRGM, cell indices are unavailable as far as I can tell because only pressure, temperature, and mixture fraction values are passed to each property function.
I would also like to understand the respective internal processes for finding the temperature value after the energy equation is solved when the UDRGM or the DEFINE_PROPERTY functions are used.
Thank you for your help.July 16, 2021 at 6:19 amDrAmineAnsys EmployeeIn UDRGM cell thread access is supported and you are able there to access whatever you want.
July 16, 2021 at 9:28 pmzbharrisSubscriberIn UDRGM, how would I know the index of the cell to reference in the individual functions that define properties? For instance, in
double MIXTURE_density(cxboolean vapor_phase, double Temp, double P, double yi)
where the density is defined in terms of temperature, pressure, and mixture fraction, if I call
within the function, how do I define values for c and t?
Also, when UDRGM is used, how does Fluent solve for the temperature value internally after the energy equation is solved? I would prefer to access the internal energy value from the energy equation directly in the property equations, but I only see enthalpy listed in the cell flow macro options. I'm afraid Fluent will use the enthalpy and density relationships with respect to temperature and pressure, along with the energy value, to find the temperature, then use the same enthalpy relationship to find the value that will be returned when I call C_H(c,t). I would prefer to have the direct energy value from the energy equation because temperature may not have an appreciable gradient with enthalpy or internal energy.
Viewing 2 reply threads
Ansys Innovation Space
- You must be logged in to reply to this topic.
Simulation World 2022
Check out more than 70 different sessions now available on demand. Get inspired as you hear from visionary companies, leading researchers and educators from around the globe on a variety of topics from life-saving improvements in healthcare, to bold new realities of space travel. Take a leap of certainty and check out a session today here.
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
- Heat transfer coefficient
- What are the differences between CFX and Fluent?
- Floating point exception in Fluent
- The solver failed with a non-zero exit code of : 2
- Getting graph and tabular data from result in workbench mechanical
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
Top Rated Tags
© 2022 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.