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

Viscous dissipation UDF for multiphase DDPM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 30, 2016, 13:17
Default Viscous dissipation UDF for multiphase DDPM
  #1
Member
 
Bhargav Bharathan
Join Date: Jun 2015
Location: Montreal, Canada
Posts: 71
Rep Power: 11
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 for predicting erosion in Eulerian Multiphase and DDPM and 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


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
VISCOUS DISSIPATION ROBERT Main CFD Forum 30 May 29, 2019 05:21
Multiply viscous dissipation with some constant in energy equation in fluent. alexskerhut FLUENT 2 June 8, 2016 02:56
Viscous Dissipation or Similar mikeclegg Main CFD Forum 1 November 25, 2014 06:49
UDF for particle injection in ANSYS FLUENT DDPM and DEM models Musa Fluent UDF and Scheme Programming 1 October 6, 2013 14:01
Viscous heat dissipation muhammad asif Main CFD Forum 0 July 25, 1998 05:00


All times are GMT -4. The time now is 13:48.