September 28, 2023 at 2:00 pmMingli YanSubscriber
I’m using the MHD module to simulate the arc behaviour by ANSYS Fluent. Now, I want to define the electric conductivity of a material, which is a variable dependent on the electrical potential and current density, and I attempt to use UDF and expression to define the conductivity. However, the named expression function seems different to the expression of the material property dialogue, as the expression provided in the material property dialogue does not support such lots of variables in the named expression function. Additionally, I don’t know the location of the UDMs which reserve the current density and electrical potential, so I neither can’t use UDF to define the conductivity.
Could you please let me know the method to check the location of the UDMs used by MHD module so I can call them in the UDF to define the conductivity via the macro like C_UDM? Or if the named expression can be used to define the property, it should be easier.
October 3, 2023 at 2:29 pmMurari IyengarAnsys Employee
Hi, you can refer 2.3. Model-Specific DEFINE Macros (ansys.com) for UDF macros. You can also refere Appendix B. DEFINE Macro Definitions (ansys.com) for additional macros. You can create it using Named Expressions also. To do this, you can create multiple NE, one for every variable and a last one for conductivity which is dependant on these variables.
October 3, 2023 at 4:43 pmMingli YanSubscriber
Thanks a lot for your reply!
However, there is still a problem about how to use NE to define the conductivity. The dialogues of NE and the expression called from property dialogue are shown below. Maybe you can see that the variables available in NE are different to the expression used to define the property. Once I enter some variables in NE that are not supported by the expression in the property dialogue, the NE won’t show in the expression in the property dialogue. Is that because the units of the variables are not defined? If that is true, could you please give me some instructions on how to define the unit of these variables to make them available to define the properties?
- 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.
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Difference between K-epsilon and K-omega Turbulence Model
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- Suppress Fluent to open with GUI while performing in journal file
- error: Received signal SIGSEGV
© 2023 Copyright ANSYS, Inc. All rights reserved.