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

UDF for heat of hydration

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2020, 19:11
Smile UDF for heat of hydration
  #1
New Member
 
Rui
Join Date: May 2020
Posts: 3
Rep Power: 6
Ruiii is on a distinguished road
Hey all, I need some help on writing UDF for heat of hydration.
I wanna to inject a fluid A into another fulid B.
I want to set a increasing temperature equation based on time to fluid A.
The equation
T=273.15K + t/2
The unit of time is seconds and temperature is K.
I am simulating an unsteady state by the way.
I didn't find any udf about the fluid heat of hydration.
I'm a complete noob so I could use some help. Thanks!
Ruiii is offline   Reply With Quote

Old   May 4, 2020, 16:28
Default Temperature and Heat of Hydration
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
As far as equation for the temperature is concerned, you do not need a UDF. You can use a transient profile. Refer

UDF for a simple sine function on base of droplet (moving wall)

Do note that the unit is s for time and K for temperature.

As far as heat of hydration is concerned, it is actually a material property. However, Fluent does not have any model for it. So, all you need to do is apply an energy source in the cell zone. Unit for energy source is W/m^3.s. For steady-state, unit is W/m^3.s
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   May 4, 2020, 18:41
Default
  #3
New Member
 
Rui
Join Date: May 2020
Posts: 3
Rep Power: 6
Ruiii is on a distinguished road
Quote:
Originally Posted by vinerm View Post
As far as equation for the temperature is concerned, you do not need a UDF. You can use a transient profile. Refer

UDF for a simple sine function on base of droplet (moving wall)

Do note that the unit is s for time and K for temperature.

As far as heat of hydration is concerned, it is actually a material property. However, Fluent does not have any model for it. So, all you need to do is apply an energy source in the cell zone. Unit for energy source is W/m^3.s. For steady-state, unit is W/m^3.s
Thank you for the reply!
But could you tell me how to use thetransient profile?
I have read the url you attached,but i am still confused.
As shown in the figure i upload , the red fluid is injected to the blue one.
You adviced to set a energy source in the fluid cell zone, wether the energy source will heat the bule fuild or not?
Or only when the red fluid flow through the cell zone , it generates heat?
Wether to use the source terms item in the cell zone condition?
Thank you for your help again!
Attached Images
File Type: bmp displace.bmp (189.3 KB, 3 views)
Ruiii is offline   Reply With Quote

Old   May 5, 2020, 05:06
Default Multiphase Model
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
The profile is only for temperature; you can calculate temperature values for up to, say 50 or 100 seconds, and then put time and temperature values in profile file, just like vel in the profile.

For source terms, the effect is dependent upon the model being used. It appears you are using VOF. In that case, the energy source term affects all phases (all fluids). Source terms are applied always within cell zone conditions and are applied to cells not to fluids. Whichever fluid lies in that cell will receive the source. Heat of hydration is actually a reaction. But if you are not interested in modeling reaction and only in heat, then you have to use a UDF or expression to define the source term since a non-zero source value should exist only in the cells where fluids mix.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   May 11, 2020, 20:34
Default
  #5
New Member
 
Rui
Join Date: May 2020
Posts: 3
Rep Power: 6
Ruiii is on a distinguished road
Thank you for the reply!
I will spend some time on it.

Best Regards!
Ruiii is offline   Reply With Quote

Reply

Tags
udf; heat of hydration.


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
udf for one dimensional linear motion based on force maccheese Fluent UDF and Scheme Programming 2 September 1, 2019 02:18
Save output of udf in another udf! JuanJoMex FLUENT 0 February 8, 2018 12:43
UDF Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 00:53
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


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