June 28, 2019 at 2:30 amWeiqiang LiuSubscriber
I have many source term macros, profile macros and property macros in one source code. I tried to debug my code in VS 2013. In order to know the sequence of fluent calling macros better, I arranged my macros according to the picture below:
during the process of debugging, I found fluent first calls DEFINE_PROFILE macros and then calls mass source macros. The next called macro should be species source term based on above picture I think. However, fluent just stopped and got stuck after mass source term was called. I surely have hooked my species source macros. I can not figure out why this happen. Can anybody give me some hints or is my thought about sequence of calling right?
June 28, 2019 at 6:41 amDrAmineAnsys Employee
Maybe wrong UDF? CAn you use debug messages in your macros: that helps a lot.
June 28, 2019 at 2:08 pmWeiqiang LiuSubscriber
Yes, like you said, I put a Message0 line in both mass source macro and species source macro. I found only message in mass source macro was displayed in fluent console. obviously specie source macro was not called by fluent. I don't know why.
July 1, 2019 at 1:52 amWeiqiang LiuSubscriber
I found the reason. It's just because fluent won't call source macro during initialization. Fluent will only call source macros during calculating.
July 1, 2019 at 5:00 amDrAmineAnsys EmployeeYes which is clear from the calling sequence. Glad to see u progressing.
- 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.
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
© 2023 Copyright ANSYS, Inc. All rights reserved.