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

diamondx

Register Blogs Community New Posts Updated Threads Search

Old

useful udf ! thanks to macfly

Posted October 21, 2014 at 18:33 by diamondx

#include "udf.h"
real T_mean; /* defined outside because will be used in multiple DEFINE macros */

DEFINE_ADJUST(adjust, domain, t)
{
real T_tot;
real u;
real counter = 0;

face_t f;
int ID = 20; /* outlet ID displayed in Fluent boundary conditions panel */
Thread *thread;
thread = Lookup_Thread(domain, ID);
begin_f_loop(f, thread)
{
u = F_U(f, thread); /* x velocity...
diamondx's Avatar
Super Moderator
Posted in Uncategorized
Views 3040 Comments 1 diamondx is offline Edit Tags
Old

Enhanced Wall Treatment

Posted April 11, 2014 at 17:53 by diamondx

Useful near wall treatments informations:
Quote:
Originally Posted by Far View Post
This is completely wrong

If this is true then they would have used the simple else-if command which was used in the previous version of SA and K-Omega model. Still you can observe in the theory guide of Fluent (I am talking about SA model) they are using the integration to wall approach for the Y+< 2 and wall function approach for the Y+>30 and strongly recommend to make the meshes either with Y+< 2 or Y+> 30 so that they
...
diamondx's Avatar
Super Moderator
Posted in Uncategorized
Views 3170 Comments 1 diamondx is offline Edit Tags
Old

Help using FLUENT in batch mode: script in the Journal file

Posted April 29, 2013 at 12:11 by diamondx

danobis, here is a working example of a journal files (.jou), when you see a ";", it means i'm asking fluent to skip that command:

/file/read-case-data /home/maghazlani/Analysis/intake_test_3-1-23000.cas
;/define/operating-conditions/operating-pressure 0
;/define/models/solver/density-based yes
;/define/models/energy yes
;/define/models/viscous/kw yes
;/define/boundary-conditions/modify-zones/zone-type 11 pressure-inlet
;/define/materials/change-create...
diamondx's Avatar
Super Moderator
Posted in Uncategorized
Views 4795 Comments 0 diamondx is offline Edit Tags
Old

TUI commands for running a Transient simulation in ANSYS FLUENT

Posted February 18, 2013 at 11:22 by diamondx

The TUI command “ solve/iterate 100” just iterates 100 more iterations. This is used for running steady simulations.

Use the following commands for running a transient simulation:

solve/set/time-step 1e-2 ( for setting the time step size)

solve/dual-time-iterate 100 40 ( 100 is the number of time steps and 40 is the iterations per time steps)
diamondx's Avatar
Super Moderator
Posted in Uncategorized
Views 21589 Comments 6 diamondx is offline Edit Tags
Old

Hexa dominant meshing

Posted February 11, 2013 at 20:36 by diamondx

Quote:
Originally Posted by PSYMN View Post
Hex Dominant doesn't really play well with the other methods. You will also have a hard time when you try to merge it with the Hexa method, so you will need to do things in the right order...

Hex Dominant is also really more of an FEA method. It starts from the quad surface mesh and grows into the middle. If you don't have a quad surface mesh, it surface meshes everything first and then starts. It doesn't do the material point flood fill that the octree tetra mesher does. It
...
diamondx's Avatar
Super Moderator
Posted in Uncategorized
Views 2188 Comments 0 diamondx is offline Edit Tags

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