CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Viscous dissipation UDF for multiphase DDPM (Divergence problem)

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 30, 2016, 12:23
Default Viscous dissipation UDF for multiphase DDPM (Divergence problem)
  #1
Member
 
Bhargav Bharathan
Join Date: Jun 2015
Location: Montreal, Canada
Posts: 71
Rep Power: 7
bhargavbharathan is on a distinguished road
Hi,

I have a query with hooking UDFs and Iím hoping to get it cleared with your assistance. My case is a long pipe with Eulerian Multiphase and DDPM.

1. Energy equation = ON.

2. Phase 1 = Non-newtonian laminar fluid with Herschel Bulkey formulation and temperature dependent properties. (Transient)

3. Phase 2 = Granular (frictional pressure is based-KTGF) with surface injection from inlet and Rosin-Rammler distribution. (Unsteady particle tracking)

4. My goal = To observe the temperature rise from inlet to outlet due to viscous dissipation during flow due to both primary and granular phases.

5. I have written three UDFs for this purpose. One each to obtain the viscous dissipation function (phi) from the velocities and velocity derivatives for each phase and stored them in two UDMs. I used DEFINE_EXECUTE_AT_END for this purpose.

6. My third UDF is a DEFINE_SOURCE UDF which adds the data from the two UDMs and inputs in the energy source term.

7. My problem: The two DEFINE_EXECUTE_AT_END UDFs are hooked at Define -> User - Define -> Function Hooks. The source UDF can only be hooked in Cell Zone Conditions if the Phase is set to Phase-1 and for both Mixture and Phase-2 the source term is frozen. I first converge my flow with the energy equation OFF in Solution Controls and no injection. I then switch ON the injection and run for a few time steps and finally switch ON my energy equation. This causes divergence in AMG solver : Pressure correction.

8. My query: Is it correct to hook the UDF in Phase-1? Is there another way the UDF needs to be hooked for the secondary phase? Is there anything else Iím missing.

*I ran two separate models prior to this (a) for predicting erosion in Eulerian Multiphase and DDPM and (b) without multiphase and just the non-Newtonian laminar model for predicting temperature rise due to viscous dissipation. Both of them work separately. Now my aim is to combine these two models and predict the effect of particle-particle interaction.

I have attached my UDFs below.

exec1.c

exec2.c

pp7.c

-BB
bhargavbharathan is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PEMFC model with FLUENT brahimchoice FLUENT 22 April 19, 2020 15:44
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 06:05
Mesh UDF problem kornetka Fluent UDF and Scheme Programming 4 July 25, 2013 06:54
Divergence error in AMG solver in axisymmetric problem. gan1990 FLUENT 3 June 23, 2013 02:24
UDF using problem, error happens-heip!! Michael FLUENT 1 December 9, 2008 07:51


All times are GMT -4. The time now is 06:05.