CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ANSYS Meshing & Geometry (https://www.cfd-online.com/Forums/ansys-meshing/)
-   -   boundary layer development in gambit (https://www.cfd-online.com/Forums/ansys-meshing/123702-boundary-layer-development-gambit.html)

maaz September 19, 2013 04:10

boundary layer development in gambit
 
i am working on wind effects on high rise building..i have to develop boundary layer along the wall on computational domain and building as well...gambit is showing message..initialization failed...with error code 1...i am unable to resolve this..kindly help me...

-mAx- September 19, 2013 05:16

more info please, with pictures

maaz September 20, 2013 01:25

kindly help me out...
 
3 Attachment(s)
hi max..
i have to develop boundary layer on the ground and building surface..i am attaching pics here,, kindly look into it.. and help me ..out..thanx
Attachment 25493

Attachment 25494

Attachment 25495

-mAx- September 20, 2013 01:33

then pick surfaces of ground and building...
take care of first cell's height.
If you give an exotic value, then the BL propagation may fail
http://aerojet.engr.ucdavis.edu/gamb..._blayer_create

maaz September 21, 2013 03:19

max thanx for your response...i have changed the geometry of computational domain to resolve the error..

maaz September 23, 2013 03:33

max.. can you tell me about the aspect ratio for boundary layer ....

-mAx- September 23, 2013 03:49

http://aerojet.engr.ucdavis.edu/gamb...spec_algorithm
with aspect ratio algorithm, you don't have fixed first cell' s height.

maaz September 23, 2013 23:32

no dear the thing i wanna ask is that when we examine the mesh and in the option of quality type we click aspect ratio , then what is the range of this value that is best suited for a mesh.

-mAx- September 24, 2013 01:34

from Help: "However, a general rule of thumb is to avoid aspect ratios in excess of 5:1. " --> http://aerojet.engr.ucdavis.edu/flue...ug/node155.htm

I would simply load the mesh in the solver and run a check mesh

maaz September 27, 2013 02:51

problem in udf for velocity proflie
 
/************************************************** *********************

vprofile.c UDF for specifying steady-state velocity profile boundary condition

************************************************** **********************/ #include "udf.h"

DEFINE_PROFILE(inlet_x_velocity, thread, position)
{
real x[ND_ND]; /* this will hold the position vector */
real y; face_t f;

begin_f_loop(f, thread) { F_CENTROID(x,f,thread); y = x[1];
(
F_PROFILE(f, thread, position) = (10 + y/12.5)*cos(5.0/180.*3.1415927); }
end_f_loop(f, thread) }

DEFINE_PROFILE(inlet_y_velocity, thread, position)
{
/* insert your own code here*/
}




max....in this udf while defining
F_PROFILE(f, thread, position) = (10 + y/12.5)*cos(5.0/180.*3.1415927);

can we use log formula also, if yes then please explain it for me.....

ghost82 September 27, 2013 04:05

1 Attachment(s)
Quote:

Originally Posted by maaz (Post 453833)
/************************************************** *********************

vprofile.c UDF for specifying steady-state velocity profile boundary condition

************************************************** **********************/ #include "udf.h"

DEFINE_PROFILE(inlet_x_velocity, thread, position)
{
real x[ND_ND]; /* this will hold the position vector */
real y; face_t f;

begin_f_loop(f, thread) { F_CENTROID(x,f,thread); y = x[1];
(
F_PROFILE(f, thread, position) = (10 + y/12.5)*cos(5.0/180.*3.1415927); }
end_f_loop(f, thread) }

DEFINE_PROFILE(inlet_y_velocity, thread, position)
{
/* insert your own code here*/
}




max....in this udf while defining
F_PROFILE(f, thread, position) = (10 + y/12.5)*cos(5.0/180.*3.1415927);

can we use log formula also, if yes then please explain it for me.....

Hi maaz,
see attached picture from udf manual.

Daniele


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