-
-
November 26, 2022 at 6:56 am
pavankonchada123
SubscriberI am trying to use below udf for surfacearea_volume in ansys fluent for porous media in reactions but Iam not able to see any udf in drop down
DEFINE_PROFILE(Surface_area_Volume_ratio,t,i)
{
#if !RP_HOST
cell_t c;
real x[ND_ND];
real void_fraction,solid_volume;
begin_c_loop(c,t)
{
if(C_DPMS_CONCENTRATION(c,t)>0)
{
solid_volume = C_DPMS_CONCENTRATION(c,t)/2300;
void_fraction = (1-solid_volume)/solid_volume;
F_PROFILE(c,t,i) = M_PI*pow((6*C_VOLUME(c,t)*void_fraction/M_PI),0.66666)/C_VOLUME(c,t);
}
else
F_PROFILE(c,t,i) =0;
}
end_c_loop(c,t)
#endif
} -
November 26, 2022 at 6:58 am
pavankonchada123
SubscriberAnd also tried to use expression but it is saying expression is not single valued
void_fraction1 :
(1 - (DPMConcentration*1[m^3/kg] / 2300)) / (DPMConcentration*1[m^3/kg] / 2300)
surface_volume:
3.14*1[m^-1] / (CellVolume*1[m^-3]) * (6 * CellVolume*1[m^-3]*void_fraction1 / 3.14) ^ 0.666
-
November 28, 2022 at 7:14 am
DrAmine
Ansys EmployeeWhat do you want to modifiy? Probably it requires a single valued expression and not a field.
-
November 28, 2022 at 8:23 am
pavankonchada123
SubscriberSurface to volume ratio for reaction in porous media.
Can you let me know which macro should I use define profile is not working
-
November 28, 2022 at 8:32 am
DrAmine
Ansys EmployeeThat input cannot be provided via a profile it requires a single valued input.
-
November 28, 2022 at 8:37 am
pavankonchada123
SubscriberBut my value depends on void fraction on each cell of domain. Is there any way I can define different values on different cells with voidfraction as variable
-
November 28, 2022 at 10:53 am
DrAmine
Ansys EmployeeBuilt-in capability: I need to say no. You require more efforts to do that. For that reason, I think we should enhance this and allows the value to be a field input. I will discuss this with my colleagues.
-
- 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
-
2688
-
2138
-
1355
-
1140
-
462
© 2023 Copyright ANSYS, Inc. All rights reserved.