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

Entries for January 16, 2013

Register Blogs Members List Search Today's Posts Mark Forums Read

Old

Convergence

Posted January 16, 2013 at 15:45 by arashsk

Quote:
Originally Posted by Centurion2011 View Post
I see all kind of mistakes on these forums when dealing with convergence, so I will give brief review of methods...

At convergence, the following should be satisfied:
  • All discrete conservation equations (momentum, energy, etc.) are obeyed in all cells to a specified tolerance OR the solution no longer changes with subsequent iterations.
  • Overall mass, momentum, energy, and scalar balances are achieved.
  • Monitoring convergence using residual history:
  • Generally, a decrease
...
New Member
Posted in Uncategorized
Views 660 Comments 0 arashsk is offline Edit Tags
Old

Transient Temperature Profile

Posted January 16, 2013 at 10:04 by diamondx

UDF for a transient temperature profile


Quote:
Originally Posted by alven299 View Post
Have figured it out. Here is the script, hope it might be of help to others:

#include "udf.h"

DEFINE_PROFILE(inlet_temperature,t,i)
{
real x[ND_ND];
real time;
face_t f;

begin_f_loop(f,t)
{
F_CENTROID(x,f,t);
time=CURRENT_TIME;
if(time<40)
F_PROFILE(f,t,i)=300;

else

F_PROFILE(f,t,i)=340;
...
diamondx's Avatar
Super Moderator
Posted in Uncategorized
Views 638 Comments 0 diamondx is online now Edit Tags

All times are GMT -4. The time now is 22:36.