April 14, 2022 at 12:43 pmBibillSubscriber
I am writing some UDFs to solve a UDS equation in Fluent. For that, I defined its Flux, Diffusivity and Source term.
I have checked separately the three UDFs and I have an issue regarding the DEFINE_UDS_FLUX one.
My goal is to modify the default convective flux (rho*[u,v,w]) by a convective flux built with C_UDMIs i.e. rho*[UDMI(0),UDMI(1),UDMI(2)]
Here is an attempt:
real NV_VEC(psi), NV_VEC(A);
NV_D(psi, =, F_UDMI(f,t,0), F_UDMI(f,t,1), F_UDMI(f,t,2));
NV_S(psi, *=, F_R(f,t));
However, I only have cell values (C_UDMI) instead of Face UDMI (F_UDMI), it therefore yields to some issues. Does anyone know how to "transfer" my cell values into F_UDMI? Or does anyone know how to modify the convective flux with C_UDMI?
Thanks in advance!April 15, 2022 at 6:36 pmKarthik RAdministratorHello:
You can run a "begin_c_loop ...... end_c_loop", identify the cells next to the face thread you are looking for, and then copy the cell UDMI values into the face UDMIs.
Viewing 1 reply thread
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
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
© 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.