|
[Sponsors] |
How to patch initial disturbance on free surface |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 26, 2008, 08:17 |
How to patch initial disturbance on free surface
|
#1 |
Guest
Posts: n/a
|
Hi all,
I would like to know how to patch a wave profile on the free surface as an initial condition. It is a 2D case. VOF is used. Air and water. The wave will go from left to right. Thanks... |
|
November 26, 2008, 08:24 |
Re: How to patch initial disturbance on free surfa
|
#2 |
Guest
Posts: n/a
|
is it a stratified flow case?
|
|
November 26, 2008, 10:38 |
Re: How to patch initial disturbance on free surfa
|
#3 |
Guest
Posts: n/a
|
you can use DEFINE_INIT macro. by judging the relationship between the y coordinate of the cell and the wave profile you can patch the vof is one
|
|
November 26, 2008, 12:21 |
Re: How to patch initial disturbance on free surfa
|
#4 |
Guest
Posts: n/a
|
I guess it is a stratified flow case. Air is on the top, and water is on the bottom. Both are fluids. But, correct me if I am wrong..
|
|
November 26, 2008, 12:33 |
Re: How to patch initial disturbance on free surfa
|
#5 |
Guest
Posts: n/a
|
Thanks shoushibo. By the way, do you have a cas file and the DEFINE_INIT udf which you had patched an initial free surface profile?? I am doing a term project for a class, so kind of in a hurry. Many thanks to you in advance....
|
|
November 26, 2008, 13:57 |
Re: How to patch initial disturbance on free surfa
|
#6 |
Guest
Posts: n/a
|
is it a pipe flow? you work currently with 2D or 3D? what you want to predict in addition to free surface fluctuations?
|
|
November 26, 2008, 14:04 |
Re: How to patch initial disturbance on free surfa
|
#7 |
Guest
Posts: n/a
|
Hi there, I think that Mr. Baker knows me very well. Let me say hello to him! By the way, if you tend to have smooth initial interface, you should put command (rpsetvar 'patch/vof? #t) in TUI before initialization.
good luck |
|
November 26, 2008, 14:13 |
Re: How to patch initial disturbance on free surfa
|
#8 |
Guest
Posts: n/a
|
Hey Bohis thanks a lot for your reply with this please tell us in which option in TUI this facility to getting smooth free surface was available?
|
|
November 26, 2008, 22:32 |
Re: How to patch initial disturbance on free surfa
|
#9 |
Guest
Posts: n/a
|
Thank you guys for sharing tips. To answer Mr. Baker's question, I am doing a solitary wave propagation simulation. It is a 2D case. The wave will travel from left to right. The free surface fluctuation will be the only focus. I know how to patch undisturbed free surface into the domain, but don't know how to patch the initial wave profile. shoushibo suggested using DEFINE_INIT. I am trying it now. Do you guys do it differently??
At the mean time, I am moving the left boundary as a wavemaker. But, as we know, it is hard to produce a pure solitary wave this way. The tailing waves always exist. |
|
November 27, 2008, 10:31 |
Re: How to patch initial disturbance on free surfa
|
#10 |
Guest
Posts: n/a
|
Hi guys, actually I do not know how (rpsetvar 'patch/vof? #t) really works. rpsetvar is scheme command which sets the variable patch/vof. If you use #t, then the interface will be smooth. If you use #f, it will be sharp. You should type it directly as a command in TUI before first initialization.No more questions about it, I do not know more (note: I have never tried it with udf initialization - DEFINE_INIT) As regards patching, you can either create register using adaption panel or if the shape is complicated, then use UDF.
good luck |
|
November 27, 2008, 10:47 |
Re: How to patch initial disturbance on free surfa
|
#11 |
Guest
Posts: n/a
|
if you need a case about define_init macro ,i can provide,please leave a email.
|
|
November 27, 2008, 11:17 |
Re: How to patch initial disturbance on free surfa
|
#12 |
Guest
Posts: n/a
|
Thanks shoushibo. I'd really appreciate it. My email address is yutechu@hotmail.com.
Thanks bohis for your input. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
free surface initial conditions | John N. | CFX | 1 | March 12, 2009 17:18 |
Transient free surface with initial conditions | Juan Catelén | CFX | 4 | September 3, 2007 09:54 |
Divergence free initial field | maka | OpenFOAM Pre-Processing | 2 | October 26, 2005 09:52 |
Free surface flow,Initial & B.C.s?(URGENT) | tuks | CFX | 0 | August 24, 2004 10:08 |
difference between PATCH and INITIAL | zwdi | FLUENT | 2 | September 17, 2003 15:46 |