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

Problem with energy equation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 30, 2018, 04:53
Default Problem with energy equation
  #1
New Member
 
Join Date: Apr 2018
Posts: 5
Rep Power: 8
L.Gordo is on a distinguished road
Hello everyone,

I'm trying to simulate an air flow through the geometry you can see in attachment. The input face is the square one, that is in red colour, and it has two output faces, you can see one of them in green, the other one is quite similar, although the problem is not symmetrical.

In the output faces, i set output pressure, and for the input i have an UDF, both for velocity and for temperature (you can see them at the end of the mail).

At first, i've simulated without the energy equation, just velocity and once it converge y add the energy equation to the problem and set the temperature input with the UDF. But at that moment residuals become unestable (you have a picture of them attached), i've tried to reduce the URF for energy equation, but the problem remain.

Any suggestion about how can i solve this?


------------------------------------------------------
UDFs:
#include "udf.h"

DEFINE_PROFILE(inlet_y_velocity, thread, position)

/* Definición costantes de la ecuación que define nuestra superficie */

#define H 1.42 /*surface high*/
#define V 0.46209 /*average speed*/
{
real x[ND_ND]; /* this will hold the position vector */
face_t f;

begin_f_loop(f,thread)
{
F_CENTROID(x, f, thread);
F_PROFILE(f, thread, position) = 2 * V * x[2]/H;

}
end_f_loop(f, thread)
}

DEFINE_PROFILE(inlet_temperature, thread, position)

/* Definición costantes de la ecuación que define nuestra superficie */

#define H 1.42 /*surface high*/
#define T 75 /*Variation of temperature*/
{
real x[ND_ND]; /* this will hold the position vector */
face_t f;

begin_f_loop(f,thread)
{
F_CENTROID(x, f, thread);
F_PROFILE(f, thread, position) = 25 + (T * (H-x[2])/H);

}
end_f_loop(f, thread)
}

---------------------------------------------------------------------
Attached Images
File Type: jpg Geometry.JPG (14.5 KB, 3 views)
File Type: png residuales.PNG (13.5 KB, 3 views)
L.Gordo is offline   Reply With Quote

Old   August 30, 2018, 05:48
Default
  #2
Senior Member
 
Join Date: Aug 2011
Posts: 421
Blog Entries: 1
Rep Power: 22
blackmask will become famous soon enough
I suggest that you should convert the temperature from Celsius to Kelvin.
blackmask is offline   Reply With Quote

Old   August 30, 2018, 06:02
Default
  #3
New Member
 
Join Date: Apr 2018
Posts: 5
Rep Power: 8
L.Gordo is on a distinguished road
Quote:
Originally Posted by blackmask View Post
I suggest that you should convert the temperature from Celsius to Kelvin.
Thanks blackmask!

I feel quite fool with this mistake... BTW i fixed it and it is calculating, hope it works now
L.Gordo 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
Energy equation - where is the turbulent kinetic energy? usv001 OpenFOAM Programming & Development 1 January 25, 2022 16:04
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 07:27
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 16:45
Coupled solver energy equation problem lucioantonio FLUENT 0 April 3, 2009 11:21
Problem with Joulebs effect source term in the energy equation galaad OpenFOAM Running, Solving & CFD 0 January 19, 2006 13:01


All times are GMT -4. The time now is 14:08.