-
-
March 11, 2024 at 7:33 am
feroz.mulani85
SubscriberI 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 am
Rob
Forum ModeratorNot 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 am
feroz.mulani85
Subscriberwhich 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 am
Rob
Forum ModeratorThe 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 pm
feroz.mulani85
SubscriberDo you have any tutorial regarding the same. Because I searched in the fluent documentation
-
-
March 19, 2024 at 11:14 am
feroz.mulani85
Subscriberthe link you have shared is of tutorial ?
-
March 19, 2024 at 11:39 am
Rob
Forum ModeratorNo, that the documentation for multiphase UDF macros.Â
-
April 2, 2024 at 12:45 pm
Rob
Forum ModeratorFor 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
- Script Error
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- convergence issue for transonic flow
- Facing trouble regarding setting up boundary conditions for SOEC Modeling
- Point exception in erosion calculation
- Errors with multi-connected bodies using AQWA
- Script Error Ansys
-
2432
-
930
-
599
-
591
-
569
© 2025 Copyright ANSYS, Inc. All rights reserved.