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

Sin function as a wall profile

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 21, 2013, 07:27
Default Sin function as a wall profile
  #1
New Member
 
Musa
Join Date: May 2009
Location: UK
Posts: 26
Rep Power: 16
mozkan26 is on a distinguished road
Hi all,

I want to create a wall surface as a sine function. Is it a good idea to create it via vertices with NURBS tool or can I use udf for telling Fluent that a straight line is actually a sine function?

Many thanks,

Musa
mozkan26 is offline   Reply With Quote

Old   March 21, 2013, 10:52
Default
  #2
Far
Super Moderator
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,553
Blog Entries: 6
Rep Power: 54
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
Quote:
Originally Posted by mozkan26 View Post
Hi all,

I want to create a wall surface as a sine function. Is it a good idea to create it via vertices with NURBS tool or can I use udf for telling Fluent that a straight line is actually a sine function?

Many thanks,

Musa
What do you think about Fluent
Far is offline   Reply With Quote

Old   March 21, 2013, 11:14
Default
  #3
New Member
 
Musa
Join Date: May 2009
Location: UK
Posts: 26
Rep Power: 16
mozkan26 is on a distinguished road
Quote:
Originally Posted by Far View Post
What do you think about Fluent
Sorry Far, couldn`t really get what you are telling.
mozkan26 is offline   Reply With Quote

Old   March 21, 2013, 11:15
Default
  #4
Far
Super Moderator
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,553
Blog Entries: 6
Rep Power: 54
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
Fluent cannot make changes at geometry level. so you have to make that sine wall in Gambit or any other preprocessor.
Far is offline   Reply With Quote

Old   March 21, 2013, 11:20
Default
  #5
New Member
 
Musa
Join Date: May 2009
Location: UK
Posts: 26
Rep Power: 16
mozkan26 is on a distinguished road
Quote:
Originally Posted by Far View Post
Fluent cannot make changes at geometry level. so you have to make that sine wall in Gambit or any other preprocessor.
Yes I know, you are right, sorry my first post may not really clear. I mean, is it a good approach to create a wall as a sine function with vertices by using NURBS tool in Gambit? Or can I do it with a udf file in Fluent. I am not really good at defining Boundary Profiles with UDF.
mozkan26 is offline   Reply With Quote

Old   March 21, 2013, 11:21
Default
  #6
Far
Super Moderator
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,553
Blog Entries: 6
Rep Power: 54
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
Easy method is gambit and I would always prefer it.
Far is offline   Reply With Quote

Old   March 21, 2013, 11:22
Default
  #7
New Member
 
Musa
Join Date: May 2009
Location: UK
Posts: 26
Rep Power: 16
mozkan26 is on a distinguished road
Quote:
Originally Posted by Far View Post
Easy method is gambit and I would always prefer it.
Thank you very much for your reply Far. I will try it in Gambit and hope I won`t face any meshing problem near surface.
mozkan26 is offline   Reply With Quote

Old   March 27, 2013, 06:40
Default
  #8
Member
 
Johannes Ringborn
Join Date: Nov 2012
Posts: 40
Rep Power: 13
j_h_86 is on a distinguished road
Sorry to bring up this post again.

I am investigating a similar case. I have implemented the sinus-profile into FLUENT successfully.

Now I want to pose a non constant wall temperature at this boundary, using an UDF. I found several example scripts (in this case for a pressure profile), but they always assume one constant coordinate (BC is a straight line). In my case, the y coordinate is a function of the x coordinate. How can I implement this?

Example scipt for a "straight" BC:

#include "udf.h"
DEFINE_PROFILE(pressure_profile,t,i)
{
real x[ND_ND];
/* this will hold the position vector */
real y;
face_t f;
begin_f_loop(f,t)
{
F_CENTROID(x,f,t);
y = x[1];
F_PROFILE(f,t,i) = 1.1e5 - y*y/(.0745*.0745)*0.1e5;
}
end_f_loop(f,t)
}


Thank you in advance!
j_h_86 is offline   Reply With Quote

Old   March 27, 2013, 06:47
Default
  #9
New Member
 
Musa
Join Date: May 2009
Location: UK
Posts: 26
Rep Power: 16
mozkan26 is on a distinguished road
I am not expert in UDFs but just as a suggestion, what will happen if you change y=x[1] line with your y(x) sine function?
mozkan26 is offline   Reply With Quote

Old   March 27, 2013, 07:02
Default
  #10
Member
 
Johannes Ringborn
Join Date: Nov 2012
Posts: 40
Rep Power: 13
j_h_86 is on a distinguished road
Quote:
Originally Posted by mozkan26 View Post
I am not expert in UDFs but just as a suggestion, what will happen if you change y=x[1] line with your y(x) sine function?
Well, this would help.

But what about

real x[ND_ND]; ?

My boundary has no constant x value...
j_h_86 is offline   Reply With Quote

Old   March 27, 2013, 07:08
Default
  #11
New Member
 
Musa
Join Date: May 2009
Location: UK
Posts: 26
Rep Power: 16
mozkan26 is on a distinguished road
Quote:
Originally Posted by j_h_86 View Post
Well, this would help.

But what about

real x[ND_ND]; ?

My boundary has no constant x value...
Oopps!! You are right. Here is where we need an expert. I wonder the answer too, it may help me at some point.
mozkan26 is offline   Reply With Quote

Old   March 27, 2013, 11:55
Default
  #12
Far
Super Moderator
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,553
Blog Entries: 6
Rep Power: 54
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
http://www.youtube.com/watch?v=U_z-Ufn0-kg
Far is offline   Reply With Quote

Old   March 28, 2013, 10:58
Default
  #13
Member
 
Johannes Ringborn
Join Date: Nov 2012
Posts: 40
Rep Power: 13
j_h_86 is on a distinguished road
Quote:
Originally Posted by Far View Post
Dear Far,

could you link me to a tutorial, where a non-straight boundary is modelized in an UDF-file?

I am not into UDF a lot and tutorials seem to be very rare on the internet.

Best regards
j_h_86 is offline   Reply With Quote

Old   March 28, 2013, 11:01
Default
  #14
Far
Super Moderator
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,553
Blog Entries: 6
Rep Power: 54
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
The person who has created this video is also a forum member. You can contact him through youtube for futher details as I am not a UDF guy
Far 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
OpenFOAM wall function treatment kimotbwb OpenFOAM Programming & Development 7 March 6, 2015 12:52
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 06:27


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