|
[Sponsors] |
March 21, 2013, 07:27 |
Sin function as a wall profile
|
#1 |
New Member
Musa
Join Date: May 2009
Location: UK
Posts: 26
Rep Power: 16 |
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 |
|
March 21, 2013, 10:52 |
|
#2 |
Super Moderator
|
||
March 21, 2013, 11:14 |
|
#3 |
New Member
Musa
Join Date: May 2009
Location: UK
Posts: 26
Rep Power: 16 |
||
March 21, 2013, 11:20 |
|
#5 |
New Member
Musa
Join Date: May 2009
Location: UK
Posts: 26
Rep Power: 16 |
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.
|
|
March 21, 2013, 11:22 |
|
#7 |
New Member
Musa
Join Date: May 2009
Location: UK
Posts: 26
Rep Power: 16 |
||
March 27, 2013, 06:40 |
|
#8 |
Member
Johannes Ringborn
Join Date: Nov 2012
Posts: 40
Rep Power: 13 |
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! |
|
March 27, 2013, 06:47 |
|
#9 |
New Member
Musa
Join Date: May 2009
Location: UK
Posts: 26
Rep Power: 16 |
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?
|
|
March 27, 2013, 07:02 |
|
#10 |
Member
Johannes Ringborn
Join Date: Nov 2012
Posts: 40
Rep Power: 13 |
||
March 27, 2013, 07:08 |
|
#11 |
New Member
Musa
Join Date: May 2009
Location: UK
Posts: 26
Rep Power: 16 |
||
March 27, 2013, 11:55 |
|
#12 |
Super Moderator
|
||
March 28, 2013, 10:58 |
|
#13 | |
Member
Johannes Ringborn
Join Date: Nov 2012
Posts: 40
Rep Power: 13 |
Quote:
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 |
||
|
|
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 |