-
-
March 11, 2024 at 7:33 amferoz.mulani85Subscriber
I was trying to simulate melting of PCM with some nanoparticles. with eulerian approach, I also developed a udf code to take care of melting of the PCM. as the solidification/melting option is not compatible with eulerian approach.Â
In the code there are some terms like "C_PHASE_INT" . when i tried to interpret the code, fluent is showing error as undeclared variable.
Fluent does not have a built-in macro for the phase indicator ?
is it true that using Fluent with the Eulerian model and the enthalpy-porosity approach, the phase indicator may not be directly accessible in a UDF. ?
-
March 11, 2024 at 10:16 amRobForum Moderator
Not all macros are available in the interpreter, use the built in compiler and see what errors you get. Also, Eulerian has distinct phases, so we'd call the phase domain thread which is known from the set up.Â
-
March 18, 2024 at 6:06 amferoz.mulani85Subscriber
which distinct phases ? , how to call the phase domain thread.Â
I tried using "use built-in compiler " option in the compiled udfs option. but then it is showing an error message: "The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform. "
-
March 18, 2024 at 10:07 amRobForum Moderator
The error suggests the compilation stage failed, so look further up the text to see if there were any more errors, they should be in the transcript .trn file too.Â
Phase domains are how we interact with the mixture, primary and (however many) secondary phases there are in the model. There are a few examples here, https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v241/en/flu_udf/flu_udf_MultiphaseDEFINE.html I'd start with the phase interaction/transfer options.Â
-
March 28, 2024 at 4:01 pmferoz.mulani85Subscriber
Do you have any tutorial regarding the same. Because I searched in the fluent documentation
-
-
March 19, 2024 at 11:14 amferoz.mulani85Subscriber
the link you have shared is of tutorial ?
-
March 19, 2024 at 11:39 amRobForum Moderator
No, that the documentation for multiphase UDF macros.Â
-
April 2, 2024 at 12:45 pmRobForum Moderator
For UDFs we only have what's in the documentation. You can try searching for the macro in AIS/Knowledge or in the headers for information, but no tutorials.Â
-
- The topic ‘user defined function error’ is closed to new replies.
- How do I get my hands on Ansys Rocky DEM
- Non-Intersected faces found for matching interface periodic-walls
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Facing trouble regarding setting up boundary conditions for SOEC Modeling
- Script Error
- convergence issue for transonic flow
- RIBBON WINDOW DISAPPEARED
- Running ANSYS Fluent on a HPC Cluster
-
1762
-
635
-
599
-
591
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.