-
-
November 28, 2019 at 6:04 am
naibaf
Subscriber
Dear Community,
I have a question related to the UDF Density function for compressible Liquids from the Fluent Customization Manual in Chapter 2.3.27.7. The UDF is as defined as follows:
/********************************************************************
Density and speed of sound UDFs.
*********************************************************************/
#include "udf.h"
#define BMODULUS 2.2e9
#define rho_ref 1000.0
#define p_ref 101325
DEFINE_PROPERTY(superfluid_density, c, t)
{
real rho;
real p, dp;
p = C_P(c,t) + op_pres;
dp = p-p_ref;
rho = rho_ref/(1.0-dp/BMODULUS);
return rho;
}
On top of the page, it is mentioned, "Compressible liquid density UDFs can be used in the pressure-based solver and for single phase, multiphase mixture and cavitation models, only. See the example below for details."
Now my question. Could anyone explain why it cannot be used with the VOF model regarding two-phase flow? I cannot find any explanation for this. I am wondering since one define the UDF for primary phase and for example a constant density for the second phase, the UDF is calculating density for the primary phase. The VOF model than averages the density for the mixture based on volume fraction coefficients. So I don't understand why the function should not work with the VOF model. Maybe my understanding of the VOF model is not correct?
Thank you for your time and your help!
-
November 28, 2019 at 4:41 pm
DrAmine
Ansys EmployeeYou can use it with all multiphase models. Only thing is that if there is strong pressure dependency better to rely on udrgm.
Perhaps you just require to rely on the already available trait equation for compressible liquids. -
November 29, 2019 at 5:39 am
naibaf
SubscriberThank you very much for your answer. This helps.
Regards
Fabian
-
November 29, 2019 at 2:02 pm
DrAmine
Ansys EmployeeWelcome!
-
- 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
- Difference between K-epsilon and K-omega Turbulence Model
- The solver failed with a non-zero exit code of : 2
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error: Received signal SIGSEGV
-
5370
-
3363
-
2471
-
1310
-
1022
© 2023 Copyright ANSYS, Inc. All rights reserved.