|
[Sponsors] |
August 30, 2018, 04:53 |
Problem with energy equation
|
#1 |
New Member
Join Date: Apr 2018
Posts: 5
Rep Power: 8 |
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) } --------------------------------------------------------------------- |
|
August 30, 2018, 06:02 |
|
#3 |
New Member
Join Date: Apr 2018
Posts: 5
Rep Power: 8 |
||
|
|
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 |