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

Implement advective term in a UDS scalar

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 2, 2018, 07:37
Default Implement advective term in a UDS scalar
  #1
New Member
 
Stavros Rafail Fostiropoulos
Join Date: Mar 2018
Posts: 1
Rep Power: 0
Stavros_pulsewidth is on a distinguished road
Hello, I am trying to set up a uds in fluent in order to customize the energy equation. For simplicity, I do my tests in a singlephase flow, which is heat transfer inside a channel. The scalar quantity chosen is temperature. After initialising the temperature profile with a single value 373K throught my domain, I impose a BC at the inlet with higher temperature than 373K and a velocity value. I cancel the diffusion term, in order to test only the transient and advective term. In my test I activate both my Uds and Fluent Energy equation in order to compare the outcome of the simulation. Using the default option of Fluent for the advective term (mass flow rate in Define Scalar) I obtain exactly the same results in my Uds scalar profile and temperature profile computed by Fluent energy equation. However, when I hook a Udf (DEFINE_UDS_FLUX) where I return the F_FLUX, results are slightly different. I expected that the results should be exactly the same. Could you give me any insight into that issue? Thank you very much!
Stavros_pulsewidth is offline   Reply With Quote

Reply

Tags
define_uds_flux, f_flux


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
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 05:18
[Solved] Passive Scalar Source Term "Bug" taalf OpenFOAM Running, Solving & CFD 1 July 13, 2016 09:29
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 16:45
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 14, 2000 00:03
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 04:43


All times are GMT -4. The time now is 03:49.