-
-
June 26, 2020 at 8:24 am
Kazem
SubscriberHello everybody,
I want to implement an equation (governing equation of flow in porous media) which is very similar to Navier-Stokes equation, in ansys fluent. I have attached a photo of the equation. As can be seen from the photo i need to manipulate the convective term. In fact the convective term is multiplied by a constant (1/phi^2 phi is porosity). I have developed UDF and fortunately it works fine. It would be highly appreciated if anyone let me know whether my UDF accurately manipulate convective terms or not? or is there any other way to change convective term. Below is the UDF i have developed:
DEFINE_ADJUST(set_convective_flux, d)
{
real porosity = 0.95;
Thread *t;
face_t f;
thread_loop_f(t,d)
{
begin_f_loop(f,t)
{
F_FLUX(f,t) = F_FLUX(f,t)/(porosity*porosity);
}
end_f_loop(t, d)
}
}
-
June 26, 2020 at 11:38 am
DrAmine
Ansys EmployeeWhat do you mean it works fine? Is using the physical velocity formulation not enough for you?
-
June 26, 2020 at 1:29 pm
Kazem
SubscriberThank you very much for your reply. The UDF compiled successfully and i ran the simulation without any error. What i am not sure about is the way i have implemented the equation. During solving momentum equations convective fluxes should be multiplied by a constant (1/porosity^2). Does DEFINE_ADJUST Macro do this? .I think it is not possible to access velocity and pressure when solving momentum equations.
-
June 26, 2020 at 1:37 pm
DrAmine
Ansys EmployeeAgain: is the physical velocity not enough?
-
June 26, 2020 at 3:38 pm
Kazem
SubscriberUnfortunately now i do not have any validation cases to realize whether the physical velocities are valid. I just need to know if i use the appropriate macro.
-
- 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.

Ansys Blog
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.
- 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
-
3694
-
2564
-
1765
-
1236
-
592
© 2023 Copyright ANSYS, Inc. All rights reserved.